On 19/03/2008, Kant, David <[EMAIL PROTECTED]> wrote: > > Sebb, > Thanks for your reply. > > I added my classes to the lib/ext but this didn't work. > I tried on my windows Xp desktop, and all is fine. > > Investigating further, I started my jmeter-server on the solaris > machine. > This is the error found in the jmeter-server.log for remote testing > against my jar (where JAVA_HOME=/opt/jre1.5_06 and my classes were built > using jdk 1.5_11). > > Dave > > > 2008/03/19 14:49:36 DEBUG - jmeter.threads.TestCompiler: Subtracting > node, stack size = 1 > 2008/03/19 14:49:36 INFO - jmeter.threads.JMeterThread: Thread Thread > Group 1-1 started > 2008/03/19 14:49:36 DEBUG - jmeter.control.GenericController: Calling > next on: org.apache.jmeter.control.LoopController > 2008/03/19 14:49:36 ERROR - jmeter.threads.JMeterThread: Test failed! > java.lang.UnsupportedClassVersionError: Bad version number in .class > file
That means a class was built on an incompatible version of Java. What does the jmeter server log show for the JVM version? > at java.lang.ClassLoader.defineClass2(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at java.security.SecureClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.access$100(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at > org.apache.jmeter.protocol.java.sampler.JavaSampler.createJavaClient(Jav > aSampler.java:187) > at > org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.j > ava:161) > at > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:300) > at java.lang.Thread.run(Unknown Source) > > 2008/03/19 14:49:36 INFO - jmeter.threads.JMeterThread: Thread Thread > Group 1-1 is done > 2008/03/19 14:49:36 INFO - jmeter.engine.StandardJMeterEngine: Ending > thread Thread Group 1-1 > > > > > > > -----Original Message----- > From: sebb [mailto:[EMAIL PROTECTED] > Sent: 19 March 2008 00:36 > To: JMeter Users List > Subject: Re: Jmeter and Solaris 10 > > On 18/03/2008, Kant, David <[EMAIL PROTECTED]> wrote: > > Hi, > > > > > > > > I'm trying to run Jmeter on solaris 10. > > > > > > > > I have added my jars to the jmeter.properties (search_paths and > > user.classpath) file, but jmeter gui doesn't show these classes in > Java > > Request. > > > > Java Request will only find jars in lib/ext or the equivalent property. > > > > > Does anyone have any suggestions, > > > > Thankyou, Dave. > > > > > > > > jmeter.properties > > > > -------------------------- > > > > > > > > # List of paths (separated by ;) to search for additional JMeter > > extension jars > > > > # These are in addition to lib/ext. Do not use this for utility jars. > > > > search_paths=/export/home/sbe/benchmark/mylibs > > > > > > > > # Users can define additional classpath items by setting the property > > below > > > > # Use the default separator for the host version of Java > > > > # Paths with spaces may cause problems for the JVM > > > > > user.classpath=/export/home/sbe/benchmark/mylibs/sbetestharness.jar:/exp > > > ort/home/sbe/benchmark/mylibs/jtds-1.2.jar:/export/home/sbe/benchmark/my > > libs/HT > > > > > TPClient.jar:/export/home/sbe/benchmark/mylibs/json-lib-2.2.1-jdk15.jar: > > > /export/home/sbe/benchmark/mylibs/ezmorph-1.0.4.jar:/export/home/sbe/ben > > chmark/ > > > > > mylibs/commons-beanutils-1.8.0-BETA.jar:/export/home/sbe/benchmark/mylib > > s/log4j-1.2.14.jar > > > > ... > > > > > > > > jmeter.log does not report any problems > > > > ---------------------------------------------------------- > > > > ... > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: > > JMeterHome=/export/home/sbe/benchmark/jakarta-jmeter-2.3.1 > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: user.dir > > =/export/home/sbe/benchmark/jakarta-jmeter-2.3.1/bin > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: PWD > > =/export/home/sbe/benchmark/jakarta-jmeter-2.3.1/bin > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: > > search_paths=/export/home/sbe/benchmark/mylibs > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: Adding to classpath: > > /export/home/sbe/benchmark/mylibs > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: > > > user.classpath=/export/home/sbe/benchmark/mylibs/sbetestharness.jar:/exp > > ort/home/sbe/benchmark/mylibs/jtds-1 > > > > > .2.jar:/export/home/sbe/benchmark/mylibs/HTTPClient.jar:/export/home/sbe > > > /benchmark/mylibs/json-lib-2.2.1-jdk15.jar:/export/home/sbe/benchmark/my > > libs/ez > > > > > morph-1.0.4.jar:/export/home/sbe/benchmark/mylibs/commons-beanutils-1.8. > > 0-BETA.jar:/export/home/sbe/benchmark/mylibs/log4j-1.2.14.jar > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: Adding to classpath: > > /export/home/sbe/benchmark/mylibs/sbetestharness.jar > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: Adding to classpath: > > /export/home/sbe/benchmark/mylibs/jtds-1.2.jar > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: Adding to classpath: > > /export/home/sbe/benchmark/mylibs/HTTPClient.jar > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: Adding to classpath: > > /export/home/sbe/benchmark/mylibs/json-lib-2.2.1-jdk15.jar > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: Adding to classpath: > > /export/home/sbe/benchmark/mylibs/ezmorph-1.0.4.jar > > > > 2008/03/18 16:25:52 INFO - jmeter.JMeter: Adding to classpath: > > /export/home/sbe/benchmark/mylibs/commons-beanutils-1.8.0-BETA.jar > > > > ... > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

