Page 1 of 1

Node locked error

PostPosted:Tue Aug 24, 2010 9:21 am
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

Re: Node locked error

PostPosted:Tue Aug 24, 2010 11:19 am
by jllort
The user has lost the token of the document, you must generate a new token assign to document and user token list.

Re: Node locked error

PostPosted:Tue Aug 24, 2010 11:22 am
by weezer316
How do I assign that document a new token then?

Re: Node locked error

PostPosted:Thu Aug 26, 2010 9:00 am
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

Re: Node locked error

PostPosted:Fri Aug 27, 2010 8:30 am
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