Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21016

Fix NPE on postcommit bulk execution for updateThumbListener

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10-SNAPSHOT
    • Fix Version/s: 10.10
    • Component/s: Importer
    • Tags:
    • Sprint:
      nxFG 10.3.9, nxFG 10.3.10
    • Story Points:
      2

      Description

      On a 8.10-SNAPSHOT

      • Using mongodb and redis
      • Install nuxeo-platform-importer without a UI
      • Using the PDF files and doc files available at:

      http://www.ebooksgratuits.com/torrent.php

      • Launch import

      => An error is thrown during import following the documentation's quick start method

      2016-11-14 13:50:49,918 ERROR [Nuxeo-Event-PostCommit-40] [org.nuxeo.ecm.core.event.impl.PostCommitEventExecutor] Events postcommit bulk execution encountered exception for listener: updateThumbListener
      java.lang.NullPointerException
          at org.nuxeo.ecm.platform.thumbnail.converter.ThumbnailDocumentConverter.convert(ThumbnailDocumentConverter.java:73)
          at org.nuxeo.ecm.core.convert.extension.ChainedConverter.convertBasedSubConverters(ChainedConverter.java:87)
          at org.nuxeo.ecm.core.convert.extension.ChainedConverter.convert(ChainedConverter.java:71)
          at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:246)
          at org.nuxeo.ecm.platform.thumbnail.converter.AnyToThumbnailConverter.convert(AnyToThumbnailConverter.java:77)
          at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:246)
          at org.nuxeo.ecm.platform.thumbnail.factories.ThumbnailDocumentFactory.computeThumbnail(ThumbnailDocumentFactory.java:94)
          at org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl.computeThumbnail(ThumbnailServiceImpl.java:99)
          at org.nuxeo.ecm.core.api.thumbnail.ThumbnailAdapter.computeThumbnail(ThumbnailAdapter.java:58)
          at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.processDoc(UpdateThumbnailListener.java:67)
          at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.handleEvent(UpdateThumbnailListener.java:137)
          at org.nuxeo.ecm.core.event.impl.PostCommitEventExecutor$EventBundleBulkRunner.call(PostCommitEventExecutor.java:349)
          at org.nuxeo.ecm.core.event.impl.PostCommitEventExecutor$EventBundleBulkRunner.call(PostCommitEventExecutor.java:309)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
      2016-11-14 13:50:49,918 ERROR [Nuxeo-Event-PostCommit-40] [org.nuxeo.ecm.core.event.impl.PostCommitEventExecutor] Rolling back transaction
      2016-11-14 13:50:49,920 ERROR [Nuxeo-Importer-1] [org.nuxeo.ecm.core.event.impl.PostCommitEventExecutor] Events postcommit bulk execution aborted due to previous error
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h