jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: NPE while running JMS Topic Test plan
Date Mon, 08 Feb 2010 12:01:03 GMT
On 08/02/2010, Cheravalloor, Jayesh P. (IS Consultant)
<JPCheravalloor@consultantemail.com> wrote:
> Thanks Seb! This worked keeping the jndi.properties inside the lib
>  folder additionally  (Somehow keeping it in the system classpath did not
>  work)
>
>  Also was wondering if there a release planned soon with these changes?

Yes, but no date has been set.

>  Thanks much,
>
>  Jayesh P Cheravalloor.
>  Desk : +91 11 416 7000 Extn. 4245
>  Cell : +91 98 18 524789
>
>
>  -----Original Message-----
>  From: sebb [mailto:sebbaz@gmail.com]
>  Sent: Friday, February 05, 2010 4:36 AM
>  To: JMeter Users List
>  Subject: Re: NPE while running JMS Topic Test plan
>
>  On 04/02/2010, Cheravalloor, Jayesh P. (IS Consultant)
>  <JPCheravalloor@consultantemail.com> wrote:
>  > Hi,
>  >
>  >  I'm a newbie to Jmeter. While running a JMS Topic Test plan created
>  >  based on the Jmeter tutorial, I'm getting a NullPointerException. I'm
>  >  using ActiveMQ as a JMS provider and it is running fine when I'm
>  >  executing this sampler.
>  >
>  >  Looking at the code, when I check the box "Use jndi.properties file",
>  it
>  >  is unable to lookup ConnectionFactory , and when I uncheck the box
>  and
>  >  mentions the InitialContextFactory and Provider URL in the Jmeter
>  GUI,
>  >  it was able to create the TopicConnectionFactory but it fails later
>  >  giving a NullPointerException during the execution of statement
>  >  this.CONN.createTopicSession(false, TopicSession.AUTO_ACKNOWLEDGE) in
>  >  the constructor of ReceiveSubscriber.java. (I'm using version 2.3.4)
>  >
>  >  if (ctx != null) {
>  >             try {
>  >
>  >  ConnectionFactory.getTopicConnectionFactory(ctx,connfactory);
>  >                 _conn = ConnectionFactory.getTopicConnection();
>  >                 _topic = InitialContextFactory.lookupTopic(ctx,
>  topic);
>  >                 _session = this.CONN.createTopicSession(false,
>  >  TopicSession.AUTO_ACKNOWLEDGE);
>  >                 _subscriber =
>  this.SESSION.createSubscriber(this.TOPIC);
>  >                 log.info("created the topic connection successfully");
>  >             } catch (JMSException e) {
>  >                 log.error("Connection error: " + e.getMessage());
>  >             }
>  >
>  >  And I see this.CONN being set with _conn object down below this piece
>  of
>  >  code. So NPE looks quite obvious to me unless injected from outside.
>  >
>  >  Please let me know if I'm missing something here (any configuration
>  >  anywhere) or need to use another version.
>
>  There were at least 2 NPEs reported against this class:
>
>  https://issues.apache.org/bugzilla/show_bug.cgi?id=47870
>  https://issues.apache.org/bugzilla/show_bug.cgi?id=47899
>
>  These have been fixed in SVN, but are not yet in a release. If you can
>  test using a nightly build, this may resolve your problems (but please
>  note that nightly builds are not formally tested - see the disclaimers
>  on the download pages).
>
>  >  P.S. I have also ensured that jndi.properties is in the classpath of
>  >  ActiveMQ.
>  >
>  >  Thanks,
>  >
>  > Jayesh.
>  >
>  >
>
>
> ---------------------------------------------------------------------
>  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
>
>

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