[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Testing Deployers with new Reflect + ClassPool
kabir.khan@jboss.com
do-not-reply at jboss.com
Wed Dec 2 05:22:01 EST 2009
"alesj" wrote :
| I guess you no
| Well, this works too, but, as it's shows, it makes harder to test/debug tests.
| I thought you would use VFS's Assembled notion.
| Or is there a valid reason you didn't?
|
Not really, I wasn't familiar with that at the time
"flavia" wrote :
| Thanks for verifying that :-)
|
| Ales told me that the NPE is reproducible only under JDK5. Still, I have tested it with JDK5 and again couldn't see any failure.
|
Using JDK 5 I see this error:
| Tests run: 18, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.023 sec <<< FAILURE!
| testURLChildOfGlobalUcl(org.jboss.test.classpool.jbosscl.test.RepositoryClassPoolTestCase) Time elapsed: 0.065 sec <<< ERROR!
| java.lang.IllegalStateException: Illegal call. A class cannot be retrieved from ClassPool org.jboss.classpool.plugins.as.NonDelegatingClassPool at 15141466 [class path: <null>:] - dcl:null because the corresponding ClassLoader is garbage collected
| at org.jboss.classpool.base.BaseClassPool.get(BaseClassPool.java:130)
| at org.jboss.test.classpool.support.ClassPoolTestScenario.assertLoadCtClassArray(ClassPoolTestScenario.java:173)
| at org.jboss.test.classpool.support.ClassPoolTestScenario.assertLoadCtClassArray(ClassPoolTestScenario.java:163)
| at org.jboss.test.classpool.support.ClassPoolTestScenario.assertLoadCtClass(ClassPoolTestScenario.java:155)
| at org.jboss.test.classpool.support.ClassPoolTestScenario.loadClass(ClassPoolTestScenario.java:79)
| at org.jboss.test.classpool.support.ClassPoolTestScenario.loadClass(ClassPoolTestScenario.java:44)
| at org.jboss.test.classpool.jbosscl.test.RepositoryTest.testURLChildOfGlobalUcl(RepositoryTest.java:155)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268460#4268460
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268460
More information about the jboss-dev-forums
mailing list