On 08/02/2010, Cheravalloor, Jayesh P. (IS Consultant) <[email protected]> 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:[email protected]] > 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) > <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

