java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Vincent Massol,
    • java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:161) at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:136) at com.xpn.xwiki.plugin.lucene.IndexData.getFullText(IndexData.java:190) at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146) at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:65) at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296) at com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153) at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99) at java.lang.Thread.run(Thread.java:680)
    No Bugmate found.