Uploaded image for project: 'File Manager Application'
  1. File Manager Application
  2. FILEMAN-89

Renaming a file fails sometimes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0-rc-1
    • 2.0-milestone-3
    • None

    Description

      I can see the following errors logged in the console:

      2015-01-05 11:25:57,245 [XWiki Solr index thread] ERROR ttachmentSolrMetadataExtractor - Failed to retrieve the content of attachment [Attachment xwiki:FileManager.image\.svg@image.svg] 
      com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment image.svg of document FileManager.image\.svg
      	at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:233) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:4533) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at com.xpn.xwiki.doc.XWikiAttachment.getContentInputStream(XWikiAttachment.java:576) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getContentAsText(AbstractSolrMetadataExtractor.java:472) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.AttachmentSolrMetadataExtractor.setLocaleAndContentFields(AttachmentSolrMetadataExtractor.java:122) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.AttachmentSolrMetadataExtractor.setFieldsInternal(AttachmentSolrMetadataExtractor.java:104) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:132) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.getSolrDocument(DefaultSolrIndexer.java:486) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:399) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131) [xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]
      Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#1234091670]
      	at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:435) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:233) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.impl.SessionImpl.load(SessionImpl.java:974) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:218) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	... 11 common frames omitted
      2015-01-05 11:25:57,387 [XWiki Solr index thread] ERROR .DocumentSolrMetadataExtractor - Failed to retrieve the content of attachment [Attachment xwiki:FileManager.image\.svg@image.svg] 
      com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment image.svg of document FileManager.image\.svg
      	at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:233) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:4533) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at com.xpn.xwiki.doc.XWikiAttachment.getContentInputStream(XWikiAttachment.java:576) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getContentAsText(AbstractSolrMetadataExtractor.java:472) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setAttachment(DocumentSolrMetadataExtractor.java:302) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setAttachments(DocumentSolrMetadataExtractor.java:282) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setExtras(DocumentSolrMetadataExtractor.java:211) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setFieldsInternal(DocumentSolrMetadataExtractor.java:153) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:132) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.getSolrDocument(DefaultSolrIndexer.java:486) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:399) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at org.xwiki.search.solr.internal.DefaultSolrIndexer.runInternal(DefaultSolrIndexer.java:374) [xwiki-platform-search-solr-api-5.4.5.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131) [xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]
      Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#1234091670]
      	at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:435) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:233) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.impl.SessionImpl.load(SessionImpl.java:974) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:218) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	... 13 common frames omitted
      2015-01-05 11:25:59,564 [Lucene Index Updater] WARN  c.x.x.p.l.i.AttachmentData     - error getting content of attachment [image.svg] for document [xwiki:FileManager.image\.svg] 
      com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment image.svg of document FileManager.image\.svg
      	at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:233) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentContent(XWikiDocument.java:4533) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at com.xpn.xwiki.doc.XWikiAttachment.getContentInputStream(XWikiAttachment.java:576) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.AttachmentData.getContentAsText(AttachmentData.java:221) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.AttachmentData.getFullText(AttachmentData.java:197) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.AbstractDocumentData.getFullText(AbstractDocumentData.java:251) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.AbstractDocumentData.addDocumentDataToLuceneDocument(AbstractDocumentData.java:212) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.AbstractDocumentData.addDataToLuceneDocument(AbstractDocumentData.java:147) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.AttachmentData.addDataToLuceneDocument(AttachmentData.java:99) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.IndexUpdater.addToIndex(IndexUpdater.java:296) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.IndexUpdater.updateIndex(IndexUpdater.java:237) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.IndexUpdater.runMainLoop(IndexUpdater.java:183) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.plugin.lucene.internal.IndexUpdater.runInternal(IndexUpdater.java:168) [xwiki-platform-search-lucene-api-5.4.5.jar:na]
      	at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:131) [xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]
      Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#1234091670]
      	at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:435) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:233) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at org.hibernate.impl.SessionImpl.load(SessionImpl.java:974) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
      	at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:218) ~[xwiki-platform-legacy-oldcore-5.4.5.jar:na]
      	... 14 common frames omitted
      2015-01-05 11:26:39,940 [http://localhost:8080/xwiki/bin/FileManager/image.svg] ERROR o.x.v.i.DefaultVelocityEngine  - Exception in macro #openTextFile called at xwiki:FileManagerCode.FileSheet[line 1, column 1] 
      2015-01-05 11:26:39,940 [http://localhost:8080/xwiki/bin/FileManager/image.svg] ERROR o.x.v.i.DefaultVelocityEngine  - Exception in macro #openFile called at xwiki:FileManagerCode.FileSheet[line 3, column 1] 
      

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: