Bug 48144 - NullPointer Exception in org.apache.jmeter.protocol.jms.client.OnMessageSubscriber initConnection()
Summary: NullPointer Exception in org.apache.jmeter.protocol.jms.client.OnMessageSubsc...
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.3.4
Hardware: Macintosh Mac OS X 10.4
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-05 19:54 UTC by martinrl
Modified: 2009-11-06 19:21 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martinrl 2009-11-05 19:54:26 UTC
When a JMS Subscriber Sampler is used with the "Use MessageListener.onMessage()" option selected, a NullPointerException is thrown because ConnectionFactory.getTopicConnectionFactory(ctx, connfactory) is not called before the call to 
    this.CONN = ConnectionFactory.getTopicConnection();
in 
  org.apache.jmeter.protocol.jms.client.OnMessageSubscriber.initConnection()
Comment 1 Sebb 2009-11-06 02:06:55 UTC
Thanks!

Fixed in SVN:

URL: http://svn.apache.org/viewvc?rev=833335&view=rev
Log:
Bug 48144 - NPE in OnMessageSubscriber
Comment 2 martinrl 2009-11-06 19:21:53 UTC
Thank you for your work on this product!  I wish I had looked into it sooner!  Glad I'm learning it now and grateful for your work and support!
Comment 3 The ASF infrastructure team 2022-09-24 20:37:44 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2306