Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 11527 invoked from network); 23 Mar 2010 06:37:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Mar 2010 06:37:54 -0000 Received: (qmail 65551 invoked by uid 500); 23 Mar 2010 06:37:54 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 65408 invoked by uid 500); 23 Mar 2010 06:37:53 -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 65400 invoked by uid 99); 23 Mar 2010 06:37:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 06:37:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of peterg1629@gmail.com designates 209.85.220.216 as permitted sender) Received: from [209.85.220.216] (HELO mail-fx0-f216.google.com) (209.85.220.216) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 06:37:43 +0000 Received: by fxm8 with SMTP id 8so1369950fxm.5 for ; Mon, 22 Mar 2010 23:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=q2HwiLjz/oQDLpw1++tOO78yV7MuYcQZrffQjIECjXE=; b=jdua0m0/l8jXH0lpRAt15GzvyubUwEWXvYx8uvX18cOxXrf7MQ8kCpihVjuRH5F45v lWf+blqcvnPBgHaMRz/AV82aaIuOQicHTm9ortTs0dKz8ShvhOQyToq8j3wn51DUjDX+ xOs1D/cX3/EhtxPYeyrTnhKn7tSEuIUNfWKzY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=BDk8wxfHezJ0XJcP/Uopnb3FmWSgMt/lJSeon1X9RyTbNtbDSurVzC8wUczH5o31yr P2IzdihdjUe4XltCTys78PoGm2xVXCWmA4xkgHJOitW/hSWNm0XO93X3o7bkE5fVBMsX tY1P2CX9ehSJ7uXE30hoUgjCdEmzdswEY/P48= Received: by 10.223.62.83 with SMTP id w19mr2214110fah.22.1269326242131; Mon, 22 Mar 2010 23:37:22 -0700 (PDT) Received: from surfer-30-15-76.surfnet.iacbox ([62.218.228.5]) by mx.google.com with ESMTPS id 9sm6282666fks.26.2010.03.22.23.37.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Mar 2010 23:37:21 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: Typed variable declaration error opening AQSession with BeanShell Sampler From: Peter In-Reply-To: <25aac9fc1003221441t515a9ce0t5308b8b5be37d652@mail.gmail.com> Date: Tue, 23 Mar 2010 07:37:20 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <25aac9fc1003221441t515a9ce0t5308b8b5be37d652@mail.gmail.com> To: "JMeter Users List" X-Mailer: Apple Mail (2.1077) X-Virus-Checked: Checked by ClamAV on apache.org thanks for your hints. During init AQjmsSession = javax.transaction.Transaction is referenced, whereas there was shown no = dependency. Adding jta.jar to lib/ext solved the problem. btw: try catch, additional logging etc do not help in this context. Kind regards Peter Am 22.03.2010 um 22:41 schrieb sebb: > On 22/03/2010, Peter wrote: >> Hi, >>=20 >> I am trying to send a message using Oracle Queues. Therefore I = prepared the code in Eclipse, where it works. Now I am trying to migrate = the code to JMeter BeanShell Sampler. Somehow JMeter reports an error = during execution: >>=20 >> ---- part of the script ---- >>=20 >> import javax.jms.*; >> import oracle.jms.*; >>=20 >> String url =3D "jdbc:oracle:thin:@// server:port:sid"; >> QueueConnectionFactory qcf =3D = AQjmsFactory.getQueueConnectionFactory(url, null); >> QueueConnection connection =3D qcf.createQueueConnection("admin", = "admin"); >>=20 >> AQjmsSession session =3D = (AQjmsSession)(connection.createQueueSession(true, 0)); >>=20 >> ---------- >>=20 >> Error in JMeter.log: >>=20 >> 2010/03/22 17:05:37 ERROR - jmeter.util.BeanShellInterpreter: Error = invoking bsh method: eval Sourced file: inline evaluation of: = ``import javax.jms.*; import oracle.jms.*; String url =3D = "jdbc:oracle:thin:@//server . . . '' : Typed variable declaration : = Method Invocation connection.createQueueSession >> 2010/03/22 17:05:37 WARN - = jmeter.protocol.java.sampler.BeanShellSampler: = org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval = Sourced file: inline evaluation of: ``import javax.jms.*; = import oracle.jms.*; String url =3D "jdbc:oracle:thin:@//server . . . = '' : Typed variable declaration : Method Invocation = connection.createQueueSession >>=20 >>=20 >> Does anybody has a clue how to investigate this? >=20 > The error message refers to "connection.createQueueSession" which only > appears in the line: >=20 > AQjmsSession session =3D = (AQjmsSession)(connection.createQueueSession(true, 0)); >=20 > so I would try breaking that up as >=20 > Object o =3D connection.createQueueSession(true, 0); > AQjmsSession session =3D (AQjmsSession)o; >=20 > and see if that helps >=20 >=20 >> Kind regards >>=20 >> Peter >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >>=20 >>=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org