Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1877

Lucene plugin fails to index some document with attachments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.2 M2
    • None

    Description

      Here are some logs from xwiki.org:

      11:44:15,627 [Thread-29] ERROR lucene.AttachmentData           - error getting content of attachment 
      com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment ???? of document Main.Documentation
      Wrapped Exception: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#-115762232]
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:164)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      
      
      Wrapped Exception:
      
      
      org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#-115762232]
              at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
              at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:128)
              at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
              at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
              at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
              at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799)
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:154)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment ???? of document Main.Documentation
      Wrapped Exception: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#-115762232]
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:164)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      
      
      Wrapped Exception:
      
      org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#-115762232]
              at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
              at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:128)
              at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
              at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
              at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
              at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799)
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:154)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      11:44:27,664 [Thread-29] ERROR lucene.AttachmentData           - error getting content of attachment 
      com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment uaic.png of document Photos.XWikiScreenshots
      Wrapped Exception: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#1845945886]
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:164)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      
      
      Wrapped Exception:
      
      
      org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#1845945886]
              at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
              at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:128)
              at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
              at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
              at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
              at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799)
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:154)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment uaic.png of document Photos.XWikiScreenshots
      Wrapped Exception: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#1845945886]
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:164)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      
      
      Wrapped Exception:
      
      org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#1845945886]
              at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
              at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:128)
              at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
              at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
              at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
              at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799)
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:154)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      11:44:47,168 [Thread-29] ERROR lucene.AttachmentData           - error getting content of attachment 
      com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment capdigital.png of document Photos.XWikiScreenshots
      Wrapped Exception: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#-1320924738]
              at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:164)
              at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:2519)
              at com.xpn.xwiki.doc.XWikiAttachment.getContent(XWikiAttachment.java:376)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:142)
              at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:135)
              at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:84)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:335)
              at com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:171)
              at java.lang.Thread.run(Thread.java:613)
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: