jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Typed variable declaration error opening AQSession with BeanShell Sampler
Date Mon, 22 Mar 2010 19:27:01 GMT
try catch blocks printing exception stacktraces and liberal print and log
statements :)
If your code is working in eclipse then its probably classpath libraries/
property files that are available in your eclipse project but not to JMeter.




On Mon, Mar 22, 2010 at 9:12 AM, Peter <peterg1629@gmail.com> wrote:

> Hi,
>
> 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:
>
> ---- part of the script ----
>
> import javax.jms.*;
> import oracle.jms.*;
>
> String url = "jdbc:oracle:thin:@// server:port:sid";
> QueueConnectionFactory qcf = AQjmsFactory.getQueueConnectionFactory(url,
> null);
> QueueConnection connection = qcf.createQueueConnection("admin", "admin");
>
> AQjmsSession session = (AQjmsSession)(connection.createQueueSession(true,
> 0));
>
> ----------
>
> Error in JMeter.log:
>
> 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 = "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 = "jdbc:oracle:thin:@//server . . . '' : Typed
> variable declaration : Method Invocation connection.createQueueSession
>
>
> Does anybody has a clue how to investigate this?
>
> Kind regards
> Peter
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message