avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eung-ju Park" <co...@isoft.co.kr>
Subject Non-forking junit cause class loading problem?
Date Fri, 14 Sep 2001 03:09:00 GMT
TestCase for Parameters.fromConfiguration throw bellow exception.
What's wrong?
Test is all green if turn on forking option in junit task.

Testsuite: org.apache.avalon.framework.parameters.test.ParameterTestCase
Tests run: 5, Failures: 0, Errors: 1, Time elapsed: 0.062 sec

Testcase: testRemoveParameter took 0.015 sec
Testcase: testIsParameter took 0 sec
Testcase: testGetParameter took 0.001 sec
Testcase: testFromConfiguration took 0.042 sec
 Caused an ERROR
loader constraints violated when linking org/xml/sax/ContentHandler class
java.lang.LinkageError: loader constraints violated when linking
org/xml/sax/ContentHandler class
 at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.setPar
ser(DefaultConfigurationBuilder.java:66)
 at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.<init>
(DefaultConfigurationBuilder.java:41)
 at
org.apache.avalon.framework.parameters.test.ParameterTestCase.testFromConfig
uration(ParameterTestCase.java:81)
 at java.lang.reflect.Method.invoke(Native Method)
 at junit.framework.TestCase.runTest(TestCase.java:166)
 at junit.framework.TestCase.runBare(TestCase.java:140)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:131)
 at junit.framework.TestSuite.runTest(TestSuite.java:173)
 at junit.framework.TestSuite.run(TestSuite.java:168)
 at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java)
 at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java)
 at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a)
 at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a)
 at org.apache.tools.ant.Task.perform(Task.java:217)
 at org.apache.tools.ant.Target.execute(Target.java:164)
 at org.apache.tools.ant.Target.performTasks(Target.java:182)
 at org.apache.tools.ant.Project.executeTarget(Project.java:601)
 at org.apache.tools.ant.Project.executeTargets(Project.java:560)
 at org.apache.tools.ant.Main.runBuild(Main.java:462)
 at org.apache.tools.ant.Main.start(Main.java:153)
 at org.apache.tools.ant.Main.main(Main.java:176)

Testcase: testFromProperties took 0 sec



---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message