18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
java.lang.reflect.InvocationTargetException / ant batchrun
Hi
I'm trying to run a suite of tests via ant - I have modified the xml - after executing ant -f sample.xml (<-modified ; ) ), I got this exception
[java] java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[java] at java.lang.reflect.Method.invoke(Unknown Source)
[java] at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:53)
[java] at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProcessor.java:42)
[java] at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:142)
[java] at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:67)
[java] at java.lang.Thread.run(Unknown Source)
[java] Caused by: java.lang.NoClassDefFoundError: org/apache/xmlrpc/XmlRpcException
[java] at net.sf.sahi.command.Suite.setIssueCreators(Suite.java:56)
[java] at net.sf.sahi.command.Suite.start(Suite.java:49)
[java] ... 9 more
[sahi] Shutting down ...
I have installed apaches xmlrpc pak, everthing needed should be included into CLASSPATH ... now I have no clue whats still going wrong, maybe someone can help me out
I'm trying to run a suite of tests via ant - I have modified the xml - after executing ant -f sample.xml (<-modified ; ) ), I got this exception
[java] java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[java] at java.lang.reflect.Method.invoke(Unknown Source)
[java] at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:53)
[java] at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProcessor.java:42)
[java] at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:142)
[java] at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:67)
[java] at java.lang.Thread.run(Unknown Source)
[java] Caused by: java.lang.NoClassDefFoundError: org/apache/xmlrpc/XmlRpcException
[java] at net.sf.sahi.command.Suite.setIssueCreators(Suite.java:56)
[java] at net.sf.sahi.command.Suite.start(Suite.java:49)
[java] ... 9 more
[sahi] Shutting down ...
I have installed apaches xmlrpc pak, everthing needed should be included into CLASSPATH ... now I have no clue whats still going wrong, maybe someone can help me out
Comments
first thanks for adressing my problem -
In this exception there's something about a XmlRpcException
([java] Caused by: java.lang.NoClassDefFoundError:org/apache/xmlrpc/XmlRpcException),
so maybe you can tell me which jar fiels I have to include into CLASSPATH to get the XML Parser working
Comment out (or delete)
<createissue tool="jira"/>
and try.
Have a look at demo.xml also to see how the targets work.
knight service - everthings working now
thanks
regards, escape