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

NPE in sling commons threads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Commons Threads 3.2.10
    • Commons Threads 3.2.16
    • Commons
    • None
    • Linux, jdk18

    Description

      I'm currently running a number of integration tests via pax exam and sometimes I see the following stacktrace. I've already seen this in a running sling also. This happens only in some runs but on that cases is breaking my CI workflow

      Exception in thread "sling-default-5" java.lang.NullPointerException
      at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.copy(ThreadLocalCleaner.java:186)
      at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.saveOldThreadLocals(ThreadLocalCleaner.java:176)
      at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.<init>(ThreadLocalCleaner.java:51)
      at org.apache.sling.commons.threads.impl.ThreadPoolExecutorCleaningThreadLocals.beforeExecute(ThreadPoolExecutorCleaningThreadLocals.java:55)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              ivoleitao Ivo Leitão
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: