Closed GoogleCodeExporter closed 9 years ago
Can you send me a example of this issue? I can not reproduce it
Original comment by danjaredg
on 25 Sep 2014 at 6:12
In the zip, a mini project with jmeter execution how fail.
The project simply print the execution stderr and stdout to the console.
I expect no error and got the described error on stderr :
{{{
--- exec-maven-plugin:1.2.1:exec (default-cli) @ jayatana39 ---
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
[stderr] Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
[stderr] java.lang.Throwable: Could not access
/home/skyghis/Desktop/jayatana39/src/main/lib
[stderr] at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
[stderr] java.lang.Throwable: Could not access
/home/skyghis/Desktop/jayatana39/src/main/lib/ext
[stderr] at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
[stderr] java.lang.Throwable: Could not access
/home/skyghis/Desktop/jayatana39/src/main/lib/junit
[stderr] at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:99)
[stderr] java.lang.ClassNotFoundException: org.apache.jmeter.JMeter
[stderr] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[stderr] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[stderr] at java.security.AccessController.doPrivileged(Native Method)
[stderr] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[stderr] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[stderr] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[stderr] at org.apache.jmeter.NewDriver.main(NewDriver.java:255)
[stderr] JMeter home directory was detected as:
/home/skyghis/Desktop/jayatana39/src/main
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 0.666s
Finished at: Thu Oct 09 23:47:17 CEST 2014
Final Memory: 6M/239M
------------------------------------------------------------------------
}}}
Original comment by ghislain...@gmail.com
on 9 Oct 2014 at 9:48
Attachments:
I found the error, JMETER loads jars in run time, and JMETER searches our jars
in the classpath when it have only one jar, but jayatana append its own jar.
So, JMETER searches its jars in jmeter.home or user.dir.
The fix is very easy, you need include a VM argument: -Djmeter.home
Original comment by danjaredg
on 9 Dec 2014 at 5:10
Thanks, the fix kind of work.
I still got an output on stderr
{{{
[stderr] Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
at XXX
at XXX
}}}
But I suppose than Jayatana can't fix jmeter writing on wrong output.
Thanks for the "fix"
Original comment by ghislain...@gmail.com
on 10 Dec 2014 at 9:32
Original issue reported on code.google.com by
ghislain...@gmail.com
on 5 May 2014 at 9:48