Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7526

NPE in DefaultThreadPool$LoggingThreadLocalChangeListener.changed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Commons Threads 3.2.16
    • Commons Threads 3.2.18
    • Commons
    • None
    • MacOS, jdk18
      Linux, oracle-jdk18

    Description

      Randomly a NullPointerException is happening in DefaultThreadPool$LoggingThreadLocalChangeListener.changed:

      Exception in thread "sling-oak-1" java.lang.NullPointerException
      	at org.apache.sling.commons.threads.impl.DefaultThreadPool$LoggingThreadLocalChangeListener.changed(DefaultThreadPool.java:172)
      	at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.changed(ThreadLocalCleaner.java:210)
      	at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.diff(ThreadLocalCleaner.java:173)
      	at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.cleanup(ThreadLocalCleaner.java:148)
      	at org.apache.sling.commons.threads.impl.ThreadPoolExecutorCleaningThreadLocals.afterExecute(ThreadPoolExecutorCleaningThreadLocals.java:75)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Activity

          People

            rombert Robert Munteanu
            krystian Krystian Nowak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: