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

fix NPE occuring at works termination during shutdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 5.8.0-HF20
    • Fix Version/s: None
    • Component/s: Core

      Description

      When shut-downing the works manager, we've got NPEs on running work threads.

      2014-08-30 18:50:40,774 ERROR Nuxeo-Work-default-2 [ecm.core.work.WorkManagerImpl] Uncaught error on thread Nuxeo-Work-default-2
      java.lang.NullPointerException
      at org.nuxeo.ecm.core.work.redis.RedisWorkQueuing.closeJedis(RedisWorkQueuing.java:367)
      at org.nuxeo.ecm.core.work.redis.RedisWorkQueuing.getScheduledQueueSize(RedisWorkQueuing.java:447)
      at org.nuxeo.ecm.core.work.redis.RedisWorkQueuing.getScheduledSize(RedisWorkQueuing.java:260)
      at org.nuxeo.ecm.core.work.redis.RedisBlockingQueue.size(RedisBlockingQueue.java:124)
      at java.util.AbstractCollection.isEmpty(AbstractCollection.java:86)
      at java.util.concurrent.ThreadPoolExecutor.tryTerminate(ThreadPoolExecutor.java:690)
      at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1006)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1163)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: