You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Kant, David" <DK...@spreadfair.com> on 2008/03/18 17:45:03 UTC

Jmeter and Solaris 10

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.

 

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

...

 


Re: Jmeter and Solaris 10

Posted by sebb <se...@gmail.com>.
In that case, are you sure you did not build any classes using Java 1.6?

Try removing the additional jar file(s) to check that JMeter runs OK
as installed.

Rebuild the additional jar files.

This is not really a JMeter problem...

On 19/03/2008, Kant, David <DK...@spreadfair.com> wrote:
>
>
>
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: Setting System property:
>  server_port=1099
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: Copyright (c) 1998-2007 The
>  Apache Software Foundation
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: Version 2.3.1
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: java.version=1.5.0_06
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: os.name=SunOS
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: os.arch=sparc
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: os.version=5.9
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: file.encoding=ISO646-US
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: Default Locale=English
>  2008/03/19 16:38:37 INFO  - jmeter.JMeter: JMeter  Locale=English
>
>
>  -----Original Message-----
>  From: sebb [mailto:sebbaz@gmail.com]
>
> Sent: 19 March 2008 17:43
>  To: JMeter Users List
>  Subject: Re: Jmeter and Solaris 10
>
>  Yes, but:
>
>  What does the jmeter server log show for the JVM version?
>
>
>  On 19/03/2008, Kant, David <DK...@spreadfair.com> wrote:
>  >
>  >
>  >  Sebb,
>  >
>  >  That's what I sent you.
>  >  The UnsupportedClassVersonError came from the jmeter-server.log file
>  >  from the remote solaris machine.
>  >
>  >  Dave
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >  -----Original Message-----
>  >  From: sebb [mailto:sebbaz@gmail.com]
>  >
>  > Sent: 19 March 2008 16:13
>  >  To: JMeter Users List
>  >  Subject: Re: Jmeter and Solaris 10
>  >
>  >  On 19/03/2008, Kant, David <DK...@spreadfair.com> 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:sebbaz@gmail.com]
>  >  >  Sent: 19 March 2008 00:36
>  >  >  To: JMeter Users List
>  >  >  Subject: Re: Jmeter and Solaris 10
>  >  >
>  >  >  On 18/03/2008, Kant, David <DK...@spreadfair.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
>  >  >  For additional commands, e-mail:
>  jmeter-user-help@jakarta.apache.org
>  >  >
>  >  >
>  >  >
>  ---------------------------------------------------------------------
>  >  >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >  >  For additional commands, e-mail:
>  jmeter-user-help@jakarta.apache.org
>  >  >
>  >  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Jmeter and Solaris 10

Posted by "Kant, David" <DK...@spreadfair.com>.


2008/03/19 16:38:37 INFO  - jmeter.JMeter: Setting System property:
server_port=1099
2008/03/19 16:38:37 INFO  - jmeter.JMeter: Copyright (c) 1998-2007 The
Apache Software Foundation
2008/03/19 16:38:37 INFO  - jmeter.JMeter: Version 2.3.1
2008/03/19 16:38:37 INFO  - jmeter.JMeter: java.version=1.5.0_06
2008/03/19 16:38:37 INFO  - jmeter.JMeter: os.name=SunOS
2008/03/19 16:38:37 INFO  - jmeter.JMeter: os.arch=sparc
2008/03/19 16:38:37 INFO  - jmeter.JMeter: os.version=5.9
2008/03/19 16:38:37 INFO  - jmeter.JMeter: file.encoding=ISO646-US
2008/03/19 16:38:37 INFO  - jmeter.JMeter: Default Locale=English
2008/03/19 16:38:37 INFO  - jmeter.JMeter: JMeter  Locale=English

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: 19 March 2008 17:43
To: JMeter Users List
Subject: Re: Jmeter and Solaris 10

Yes, but:

What does the jmeter server log show for the JVM version?


On 19/03/2008, Kant, David <DK...@spreadfair.com> wrote:
>
>
>  Sebb,
>
>  That's what I sent you.
>  The UnsupportedClassVersonError came from the jmeter-server.log file
>  from the remote solaris machine.
>
>  Dave
>
>
>
>
>
>
>
>  -----Original Message-----
>  From: sebb [mailto:sebbaz@gmail.com]
>
> Sent: 19 March 2008 16:13
>  To: JMeter Users List
>  Subject: Re: Jmeter and Solaris 10
>
>  On 19/03/2008, Kant, David <DK...@spreadfair.com> 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:sebbaz@gmail.com]
>  >  Sent: 19 March 2008 00:36
>  >  To: JMeter Users List
>  >  Subject: Re: Jmeter and Solaris 10
>  >
>  >  On 18/03/2008, Kant, David <DK...@spreadfair.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
>  >  For additional commands, e-mail:
jmeter-user-help@jakarta.apache.org
>  >
>  >
>  >
---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >  For additional commands, e-mail:
jmeter-user-help@jakarta.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter and Solaris 10

Posted by sebb <se...@gmail.com>.
Yes, but:

What does the jmeter server log show for the JVM version?


On 19/03/2008, Kant, David <DK...@spreadfair.com> wrote:
>
>
>  Sebb,
>
>  That's what I sent you.
>  The UnsupportedClassVersonError came from the jmeter-server.log file
>  from the remote solaris machine.
>
>  Dave
>
>
>
>
>
>
>
>  -----Original Message-----
>  From: sebb [mailto:sebbaz@gmail.com]
>
> Sent: 19 March 2008 16:13
>  To: JMeter Users List
>  Subject: Re: Jmeter and Solaris 10
>
>  On 19/03/2008, Kant, David <DK...@spreadfair.com> 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:sebbaz@gmail.com]
>  >  Sent: 19 March 2008 00:36
>  >  To: JMeter Users List
>  >  Subject: Re: Jmeter and Solaris 10
>  >
>  >  On 18/03/2008, Kant, David <DK...@spreadfair.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
>  >  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Jmeter and Solaris 10

Posted by "Kant, David" <DK...@spreadfair.com>.

Sebb,

That's what I sent you.
The UnsupportedClassVersonError came from the jmeter-server.log file
from the remote solaris machine.

Dave






-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: 19 March 2008 16:13
To: JMeter Users List
Subject: Re: Jmeter and Solaris 10

On 19/03/2008, Kant, David <DK...@spreadfair.com> 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:sebbaz@gmail.com]
>  Sent: 19 March 2008 00:36
>  To: JMeter Users List
>  Subject: Re: Jmeter and Solaris 10
>
>  On 18/03/2008, Kant, David <DK...@spreadfair.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter and Solaris 10

Posted by sebb <se...@gmail.com>.
On 19/03/2008, Kant, David <DK...@spreadfair.com> 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:sebbaz@gmail.com]
>  Sent: 19 March 2008 00:36
>  To: JMeter Users List
>  Subject: Re: Jmeter and Solaris 10
>
>  On 18/03/2008, Kant, David <DK...@spreadfair.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Jmeter and Solaris 10

Posted by "Kant, David" <DK...@spreadfair.com>.
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
        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:sebbaz@gmail.com] 
Sent: 19 March 2008 00:36
To: JMeter Users List
Subject: Re: Jmeter and Solaris 10

On 18/03/2008, Kant, David <DK...@spreadfair.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter and Solaris 10

Posted by sebb <se...@gmail.com>.
On 18/03/2008, Kant, David <DK...@spreadfair.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org