org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock

XWiki.org JIRA | Vincent Massol | 8 years ago
  1. 0

    {noformat} 2008-07-31 09:49:38,285 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error deleting doc 2844 org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725) at com.xpn.xwiki.plugin.lucene.IndexUpdater.deleteOldDocs(IndexUpdater.java:282) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:172) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:49:39,289 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error deleting doc 2845 org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725) at com.xpn.xwiki.plugin.lucene.IndexUpdater.deleteOldDocs(IndexUpdater.java:282) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:172) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:49:40,294 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - IOException when opening Lucene Index for writing at /usr/local/apache-tomcat-6.0.14/logs/work/lucene org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:502) at com.xpn.xwiki.plugin.lucene.IndexUpdater.openWriter(IndexUpdater.java:320) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:190) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:49:40,294 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document dev:Drafts.WritingSeleniumsTestsForXWiki.default java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:49:40,295 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document dev:Drafts.WritingSeleniumsTestsForXWiki.default.objects java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:49:40,296 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing documents java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:217) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:49:40,296 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - Writer not open and closeWriter called 2008-07-31 09:53:12,161 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - IOException when opening Lucene Index for writing at /usr/local/apache-tomcat-6.0.14/logs/work/lucene org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:502) at com.xpn.xwiki.plugin.lucene.IndexUpdater.openWriter(IndexUpdater.java:320) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:190) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:53:12,166 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document playground:XWiki.AlexisMonville.default java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:53:12,167 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document playground:XWiki.AlexisMonville.default.objects java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:53:12,167 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing documents java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:217) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:53:12,167 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - Writer not open and closeWriter called Jul 31, 2008 9:53:43 AM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Invalid chunk ignored. 2008-07-31 09:55:43,813 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error deleting doc 2844 org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725) at com.xpn.xwiki.plugin.lucene.IndexUpdater.deleteOldDocs(IndexUpdater.java:282) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:172) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:55:44,830 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error deleting doc 2845 org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725) at com.xpn.xwiki.plugin.lucene.IndexUpdater.deleteOldDocs(IndexUpdater.java:282) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:172) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:55:45,834 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - IOException when opening Lucene Index for writing at /usr/local/apache-tomcat-6.0.14/logs/work/lucene org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:502) at com.xpn.xwiki.plugin.lucene.IndexUpdater.openWriter(IndexUpdater.java:320) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:190) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:55:45,835 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document dev:Drafts.WritingSeleniumsTestsForXWiki.default java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:55:45,836 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document dev:Drafts.WritingSeleniumsTestsForXWiki.default.objects java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:55:45,836 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing documents java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:217) at java.lang.Thread.run(Thread.java:619) 2008-07-31 09:55:45,836 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - Writer not open and closeWriter called java.lang.NullPointerException at java.util.Calendar.setTime(Calendar.java:1070) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:859) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:852) at java.text.DateFormat.format(DateFormat.java:316) at com.xpn.xwiki.XWiki.formatDate(XWiki.java:4938) at com.xpn.xwiki.api.XWiki.formatDate(XWiki.java:1840) at sun.reflect.GeneratedMethodAccessor971.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:145) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:117) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:226) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:258) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:182) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:151) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:140) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:423) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371) at sun.reflect.GeneratedMethodAccessor1064.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:145) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:117) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:226) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:109) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 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 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at java.util.Calendar.setTime(Calendar.java:1070) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:859) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:852) at java.text.DateFormat.format(DateFormat.java:316) at com.xpn.xwiki.XWiki.formatDate(XWiki.java:4938) at com.xpn.xwiki.XWiki.formatDate(XWiki.java:4947) at com.xpn.xwiki.api.XWiki.formatDate(XWiki.java:1840) at sun.reflect.GeneratedMethodAccessor971.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:145) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:117) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:226) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:258) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:182) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:151) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:140) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:423) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371) at sun.reflect.GeneratedMethodAccessor1064.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:145) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:117) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:226) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:109) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 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 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) [ERROR] Method formatDate threw exception for reference $xwiki in template XWiki.Tableresults at [70,20] org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [XWiki.Tableresults] at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:155) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:117) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:226) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:258) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:182) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:151) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:140) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:423) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371) at sun.reflect.GeneratedMethodAccessor1064.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:145) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:117) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:226) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1504) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:109) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 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 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'formatDate' in class com.xpn.xwiki.api.XWiki threw exception java.lang.NullPointerException @ XWiki.Tableresults[70,28] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:145) ... 50 more Caused by: java.lang.NullPointerException at com.xpn.xwiki.XWiki.formatDate(XWiki.java:4943) at com.xpn.xwiki.XWiki.formatDate(XWiki.java:4947) at com.xpn.xwiki.api.XWiki.formatDate(XWiki.java:1840) at sun.reflect.GeneratedMethodAccessor971.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) ... 61 more 2008-07-31 10:08:38,047 [http://dev.xwiki.org/xwiki/bin/view/IRCCode/IRCArchiveClassTemplate?language=en] [TP-Processor21] WARN doc.XWikiDocument - Failed to display field [content] in [view] mode for Object [NULL] 2008-07-31 10:15:23,626 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - IOException when opening Lucene Index for writing at /usr/local/apache-tomcat-6.0.14/logs/work/lucene org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:502) at com.xpn.xwiki.plugin.lucene.IndexUpdater.openWriter(IndexUpdater.java:320) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:190) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:15:23,630 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document code:Snippets.WikiSpacesPieChartSnippet.default java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:15:23,631 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document code:Snippets.WikiSpacesPieChartSnippet.default.objects java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:15:23,631 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing documents java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:217) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:15:23,632 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - Writer not open and closeWriter called 2008-07-31 10:16:25,325 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - IOException when opening Lucene Index for writing at /usr/local/apache-tomcat-6.0.14/logs/work/lucene org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:502) at com.xpn.xwiki.plugin.lucene.IndexUpdater.openWriter(IndexUpdater.java:320) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:190) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:16:25,326 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document code:Snippets.WikiSpacesPieChartSnippet.default java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:16:25,327 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document code:Snippets.WikiSpacesPieChartSnippet.default.objects java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:16:25,327 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing documents java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:217) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:16:25,327 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - Writer not open and closeWriter called 2008-07-31 10:17:09,775 [http://code.xwiki.org/xwiki/bin/view/Snippets/WikiSpacesPieChartSnippet] [TP-Processor5] WARN doc.XWikiDocument - Failed to display field [content] in [view] mode for Object [Snippets.WikiSpacesPieChartSnippet] Jul 31, 2008 10:17:23 AM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Invalid chunk ignored. 2008-07-31 10:17:25,589 [http://code.xwiki.org/xwiki/bin/view/Snippets/WikiSpacesPieChartSnippet] [TP-Processor42] WARN doc.XWikiDocument - Failed to display field [content] in [view] mode for Object [Snippets.WikiSpacesPieChartSnippet] 2008-07-31 10:17:27,811 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - IOException when opening Lucene Index for writing at /usr/local/apache-tomcat-6.0.14/logs/work/lucene org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:502) at com.xpn.xwiki.plugin.lucene.IndexUpdater.openWriter(IndexUpdater.java:320) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:190) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:17:27,812 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document code:Snippets.WikiSpacesPieChartSnippet.default java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:17:27,813 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing document code:Snippets.WikiSpacesPieChartSnippet.default.objects java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:377) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:205) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:17:27,813 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - error indexing documents java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:217) at java.lang.Thread.run(Thread.java:619) 2008-07-31 10:17:27,830 [Lucene index updating thread] [Lucene Index Updater] ERROR lucene.IndexUpdater - Writer not open and closeWriter called {noformat}

    XWiki.org JIRA | 8 years ago | Vincent Massol
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock
  2. 0

    1- Create a new Purge Nexus Timeline task (Schedule:Manual, Purge older items than (days) = 0) 2- Run it manually 3- Check nexus logs: 2008-08-28 08:34:40.047 ERROR [pxpool-1-thread-1:] - org.sonatype.nexus.timeline.Timeline:default: Could not purge timeline index! org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\sonatype\workspace\nexus\nexus\nexus-test-harness\nexus-test-harness-launcher\target\bundle\nexus-webapp-1.1.0-SNAPSHOT\runtime\work\timeline\write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725) at org.sonatype.nexus.timeline.DefaultTimeline.purge(DefaultTimeline.java:290) at org.sonatype.nexus.timeline.DefaultTimeline.purgeOlderThan(DefaultTimeline.java:541) at org.sonatype.nexus.tasks.PurgeTimeline.doRun(PurgeTimeline.java:111) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:136) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:312) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

    Sonatype JIRA | 8 years ago | Marvin Herman Froeder
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\sonatype\workspace\nexus\nexus\nexus-test-harness\nexus-test-harness-launcher\target\bundle\nexus-webapp-1.1.0-SNAPSHOT\runtime\work\timeline\write.lock
  3. 0

    ***************************** This happens when running the task standalone as well, not a scheduling problem, but a problem with the task itself ***************************** The UI displays the tasks as starting at different times (one kicking off immediately, where the other kicks off once the first is done), however an error is logged in the nexus.log: 2008-10-20 10:56:01.069 ERROR [pxpool-1-thread-2:] - org.sonatype.nexus.timeline.Timeline:default: Could not purge timeline index! org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Nexus\sonatype-work\nexus\timeline\write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725) at org.sonatype.nexus.timeline.DefaultTimeline.purge(DefaultTimeline.java:296) at org.sonatype.nexus.timeline.DefaultTimeline.purgeOlderThan(DefaultTimeline.java:572) at org.sonatype.nexus.timeline.DefaultTimeline.purgeOlderThan(DefaultTimeline.java:567) at org.sonatype.nexus.timeline.DefaultTimeline.purgeOlderThan(DefaultTimeline.java:562) at org.sonatype.nexus.tasks.PurgeTimeline.doRun(PurgeTimeline.java:111) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2008-10-20 10:56:01.101 INFO [pxpool-1-thread-2:] - org.sonatype.nexus.feeds.FeedRecorder:default: Purging Timeline records. : Process started on Mon Oct 20 10:56:00 MST 2008, finished successfully on Mon Oct 20 10:56:01 MST 2008 2008-10-20 10:56:10.069 INFO [pxpool-1-thread-12:] - org.sonatype.nexus.feeds.FeedRecorder:default: Purging Timeline records. : Process started on Mon Oct 20 10:56:10 MST 2008, not yet finished. 2008-10-20 10:56:11.069 ERROR [pxpool-1-thread-12:] - org.sonatype.nexus.timeline.Timeline:default: Could not purge timeline index! org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Nexus\sonatype-work\nexus\timeline\write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725) at org.sonatype.nexus.timeline.DefaultTimeline.purge(DefaultTimeline.java:296) at org.sonatype.nexus.timeline.DefaultTimeline.purgeOlderThan(DefaultTimeline.java:572) at org.sonatype.nexus.timeline.DefaultTimeline.purgeOlderThan(DefaultTimeline.java:567) at org.sonatype.nexus.timeline.DefaultTimeline.purgeOlderThan(DefaultTimeline.java:562) at org.sonatype.nexus.tasks.PurgeTimeline.doRun(PurgeTimeline.java:111) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2008-10-20 10:56:11.101 INFO [pxpool-1-thread-12:] - org.sonatype.nexus.feeds.FeedRecorder:default: Purging Timeline records. : Process started on Mon Oct 20 10:56:10 MST 2008, finished successfully on Mon Oct 20 10:56:11 MST 2008

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\Nexus\sonatype-work\nexus\timeline\write.lock
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    1- Create a new Purge Nexus Timeline task (Schedule:Manual, Purge older items than (days) = 0) 2- Run it manually 3- Check nexus logs: 2008-08-28 08:34:40.047 ERROR [pxpool-1-thread-1:] - org.sonatype.nexus.timeline.Timeline:default: Could not purge timeline index! org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\sonatype\workspace\nexus\nexus\nexus-test-harness\nexus-test-harness-launcher\target\bundle\nexus-webapp-1.1.0-SNAPSHOT\runtime\work\timeline\write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:85) at org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725) at org.sonatype.nexus.timeline.DefaultTimeline.purge(DefaultTimeline.java:290) at org.sonatype.nexus.timeline.DefaultTimeline.purgeOlderThan(DefaultTimeline.java:541) at org.sonatype.nexus.tasks.PurgeTimeline.doRun(PurgeTimeline.java:111) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:136) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:312) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

    Sonatype JIRA | 8 years ago | Marvin Herman Froeder
    org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\sonatype\workspace\nexus\nexus\nexus-test-harness\nexus-test-harness-launcher\target\bundle\nexus-webapp-1.1.0-SNAPSHOT\runtime\work\timeline\write.lock
  6. 0

    This feature request is related to support ticket https://support.atlassian.com/browse/CSP-58347 After contacting Atlassian Support on behalf of our client for this issue, I was told Lucene index customization is currently not supported and was asked to submit a feature request instead. h2. Business Use Case Our client wishes to use Confluence as a partner portal, to delegate spaces to their partners. This seems like a very common user case, and leveraging one of the core space distribution benefits of Confluence spaces. However, since their partners are OEM manufacturers, and possibly competitors, it is logical that they do not want the names of the users to be visible to each other. We have suppressed the Profile Directory without problem, but since user names are indexed by Lucene, removing them from the index is not working (despite our code efforts to do so, as described below). h2. Abstract We are in the process of implementing a user requirement to exclude all user information from Confluence search. The approach we took is removing Personal Information from the Lucene index using an [extractor module|http://confluence.atlassian.com/display/CONFDEV/Extractor+Module]. We've found from logging that the document appears to be removed from the index, but the search results persist. Worse, having updated a user's profile, and reindexed, we have index locking errors amongst other things. h2. Detail The *Index Limiter plugin* has been written for the single purpose of removing personal information from the Lucene index. The purpose of this is to remove: # username links from the rich text editor (RTE) # username results from "quicksearch" # user details/profile from the search results page e.g. /dosearchsite.action?queryString=admin *I've attempted the unindexing in 2 parts* # *Invalidating the fields:* Using an extractor module (source in svn) to invalidate the values in these fields: "type","email", "fullName", "title", "username" within the Lucene documents of type {{PersonalInformation.CONTENT_TYPE}} -- _The_ {{{_}addFields()_}} _method in the extractor_ # *Remove all personal information from the Lucene index:* Remove all Lucene Documents with handle startswith com.atlassian.confluence.user.PersonalInformation -- _The_ {{{_}unIndex()_}} _method in the extractor_ h3. Results {panel:bgColor=#FFFFCE}After installing the Index Limiter plugin, run a complete reindex in Confluence Admin to trigger removal of the personalInformation data from Lucene{panel} h4. 1. Invalidating the fields Takes a Lucene Document like this: {code}Document< stored/uncompressed,indexed<handle:com.atlassian.confluence.user.PersonalInformation-393217> stored/uncompressed,indexed,tokenized<content-name-unstemmed:admin> stored/uncompressed,indexed,tokenized<email:admin@example.com> stored/uncompressed,indexed,tokenized<fullName:admin> stored/uncompressed,indexed,tokenized<labelText:> stored/uncompressed,indexed,tokenized<title:admin> stored/uncompressed,indexed,tokenized<username:admin> stored/uncompressed,indexed<created:0fl6inapf> stored/uncompressed,indexed<fullNameUntokenized:admin> stored/uncompressed,indexed<hasPersonalSpace:false> stored/uncompressed,indexed<modified:000000000> stored/uncompressed,indexed<urlPath:/~admin> stored/uncompressed<content-version:1> stored/uncompressed<excerpt:> stored/uncompressed<version:1> >{code} Changes it to this: {code}Document< stored/uncompressed,indexed<handle:com.atlassian.confluence.user.PersonalInformation-393217> stored/uncompressed,indexed,tokenized<content-name-unstemmed:admin> stored/uncompressed,indexed,tokenized<email:admin@example.com> stored/uncompressed,indexed,tokenized<email:appfusions.invalidate> stored/uncompressed,indexed,tokenized<fullName:admin> stored/uncompressed,indexed,tokenized<fullName:appfusions.invalidate> stored/uncompressed,indexed,tokenized<labelText:> stored/uncompressed,indexed,tokenized<title:admin> stored/uncompressed,indexed,tokenized<title:appfusions.invalidate> stored/uncompressed,indexed,tokenized<username:admin> stored/uncompressed,indexed,tokenized<username:appfusions.invalidate> stored/uncompressed,indexed<created:0fl6inapf> stored/uncompressed,indexed<fullNameUntokenized:admin> stored/uncompressed,indexed<hasPersonalSpace:false> stored/uncompressed,indexed<modified:000000000> stored/uncompressed,indexed<type:appfusions.invalidate> stored/uncompressed,indexed<urlPath:/> stored/uncompressed<content-version:1> stored/uncompressed<excerpt:> stored/uncompressed<version:1> >{code} Uses the following code: {code} document.removeField(field); // Set an invalid/meaningless value document.add(new Field(field, "appfusions.invalidate", Field.Store.YES, Field.Index.TOKENIZED)); {code} {panel:bgColor=#FFFFCE}It should change the value of each field to {{appfusions.invalidate}}, but actually adds a duplicate field with this value. In any case, it has the desired effect on the index by removing user details from the RTE & quicksearch... {panel} * (/) Removes user details from the RTE & quicksearch \\ \\ !rich-text-editor-limited.png|border=1! * (x) Only partially removes information from the search results page \\ \\ || Original || Updated || | !search-result-original.png! | !search-result-updated.png! | h4. 2. Remove all personal information from the Lucene index Inject {{com.atlassian.bonnie.ILuceneConnection}} into the extractor module with property injection & call the {{unIndex()}} method (at the bottom of this page) from the {{addFields()}} method {panel:bgColor=#FFFFCE} Having attempted to do this, logging suggests that documents *have* been removed, but search results suggest otherwise. {panel} h5. Updated User Profiles Having updated a user profile & reindexed, further problems occur with search index locking... {code}2011-03-03 11:06:01,019 ERROR [DefaultQuartzScheduler_Worker-9] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from userinfo: admin v.2 (393217) using BackwardsCompatibleExtractor wrapping com.appfusions.confluence.plugins.indexlimiter.extractor.PersonalInformationExtractor@5342836a (com.appfusions.confluence.plugins.indexlimiter:PersonalInformationExtractor): org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/Users/david/projects/appfusions/confluence/plugins/indexlimiter/trunk/target/confluence/home/index/write.lock com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/Users/david/projects/appfusions/confluence/plugins/indexlimiter/trunk/target/confluence/home/index/write.lock at com.atlassian.bonnie.LuceneConnection.withReaderAndDeletes(LuceneConnection.java:302) at com.appfusions.confluence.plugins.indexlimiter.extractor.PersonalInformationExtractor.unIndex(PersonalInformationExtractor.java:95) at com.appfusions.confluence.plugins.indexlimiter.extractor.PersonalInformationExtractor.addFields(PersonalInformationExtractor.java:85) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45) at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:102) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43) at com.atlassian.confluence.search.lucene.tasks.UpdateDocumentIndexTask.perform(UpdateDocumentIndexTask.java:40) at com.atlassian.confluence.search.lucene.tasks.BulkWriteIndexTask.perform(BulkWriteIndexTask.java:44) at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:331) at com.atlassian.confluence.search.lucene.tasks.LuceneConnectionBackedIndexTaskPerformer.perform(LuceneConnectionBackedIndexTaskPerformer.java:20) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction.perform(DefaultConfluenceIndexManager.java:361) at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:405) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.processTasks(DefaultConfluenceIndexManager.java:161) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.flushQueue(DefaultConfluenceIndexManager.java:128) at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy35.flushQueue(Unknown Source) at com.atlassian.confluence.search.lucene.IndexQueueFlusher.executeJob(IndexQueueFlusher.java:29) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:63) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:46) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/Users/david/projects/appfusions/confluence/plugins/indexlimiter/trunk/target/confluence/home/index/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:70) at org.apache.lucene.index.IndexReader.acquireWriteLock(IndexReader.java:638) at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:672) at com.appfusions.confluence.plugins.indexlimiter.extractor.PersonalInformationExtractor$1.perform(PersonalInformationExtractor.java:109) at com.atlassian.bonnie.LuceneConnection.withReaderAndDeletes(LuceneConnection.java:298) ... 30 more{code} ---- h3. Supporting code {{{*}atlassian-plugin.xml{*}{}}}*:* {code}<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}" /> </plugin-info> <extractor name="Personal Information Extractor" key="PersonalInformationExtractor" class="com.appfusions.confluence.plugins.indexlimiter.extractor.PersonalInformationExtractor" priority="900"> <description>Removes some personal information from the search index.</description> </extractor> </atlassian-plugin>{code} {{{*}com.appfusions.confluence.plugins.indexlimiter.extractor.PersonalInformationExtractor{*}{}}}*:* {code} package com.appfusions.confluence.plugins.indexlimiter.extractor; import org.apache.log4j.Logger; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.Term; import org.slf4j.MDC; import com.atlassian.bonnie.Searchable; import com.atlassian.bonnie.ILuceneConnection; import com.atlassian.bonnie.search.Extractor; import com.atlassian.bonnie.search.BaseDocumentBuilder; import com.atlassian.bonnie.search.DocumentBuilder; import com.atlassian.confluence.core.ContentEntityObject; import com.atlassian.confluence.user.PersonalInformation; import com.atlassian.confluence.user.UserAccessor; import java.io.IOException; /** * User: david * Date: Feb 25, 2011 * Time: 7:51:57 PM */ public class PersonalInformationExtractor implements Extractor { private UserAccessor userAccessor; private ILuceneConnection luceneConnection; private DocumentBuilder documentBuilder; public void setUserAccessor(UserAccessor userAccessor) { this.userAccessor = userAccessor; } /** * @param luceneConnection set by dependency injection, required */ public void setLuceneConnection(ILuceneConnection luceneConnection) { this.luceneConnection = luceneConnection; } public void setDocumentBuilder(DocumentBuilder documentBuilder) { this.documentBuilder = documentBuilder; } /** * Initially replace the contents of the fields in the index * This approach will remove PersonalInformation from quicksearch and the rich text editor */ public void addFields(Document document, StringBuffer defaultSearchableText, Searchable searchable) { if (searchable instanceof PersonalInformation) { PersonalInformation personalInformation = (PersonalInformation) searchable; if(userAccessor.getUser(personalInformation.getUsername()) != null) { // Most important is to change the type field to an unknown value (to Confluence) String[] fieldsTokenized = {"email", "fullName", "title", "username"}; // tokenized fields for (String field : fieldsTokenized) { document.removeField(field); // Set an invalid/meaningless value document.add(new Field(field, "appfusions.invalidate", Field.Store.YES, Field.Index.TOKENIZED)); } String[] fieldsUntokenized = {"type"}; // untokenized fields for (String field : fieldsUntokenized) { document.removeField(field); // Set an invalid/meaningless value document.add(new Field(field, "appfusions.invalidate", Field.Store.YES, Field.Index.UN_TOKENIZED)); } // Redirect/rewrite the urlPath to the context root // -- if we can't remove this item from search results, at least redirect. document.removeField("urlPath"); document.add(new Field("urlPath", "/", Field.Store.YES, Field.Index.UN_TOKENIZED)); // Finally, attempt to remove all documents related to PersonalInformation unIndex(); // unIndex(personalInformation); } } } /** * Find *all* Lucene Documents where "handle" starts with "com.atlassian.confluence.user.PersonalInformation" * - likely to be rather heavy handed, so perhaps later target just the single document in the index */ public void unIndex() { luceneConnection.withReaderAndDeletes(new ILuceneConnection.ReaderAction() { public Object perform(IndexReader indexReader) throws IOException { int max = indexReader.maxDoc(); for (int i = 0; i < max; i++) { Field handle = indexReader.document(i).getField("handle"); if (handle != null) { if (handle.stringValue().startsWith("com.atlassian.confluence.user.PersonalInformation")) { System.out.println(" unindexing "+indexReader.document(i).toString()); indexReader.deleteDocument(i); } } } return null; } }); } } {code}

    Atlassian JIRA | 6 years ago | Danielle Zhu
    com.atlassian.bonnie.LuceneException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/Users/david/projects/appfusions/confluence/plugins/indexlimiter/trunk/target/confluence/home/index/write.lock

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.lucene.store.LockObtainFailedException

      Lock obtain timed out: SimpleFSLock@/usr/local/apache-tomcat-6.0.14/logs/work/lucene/write.lock

      at org.apache.lucene.store.Lock.obtain()
    2. Lucene
      IndexReader.deleteDocument
      1. org.apache.lucene.store.Lock.obtain(Lock.java:85)
      2. org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexReader.java:250)
      3. org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:725)
      3 frames
    3. com.xpn.xwiki
      IndexUpdater.run
      1. com.xpn.xwiki.plugin.lucene.IndexUpdater.deleteOldDocs(IndexUpdater.java:282)
      2. com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:172)
      2 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame