[jboss-jira] [JBoss JIRA] Created: (JBAS-7626) org.jboss.web.WebServer assumes executor thread's have the correc TCCL

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Sat Jan 16 09:32:47 EST 2010


org.jboss.web.WebServer assumes executor thread's have the correc TCCL
----------------------------------------------------------------------

                 Key: JBAS-7626
                 URL: https://jira.jboss.org/jira/browse/JBAS-7626
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: ClassLoading
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
             Fix For: JBossAS-6.0.0.M2


WebServer.run does not set the TCL on executor threads. This is leading to NPEs in org.jboss.test.helloiiop.test.HelloTimingStressTestCase and other tests in the tests-iiop target.

Recent changes David Lloyd made to the standard thread pools exposed this. Before pool threads would inherit their TCL from whatever thread caused them to be spawned. That was random, but mostly worked for this use case. But it also risked leaking classloaders. David has eliminated this risk by ensuring the pools set the TCL to null after completing tasks. This exposes the problem with WebServer.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list