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 26448] New: - NoSuchMethodError when using xml formatter in junit tasks
Date Tue, 27 Jan 2004 00:20:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26448>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26448

NoSuchMethodError when using xml formatter in junit tasks

           Summary: NoSuchMethodError when using xml formatter in junit
                    tasks
           Product: Ant
           Version: 1.6.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: rlager@celequest.com


I just moved from ant1.5.4 to ant1.6.
When I try to execute a junit tasks, which uses a xml formatter, I get a 
NoSuchMethodError.

If I comment out the xmlformatter then there are no problems.
If I use the old ant, then there are no problems.


java.lang.NoSuchMethodError
        at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.
startTest(XMLJUnitResultFormatter.java:186)
        at junit.framework.TestResult.startTest(TestResult.java:151)
        at junit.framework.TestResult.run(TestResult.java:103)
        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(JUni
tTestRunner.java:231)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUn
itTestRunner.java:409)
Exception in thread "main"


-------
Here's the test run with -v turned on:

Implicitly adding C:\p4client\dev\tools\ant\lib\junit.jar;C:\p4client\dev\tools\
ant\lib\ant-launcher.jar;C:\p4client\dev\tools\ant\lib\ant.jar;C:\p4client\dev\t
ools\ant\lib\ant-junit.jar to CLASSPATH
dropping C:\sybase\jConnect5-5\classes from path as it doesn't exist
dropping C:\sybase\ASEP_Win32\3pclass.zip from path as it doesn't exist
dropping C:\sybase\ASEP_Win32\monclass.zip from path as it doesn't exist
dropping C:\sybase\jConnect5-5\classes from path as it doesn't exist
dropping C:\sybase\ASEP_Win32\3pclass.zip from path as it doesn't exist
dropping C:\sybase\ASEP_Win32\monclass.zip from path as it doesn't exist
dropping C:\sybase\jConnect5-5\classes from path as it doesn't exist
dropping C:\sybase\ASEP_Win32\3pclass.zip from path as it doesn't exist
dropping C:\sybase\ASEP_Win32\monclass.zip from path as it doesn't exist
dropping C:\sybase\jConnect5-5\classes from path as it doesn't exist
dropping C:\sybase\ASEP_Win32\3pclass.zip from path as it doesn't exist
dropping C:\sybase\ASEP_Win32\monclass.zip from path as it doesn't exist
Executing 'C:\p4client\dev\tools\jdk\default\jre\bin\java.exe' with arguments:
'-classpath'
'C:\p4client\dev\celequestEAR\celequestJAR.jar;C:\p4client\dev\celequestEAR\cele
questtest.jar;C:\p4client\dev\oem\log4j\dist\lib\log4j-1.2.7.jar;C:\p4client\dev
\oem\javamail\mail.jar;C:\p4client\dev\tools\jaxb-1.0\lib\jax-qname.jar;C:\p4cli
ent\dev\tools\jaxb-1.0\lib\jaxb-api.jar;C:\p4client\dev\tools\jaxb-1.0\lib\jaxb-
libs.jar;C:\p4client\dev\tools\jaxb-1.0\lib\jaxb-ri.jar;C:\p4client\dev\tools\ja
xb-1.0\lib\jaxb-xjc.jar;C:\p4client\dev\tools\junit\junit.jar;C:\p4client\dev\to
ols\cactus\jakarta-cactus-13-1.4b1\lib\cactus-1.4b1.jar;C:\p4client\dev\tools\ca
ctus\jakarta-cactus-13-1.4b1\lib\commons-logging-1.0.jar;C:\p4client\dev\tools\c
actus\jakarta-cactus-13-1.4b1\lib\commons-httpclient-2.0alpha1-20020720.jar;C:\p
4client\dev\tools\cactus\jakarta-cactus-13-1.4b1\lib\aspectjrt-1.0.5.jar;C:\p4cl
ient\dev\tools\w2k\jdk\j2sdkee1.3.1\lib\j2ee.jar;C:\p4client\dev\tools\bea\weblo
gic700\server\lib\weblogic.jar;C:\p4client\dev\tools\oracle\jdbc\lib\classes12.z
ip;C:\p4client\dev\tools\sqlserver\jdbc\lib\msbase.jar;C:\p4client\dev\tools\sql
server\jdbc\lib\msutil.jar;C:\p4client\dev\tools\sqlserver\jdbc\lib\mssqlserver.
jar;C:\p4client\dev\tools\bea\weblogic700\server\lib\jconn2.jar;C:\p4client\dev\
tools\tibco\lib\tibrvj.jar;C:\p4client\dev\oem\jexcel\jxl.jar;C:\p4client\dev\oe
m\jsr166\jsr166.jar;C:\p4client\dev\cqjdbcclient\cqjdbcclient.jar;C:\sybase\jCon
nect-5_5\classes\jconn2.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\provideru
til.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program
Files\IBM\WebSphere MQ\Java\lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\
lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files
\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\co
nnector.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program
Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;C:\p4client\dev;C:\Progra~1\MQe\J
ava;C:\PROGRA~1\Segue\SilkTest\JavaEx\SilkTest_Java2.jar;C:\p4client\dev\tools\a
nt\lib\junit.jar;C:\p4client\dev\tools\ant\lib\ant-launcher.jar;C:\p4client\dev\
tools\ant\lib\ant.jar;C:\p4client\dev\tools\ant\lib\ant-junit.jar'
'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
'com.celequest.test.exception.VCExceptionUnitTest'
'filtertrace=true'
'haltOnError=false'
'haltOnFailure=false'
'showoutput=false'
'formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatte
r'
'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,
C:\p4client\dev\testoutput\exception\TEST-com.celequest.test.exception.VCExcepti
onUnitTest.xml'
'propsfile=C:\p4client\dev\junit250116580.properties'

The ' characters around the executable and arguments are
not part of the command.
java.lang.NoSuchMethodError
        at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.
startTest(XMLJUnitResultFormatter.java:186)
        at junit.framework.TestResult.startTest(TestResult.java:151)
        at junit.framework.TestResult.run(TestResult.java:103)
        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(JUni
tTestRunner.java:231)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUn
itTestRunner.java:409)
Exception in thread "main"

TEST com.celequest.test.exception.VCExceptionUnitTest FAILED

----

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


Mime
View raw message