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

wrong NPE error reported by the event bundle transaction handler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5-SNAPSHOT
    • Fix Version/s: 5.5
    • Component/s: None

      Description

      The event bundle transaction handler is printing the following error when the tx manager is not configured and an error occured in the event handling.

      18:28:26,920 ERROR [EventBundleTransactionHandler] Exception caught while setting the transaction as rollback only
      java.lang.NullPointerException
      at org.nuxeo.ecm.core.event.tx.EventBundleTransactionHandler.setTransactionRollbackOnly(EventBundleTransactionHandler.java:189)
      at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$Job.run(AsyncEventExecutor.java:163)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:680)
      

      We should avoid this by testing the disabled flag before setting the rollback only flag.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slacoin Stéphane Lacoin
                Reporter:
                slacoin Stéphane Lacoin
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: