jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xu, William [ITS]" <wx...@sprintspectrum.com>
Subject RE: question about setting remote JMeter server
Date Tue, 20 May 2003 20:09:16 GMT
Thank you Drew. After I installed the identical version on both the client and the server,
it is working fine!

I do have another issue with the remote server regarding HTTPS. It looks like the certificate
is not properly sent to the web server. 

My config on the server where the remote Jmeter server is running:

1. JDK 1.3.1_07
2. JSSE installed in the jre/lib/ext
3. java.security has been modified to enable the providers
4. The following system properties are set in the jmeter script (I don't trust the programmatic
registrations of providers so I didn't set these in jmeter.properties)

-Djavax.net.ssl.trustStore=/apps/j2sdk1_3_1_07/jre/lib/security/cacerts
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

I received the following errors:

05/20/2003 2:54:52 PM ERROR - jmeter.engine:  java.lang.NullPointerException
	at com.sun.net.ssl.internal.ssl.SunJSSE_s.<init>(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SunJSSE_i.<init>(DashoA6275)
	at com.sun.net.ssl.internal.ssl.ClientHandshaker.getKickstartMessage(DashoA6275)
	at com.sun.net.ssl.internal.ssl.Handshaker.kickstart(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
	at java.io.OutputStream.write(OutputStream.java:56)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
	at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect(DashoA6275)
	at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(DashoA6275)
	at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l(DashoA6275)
	at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>(DashoA6275)
	at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>(DashoA6275)
	at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a(DashoA6275)
	at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a(DashoA6275)
	at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect(DashoA6275)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.connect(HTTPSampler.java:841)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:911)
	at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:391)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerFull.sample(HTTPSamplerFull.java:171)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:141)
	at java.lang.Thread.run(Thread.java:479)

I am thinking it may be due to the keystore password not provided. But How can I provide a
keystore password to the remote jmeter server if the GUI does not prompt me for one?


Regards,

William Xu
CAM Architecture
Work - 913.794.4669
PCS - 913.484.3276



-----Original Message-----
From: Drew Gulino [mailto:drew_gulino@yahoo.com]
Sent: Tuesday, May 20, 2003 10:37 AM
To: JMeter Users List
Subject: Re: question about setting remote JMeter server


This will happen if the version of the JMeter running
on the controlling box differs even slightly from the
version running on the remote JMeter server.  Ensure
the JMeter code is exactly the same on all the
machines by copying JMeter from the same source.

Also make sure your host file is the same on all
machines.

--- "Xu, William [ITS]" <wxu01@sprintspectrum.com>
wrote:
> I am trying to set up a remote JMeter server to test
> my web app. Always get socket exception, can
> somebody help please? 
> 
> The client GUI runs on W2K desktop. Here is my
> config:
> 
> Server - Solaris 2.8 SPARC
> echo $CLASSPATH
>
:/apps/src/jakarta-jmeter-1.8.1/lib/jorphan.jar:/apps/src/jakarta-jmeter-1.8.1/lib/logkit-1.0.1.jar:/apps/src/jakarta-jmeter-1.8.1/lib/ext/ApacheJMeter_core.jar
> 
> nohup rmiregistry &
> nohup jmeter -s &
> ps -ef | grep java
> weblogic  3634  3544  0 10:00:14 pts/1    0:01
>
/usr/bin/../java/bin/../jre/bin/../bin/sparc/native_threads/rmiregistry
> weblogic  3663  3661  0 10:02:14 pts/1    0:01
>
/usr/bin/../java/bin/../jre/bin/../bin/sparc/native_threads/java
> -Xincgc -jar .
> 
> Client - W2K
> edit jmeter.properties to add the IP address of the
> server where jmeter server was started.
> start GUI
> load test plan
> remote start myIP
> 
> Get the following error in my jmeter.log on the
> client:
> 
> 5/20/2003 10:12:36 AM ERROR - jmeter.engine: 
> java.rmi.MarshalException: error marshalling
> arguments; nested exception is: 
> 	java.net.SocketException: Connection aborted by
> peer: socket write error
> java.net.SocketException: Connection aborted by
> peer: socket write error
> 	at java.net.SocketOutputStream.socketWrite(Native
> Method)
> 	at java.net.SocketOutputStream.write(Unknown
> Source)
> 	at java.io.BufferedOutputStream.flushBuffer(Unknown
> Source)
> 	at java.io.BufferedOutputStream.write(Unknown
> Source)
> 	at java.io.ObjectOutputStream.drain(Unknown Source)
> 	at java.io.ObjectOutputStream.setBlockData(Unknown
> Source)
> 	at java.io.ObjectOutputStream.writeObject(Unknown
> Source)
> 	at sun.rmi.server.UnicastRef.marshalValue(Unknown
> Source)
> 	at sun.rmi.server.UnicastRef.invoke(Unknown Source)
> 	at
>
org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub.configure(Unknown
> Source)
> 	at
>
org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:138)
> 	at
>
org.apache.jmeter.gui.action.RemoteStart.startEngine(RemoteStart.java:164)
> 	at
>
org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:136)
> 	at
>
org.apache.jmeter.gui.action.ActionRouter.actionPerformed(ActionRouter.java:108)
> 	at
>
javax.swing.AbstractButton.fireActionPerformed(Unknown
> Source)
> 	at
>
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
> Source)
> 	at
>
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
> Source)
> 	at
> javax.swing.DefaultButtonModel.setPressed(Unknown
> Source)
> 	at javax.swing.AbstractButton.doClick(Unknown
> Source)
> 	at
>
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown
> Source)
> 	at java.awt.Component.processMouseEvent(Unknown
> Source)
> 	at java.awt.Component.processEvent(Unknown Source)
> 	at java.awt.Container.processEvent(Unknown Source)
> 	at java.awt.Component.dispatchEventImpl(Unknown
> Source)
> 	at java.awt.Container.dispatchEventImpl(Unknown
> Source)
> 	at java.awt.Component.dispatchEvent(Unknown Source)
> 	at
>
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
> Source)
> 	at
>
java.awt.LightweightDispatcher.processMouseEvent(Unknown
> Source)
> 	at
> java.awt.LightweightDispatcher.dispatchEvent(Unknown
> Source)
> 	at java.awt.Container.dispatchEventImpl(Unknown
> Source)
> 	at java.awt.Window.dispatchEventImpl(Unknown
> Source)
> 	at java.awt.Component.dispatchEvent(Unknown Source)
> 	at java.awt.EventQueue.dispatchEvent(Unknown
> Source)
> 	at
>
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
> 	at
>
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
> Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown
> Source)
> 	at java.awt.EventDispatchThread.run(Unknown Source)
> 
> 
> Regards,
> 
> William Xu
> CAM Architecture
> Work - 913.794.4669
> PCS - 913.484.3276
> 
> 
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
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


Mime
View raw message