[jboss-dev] jboss-4.2-testsuite-sun-1.5 Build Completed With Testsuite Errors
Brian Stansberry
brian.stansberry at redhat.com
Wed May 16 16:25:58 EDT 2007
Before I tear my hair out all day, if any classloading gurus have any
theory on why the ClassloaderLeakUnitTestCase started failing, please
advise. Some info:
1) Started failing when I moved the test from the 'all' tests so it ran
by itself against a clean AS. Commit logs show nothing else relevant.
2) The test that fails involves a simple call to an SLSB over the
UnifiedInvoker. Deployment is a simple ejb jar. The EJB's classloader
doesn't get cleaned up upon undeploy.
3) JBoss Profiler analysis of the leak shows that the CL is leaking to a
Thread as the TCCL:
!--org.jboss.mx.loading.UnifiedClassLoader3 at 62812d{ url=null ,addedOrder=47}
!--!--FieldReference private java.lang.ClassLoader
java.lang.ClassLoader.parent=org.jboss.web.WebClassLoader at ed5ba6
!--!--!--FieldReference private java.lang.ClassLoader
java.lang.ClassLoader.parent=org.jboss.util.loading.DelegatingClassLoader at 2589c3
!--!--!--!--FieldReference private java.lang.ClassLoader
java.lang.Thread.contextClassLoader=Thread[Thread-31,5,jboss]
Some questions I have are:
Why is org.jboss.web.WebClassLoader involved here? This deployment
doesn't include a webapp. (An earlier test in the class that passes did
involve a webapp).
Is there something about running with a clean server that would change
the relationships between the classloaders?
- Brian
jboss-qa-internal at redhat.com wrote:
> View results here ->
> http://cruisecontrol.jboss.com/cc/buildresults/jboss-4.2-testsuite-sun-1.5?log=log20070516125336
>
> TESTS FAILED
> Ant Error
> Message: /qa/services/cruisecontrol/work/scripts/build-jboss-common.xml:272:
> The following error occurred while executing this line:
> /qa/services/cruisecontrol/work/scripts/build-common-targets.xml:26:
> Build Successful - Tests completed with errors or failures.
> Date of build: 05/16/2007 12:53:36
> Time to build: 165 minutes 51 seconds
> Last changed: 05/16/2007 11:51:35
> Last log entry: minor format changes
>
> Unit Tests: (4137) Total Errors and Failures: (1)
> testSimpleEjb
> org.jboss.test.classloader.leak.test.ClassloaderLeakUnitTestCase
>
>
>
> Modifications since last build: (first 50 of 5)
> 63099 modified clebert.suconic at jboss.com
> //branches/Branch_4_2/varia/src/resources/services/binding/sample-bindings.xml
> minor format changes
> 63098 modified clebert.suconic at jboss.com
> //branches/Branch_4_2/varia/src/resources/services/binding/sample-bindings.xml
> Changing jboss messaging configuration
> 63055 modified bstansberry at jboss.com
> //branches/Branch_4_2/testsuite/imports/server-config.xml
> [JBPAPP-174][JBAS-4420] Separate classloader leak tests from 'all'
> 63055 modified bstansberry at jboss.com
> //branches/Branch_4_2/testsuite/build.xml [JBPAPP-174][JBAS-4420]
> Separate classloader leak tests from 'all'
> 63045 modified wolfc
> //branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/Ejb3Deployment.java
> EJBTHREE-962: merged from trunk
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
--
Brian Stansberry
Lead, AS Clustering
JBoss, a division of Red Hat
brian.stansberry at redhat.com
More information about the jboss-development
mailing list