ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34281] - IncludeTest fails under JDK 1.4.2_04 and 1.4.2_08
Date Tue, 05 Apr 2005 07:59:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34281>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34281





------- Additional Comments From kevin.greiner@compsol.cc  2005-04-05 09:59 -------
I've traced this back to the junit code.  I turned on the jaxp debug and 
modified JAXPUtils.getParserFactory to log a stack trace each time it was 
called.  There were several calls to getParserFactory that correctly returned 
the Xerces parser. Then a new thread appeared and it loaded the crimson parser.

I have junit.fork set to true so the new thread was expected.  It would appear 
that JUnitTestRunner.main is failing to set the thread's context classloader.

JAXP: found META-INF/services/javax.xml.parsers.SAXParserFactory
JAXP: loaded from services: org.apache.crimson.jaxp.SAXParserFactoryImpl
java.lang.Throwable: Calling getParserFactory in Thread[main,5,main]
	at org.apache.tools.ant.util.JAXPUtils.getParserFactory
(JAXPUtils.java:81)
	at org.apache.tools.ant.helper.ProjectHelper2.parse
(ProjectHelper2.java:193)
	at org.apache.tools.ant.helper.ProjectHelper2.parse
(ProjectHelper2.java:141)
	at org.apache.tools.ant.ProjectHelper.configureProject
(ProjectHelper.java:90)
	at org.apache.tools.ant.BuildFileTest.configureProject
(BuildFileTest.java:231)
	at org.apache.tools.ant.BuildFileTest.configureProject
(BuildFileTest.java:214)
	at org.apache.tools.ant.CaseTest.setUp(CaseTest.java:32)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	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:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run
(JUnitTestRunner.java:328)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch
(JUnitTestRunner.java:736)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main
(JUnitTestRunner.java:605)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message