• Node locked error

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #6284  by weezer316
 
Hi,

Dont know if anyone seen this before but we have a documet checked out and when we try and cancel the checkout or check new version in we get an error. I have tried to unlock the document in the repository view but I cant, I get this error.
Code: Select all
javax.jcr.lock.LockException: Node not locked by this session.
	at org.apache.jackrabbit.core.lock.XAEnvironment.unlock(XAEnvironment.java:162)
	at org.apache.jackrabbit.core.lock.XALockManager.unlock(XALockManager.java:122)
	at org.apache.jackrabbit.core.NodeImpl.unlock(NodeImpl.java:4175)
	at org.apache.jsp.admin.repository_005faction_jsp._jspService(repository_005faction_jsp.java:115)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:804)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:338)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:804)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:97)
	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:177)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:132)
	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:111)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:850)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:619)

Now it was definetly me that checked the document out and its definetly me that it shows as checked out to. Any ideas how to get around it and unlock the document?

Regards

Wheeler
 #6291  by jllort
 
The user has lost the token of the document, you must generate a new token assign to document and user token list.
 #6310  by weezer316
 
Hi,

Sorry could you tell me how to assign a new toekn to the document? I assume its the one generated using this below?

com.openkm.util.JCRUtils.getLockToken(String id)

How can I assign that to a document?

Wheeler
 #6322  by jllort
 
1- must create a new token ( I don't remember now the method in utilities.jar for doing it
2- navigate across repository ( low level administration ) and assign to user and document

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.