Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 98943 invoked from network); 16 Aug 2007 13:33:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 13:33:31 -0000 Received: (qmail 79829 invoked by uid 500); 16 Aug 2007 13:33:28 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 79816 invoked by uid 500); 16 Aug 2007 13:33:28 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 79805 invoked by uid 99); 16 Aug 2007 13:33:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 06:33:28 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [85.158.136.35] (HELO mail125.messagelabs.com) (85.158.136.35) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 16 Aug 2007 13:33:44 +0000 X-VirusChecked: Checked X-Env-Sender: Simon.Horton@uk.mizuho-sc.com X-Msg-Ref: server-6.tower-125.messagelabs.com!1187271180!18973536!1 X-StarScan-Version: 5.5.12.11; banners=-,-,- X-Originating-IP: [195.47.198.137] Received: (qmail 17120 invoked from network); 16 Aug 2007 13:33:00 -0000 Received: from unknown (HELO maimsbra2.uk.mizuho-sc.com) (195.47.198.137) by server-6.tower-125.messagelabs.com with SMTP; 16 Aug 2007 13:33:00 -0000 Received: from GBR1-LDN01.uk.mizuho-sc.com (unverified) by maimsbra2.uk.mizuho-sc.com (Clearswift SMTPRS 5.2.9) with ESMTP id for ; Thu, 16 Aug 2007 14:36:16 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: Junit Sampler with spring RMI connection proxy Date: Thu, 16 Aug 2007 14:33:00 +0100 Message-ID: <1753EE61AD475A47A4DEBDD983A7BBCF21FFAD@GBR1-LDN01.uk.mizuho-sc.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Junit Sampler with spring RMI connection proxy Thread-Index: AcfgCUosArtH0zSvRAOneS5stt50iwAAHzUw From: "Horton Simon" To: "JCS Users List" X-Virus-Checked: Checked by ClamAV on apache.org Hi Johan, I think you have posted your question to the wrong user group, as this is the Java Caching Service (JCS) user group rather than JMeter, Spring or Junit. Bye, Simon -----Original Message----- From: Johan Hedlund [mailto:johan@dprof.net]=20 Sent: Thursday, August 16, 2007 2:24 PM To: jcs-users@jakarta.apache.org Subject: Junit Sampler with spring RMI connection proxy 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(Unknow n 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 This message and any files transmitted with it are confidential and intende= d solely for the use of the individual or entity to whom they are addressed= . If you have received this message in error please delete it and any files= transmitted with it, after notifying postmaster@uk.mizuho-sc.com=20 Any opinions expressed in this message may be those of the author and not n= ecessarily those of the company. The company accepts no responsibility for = the accuracy or completeness of any information contained herein. This mess= age is not intended to create legal relations between the company and the r= ecipient.=20 Recipients should please note that messages sent via the Internet may be in= tercepted and that caution should therefore be exercised before dispatching= to the company any confidential or sensitive information.=20 Mizuho International plc Bracken House, One Friday Street, London EC4M 9JA.= TEL. 020 72361090. Wholly owned subsidiary of Mizuho Securities Co., Ltd. = Member of Mizuho Financial Group. Authorised and regulated by the Financial= Services Authority. Member of the London Stock Exchange.=20 Registered in England No. 1203696. Registered office as above. --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org