ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phani Kumar" <phani...@gmail.com>
Subject Re: JUnit Report (Please help me, i am trying this from past two weeks)
Date Mon, 15 Dec 2008 06:13:47 GMT
this is the result of ant verbose

C:\test1>ant -verbose
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_16\jre
Detected OS: Windows XP
parsing buildfile C:\test1\build.xml with URI = file:///C:/test1/build.xml
Project base dir set to: C:\test1
Build sequence for target(s) `report' is [init, compile, test, report]
Complete build sequence is [init, compile, test, report, clean, ]

init:

compile:
    [javac] NewTest.java omitted as NewTest.class is up to date.

test:
    [junit] Using System properties {java.runtime.name=Java(TM) 2 Runtime
Environment, Standard Edition, sun.boot.library.path=C:\Program
Files\Java\jdk1.5.0_16\jre\bin, java.vm.version=1.5.0_16
    [junit] , java.vm.specification.vendor=Sun Microsystems Inc.,
user.variant=, os.name=Windows XP, ant.home=c:\apache-ant-1.7.1,
sun.jnu.encoding=Cp1252, java.library.path=C:\Program Files\Jav
e-control-0.9.2\selenium-java-client-driver-0.9.2\selenium-java-client-driver.jar;c:\apache-ant-1.7.1\lib\;C:\junit4.5\junit-4.5.jar;C:\apache-maven-2.0.9\lib\maven-2.0.9-uber.jar;C:\Program
Fil
-1.7.1\lib\ant-trax.jar;C:\apache-ant-1.7.1\lib\ant-weblogic.jar;C:\apache-ant-1.7.1\lib\ant.jar;C:\apache-ant-1.7.1\lib\junit-4.5.jar;C:\apache-ant-1.7.1\lib\serializer.jar;C:\apache-ant-1.7.1\
ugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little,
sun.desktop=windows, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx
pentium i486 i386 i86}
    [junit] Implicitly adding
C:\selenium-remote-control-0.9.2\selenium-server-0.9.2\selenium-server.jar;C:\apache-ant-1.7.1\lib\ant-launcher.jar;C:\apache-ant-1.7.1\lib\ant-junit.jar
to CLASSPA
    [junit] Using CLASSPATH
C:\test1\build;C:\selenium-remote-control-0.9.2\selenium-server-0.9.2\selenium-server.jar;C:\apache-ant-1.7.1\lib\ant-launcher.jar;C:\apache-ant-1.7.1\lib\ant-junit.j
    [junit] Running NewTest
    [junit] Testsuite: NewTest
    [junit] junit.framework.TestListener: tests to run: 1
    [junit] junit.framework.TestListener: startTest(testNew)
    [junit] junit.framework.TestListener: endTest(testNew)
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 32.406 sec
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 32.406 sec

    [junit] Testcase: testNew took 31.836 sec

report:

BUILD FAILED
java.lang.NoSuchMethodError:
org.apache.tools.ant.taskdefs.TempFile.bindToOwner(Lorg/apache/tools/ant/Task;)V
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NoSuchMethodError:
org.apache.tools.ant.taskdefs.TempFile.bindToOwner(Lorg/apache/tools/ant/Task;)V
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:229)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:158)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        ... 7 more
--- Nested Exception ---
java.lang.NoSuchMethodError:
org.apache.tools.ant.taskdefs.TempFile.bindToOwner(Lorg/apache/tools/ant/Task;)V
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:229)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:158)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 38 seconds



On Fri, Dec 12, 2008 at 9:10 PM, Mark Salter <marksalter@talktalk.net>wrote:

> Phani Kumar wrote:
>
> > report:
> >
> > BUILD FAILED
> > java.lang.NoSuchMethodError:
> >
> org.apache.tools.ant.taskdefs.TempFile.bindToOwner(Lorg/apache/tools/ant/Task;)V
> >
> Ok, you seem to have moved on?
> Can you please check you are using ant 1.7 (ant -verbose) please?
>
> This method is commented as added in 1.7 and should therefore be present
> for you?
>
> I also see you producing a file called result[.xml] from the test, but
> not using it in the junitreport, but I think the 'missing'
> Task.bindToOwner(Task) method indicates a bigger problem with your
> environment.
>
> --
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message