Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2407

NullPointerException on DefaultByteBufferPool.close

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.14.Final, 2.2.33.Final
    • None
    • None
    • None

      When Undertow is shutting down, somethings we see the following stack trace:

      java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because "threadLocalData" is null
              at io.undertow.core@2.3.14.Final//io.undertow.server.DefaultByteBufferPool$ThreadLocalCache.remove(DefaultByteBufferPool.java:360)
              at io.undertow.core@2.3.14.Final//io.undertow.server.DefaultByteBufferPool.close(DefaultByteBufferPool.java:235)
              at org.wildfly.extension.undertow@33.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.ByteBufferPoolDefinition$ByteBufferPoolService.stop(ByteBufferPoolDefinition.java:168)
              at org.jboss.msc@1.5.5.Final//org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1671)
              at org.jboss.msc@1.5.5.Final//org.jboss.msc.service.ServiceControllerImpl$StopTask.execute(ServiceControllerImpl.java:1641)
              at org.jboss.msc@1.5.5.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1438)
              at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
              at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
              at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
              at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
              at java.base/java.lang.Thread.run(Thread.java:1570)
      

      The stack trace is taken from a WildFly shutdown, but notice that this error can come up in standalone mode as well, when shutting Undertow.

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: