Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 63833 invoked from network); 16 Aug 2007 22:48:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 22:48:16 -0000 Received: (qmail 79574 invoked by uid 500); 16 Aug 2007 22:48:07 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 79541 invoked by uid 500); 16 Aug 2007 22:48:07 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 79530 invoked by uid 99); 16 Aug 2007 22:48:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 15:48:07 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.146.181 as permitted sender) Received: from [209.85.146.181] (HELO wa-out-1112.google.com) (209.85.146.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 22:48:04 +0000 Received: by wa-out-1112.google.com with SMTP id k22so21385waf for ; Thu, 16 Aug 2007 15:47:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FvYkrUOE+bKKmHXrTp68tMxH7CAo+pGgiy3DDB+Zbw7Wae0LPWjheNiYIbyPhHF/wOYDhoH/it2mj9mzpPaXb6e9dHQtvog0fXBF8yjHTIytomC2cnzjpn+C2DLEJroKrkvCjgG/g27MiNwgV6ddCEL1ycxxtB213dgLqyN0BoU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XuFM8+UWeFOEjjjkluq/H0NSpnIWLLOjhB54vtgTqOdPRbCJncHW28Bp8ozqs5U7Whdoxbvcj+jkC+H6NG42jm7T/D6e7+MQUwb1XLujFzKiMbIa9WEwvbRIjbIInAlfkeDQ9rXGh/XDNoyNa/a6ko+nN/ac+mVglw/vPyP4tO4= Received: by 10.114.131.9 with SMTP id e9mr410600wad.1187304463023; Thu, 16 Aug 2007 15:47:43 -0700 (PDT) Received: by 10.114.168.12 with HTTP; Thu, 16 Aug 2007 15:47:42 -0700 (PDT) Message-ID: <25aac9fc0708161547t5c81a365r9f61e9e65ae750cd@mail.gmail.com> Date: Thu, 16 Aug 2007 23:47:42 +0100 From: sebb To: "JMeter Users List" Subject: Re: Junit Sampler with spring RMI connection proxy causing Exception In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org I'm not very familiar with RMI - and debugging it seems to be extremely difficult. All I can suggest is that perhaps there is a classpath problem on the RMI server. S On 16/08/07, Johan Hedlund wrote: > Hi, > > I'm trying to use JMeter to run unit tests that use spring to connect to a > remote RMI service. I use the spring RMI proxy both on the server and on the > client side to handle the RMI connection, meaning that my RMI service > interface does not extend Remote. > > My unit tests run just fine outside of JMeter (in maven or in Eclipse), but > when I try to run them in JMeter I get strange RMI Exceptions (included at > the end of this post). The exception mentions not having a protocol, but my > service url DOES work as intended outside of JMeter, so that can't be it. > > I've done some more testing to try to narrow down the problem, and have come > to the conclusion that the RMI connection fails in JMeter if the remote > service is published using an interface that does not extend Remote, but > works fine if it DOES extend it. > > Has anyone else come across this problem, and is there any explanation for > it or way around it? > > Thanks > > /Johan > > > The stack trace is: > > > java.rmi.ServerException: RemoteException occurred in server thread; nested > exception is: > java.rmi.UnmarshalException: error unmarshalling arguments; nested > exception is: > java.net.MalformedURLException: no protocol: and > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at sun.rmi.transport.tcp.TCPTransport.handleMessages( > TCPTransport.java:460) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run( > TCPTransport.java:701) > at java.lang.Thread.run(Thread.java :595) > at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown > Source) > at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) > at sun.rmi.server.UnicastRef.invoke (Unknown Source) > at org.springframework.remoting.rmi.RmiInvocationWrapper_Stub.invoke(Unknown > Source) > at com.drkw.cpds.sos.clients.eca.EcaAsClientOfSosTest.testSOSRMI( > EcaAsClientOfSosTest.java:164) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.jmeter.protocol.java.sampler.JUnitSampler$1.protect( > JUnitSampler.java:372) > at junit.framework.TestResult.runProtected(TestResult.java :124) > at org.apache.jmeter.protocol.java.sampler.JUnitSampler.sample( > JUnitSampler.java:375) > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) > at java.lang.Thread.run(Unknown Source) > Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; > nested exception is: > java.net.MalformedURLException: no protocol: and > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:282) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at sun.rmi.transport.tcp.TCPTransport.handleMessages( > TCPTransport.java:460) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run( > TCPTransport.java:701) > at java.lang.Thread.run(Thread.java :595) > Caused by: java.net.MalformedURLException: no protocol: and > at java.net.URL.(URL.java:567) > at java.net.URL.(URL.java:464) > at java.net.URL.(URL.java :413) > at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747) > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > at sun.rmi.server.MarshalInputStream.resolveClass( > MarshalInputStream.java:197) > at java.io.ObjectInputStream.readNonProxyDesc ( > ObjectInputStream.java:1538) > at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java > :1460) > at java.io.ObjectInputStream.readOrdinaryObject( > ObjectInputStream.java:1693) > at java.io.ObjectInputStream.readObject0 (ObjectInputStream.java > :1299) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) > at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:290) > at sun.rmi.server.UnicastServerRef.dispatch (UnicastServerRef.java > :279) > ... 6 more > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org