Page 1 of 1

Error on folder deletion

PostPosted:Wed Apr 06, 2011 3:30 pm
by spkc
Hello,

When trying to delete a particular folder I had an "Unknow node type" error. There was a note node in the folder that prevented deletion and I was able the delete the folder after using the admin repository view to delete it, but I don't understand how it was created and why it prevented the folder deletion.

I have a minimalist interface based on the web services and don't use the note functionality. Can someone point point me to what could have created this note node and why it prevented the folder deletion?

Thanks.

The logged exception on the folder deletion:
Code: Select all
2011-04-06 10:21:23,021 ERROR [com.openkm.module.direct.DirectFolderModule] Unknown node type
javax.jcr.RepositoryException: Unknown node type
	at com.openkm.module.direct.DirectFolderModule.hasLockedNodes(DirectFolderModule.java:370)
	at com.openkm.module.direct.DirectFolderModule.delete(DirectFolderModule.java:304)
	at com.openkm.ws.endpoint.OKMFolder.delete(OKMFolder.java:99)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.wsf.container.jboss42.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:102)
	at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:221)
	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)
	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)
	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)
	at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)
	at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
	at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:619)

Re: Error on folder deletion

PostPosted:Wed Apr 06, 2011 9:17 pm
by jllort
The problem is that into these folder are some documents etc... locked and you can not delete folder in that conditions. It can be possible that locked documents could not be seen with your user, but exists there. Could be documents pending to be check-in and are checkout etc..

Re: Error on folder deletion

PostPosted:Fri Apr 08, 2011 1:57 pm
by pavila
spkc wrote:javax.jcr.RepositoryException: Unknown node type
I don't understand the source of this exception. OpenKM works fine? Seem you hace error in the node register which is a very bad thing.