java.lang.NullPointerException

XWiki.org JIRA | Vincent Massol | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 9 years ago | Vincent Massol
    java.lang.NullPointerException
  2. 0

    To reproduce: * Go the admin page, click on Import * Don't select a file to import but click on upload * If you don't get the following in the logs, do it a few times more. {noformat} 2010-01-13 12:35:53,402 [http://localhost:8080/xwiki/bin/upload/XWiki/Import] ERROR lucene.IndexUpdater - invalid parameters given to add: XWiki.Import, null, {grouplist={xwiki:xwiki:XWiki.Admin=[xwiki:XWiki.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup], xwiki:xwiki:XWiki.XWikiAllGroup=[]}, activitystream_requestid=1557027631-1263382553000-cRzUHOYp, msg=com.xpn.xwiki.web.XWikiMessageTool@7d391b1a, fileuploadlist=[name=null, StoreLocation=/var/folders/qZ/qZEoZikuEvy6RqwxPKwUBE+++TI/-Tmp-/upload__42d05435_12627779b31__8000_00000003.tmp, size=85bytes, isFormField=true, FieldName=xredirect, name=null, StoreLocation=/var/folders/qZ/qZEoZikuEvy6RqwxPKwUBE+++TI/-Tmp-/upload__42d05435_12627779b31__8000_00000004.tmp, size=0bytes, isFormField=true, FieldName=filename, name=, StoreLocation=/var/folders/qZ/qZEoZikuEvy6RqwxPKwUBE+++TI/-Tmp-/upload__42d05435_12627779b31__8000_00000005.tmp, size=0bytes, isFormField=false, FieldName=filepath], language=en, originalWiki=xwiki, tdoc=XWiki.Import, locale=en, ajax=false, doc=XWiki.Import, mainxwiki=xwiki, fileuploadplugin=com.xpn.xwiki.plugin.fileupload.FileUploadPlugin@30228830, vcontext=org.apache.velocity.VelocityContext@2b1b2000, wiki=xwiki} 2010-01-13 12:35:54,784 [Lucene Index Updater] ERROR lucene.AttachmentData - error getting content of attachment java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162) at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:145) at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146) at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:80) at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:285) at com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:226) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:162) at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:141) at java.lang.Thread.run(Thread.java:637) {noformat}

    XWiki.org JIRA | 7 years ago | Vincent Massol
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.xpn.xwiki.plugin.lucene.IndexUpdater.run()
    2. com.xpn.xwiki
      IndexUpdater.run
      1. com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:217)
      1 frame
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame