Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 64548 invoked from network); 4 Feb 2010 11:52:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 11:52:17 -0000 Received: (qmail 61353 invoked by uid 500); 4 Feb 2010 11:52:16 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 61305 invoked by uid 500); 4 Feb 2010 11:52:16 -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 61293 invoked by uid 99); 4 Feb 2010 11:52:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 11:52:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.170.34.246] (HELO wellington.com) (63.170.34.246) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 11:52:06 +0000 Received: from ([134.42.154.50]) by mdc-prod-gtw-01.wellington.com with ESMTP id HHF1GG1.26990951; Thu, 04 Feb 2010 06:51:41 -0500 X-TM-IMSS-Message-ID: <3d05b4fb00080ccd@wellington.com> Received: from PROD-MSG-CLU-02.messaging.wellmanage.com ([134.42.23.40]) by wellington.com ([134.42.154.50]) with ESMTP (TREND IMSS SMTP Service 7.0) id 3d05b4fb00080ccd ; Thu, 4 Feb 2010 06:51:40 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CAA590.69DC7BDC" Subject: NPE while running JMS Topic Test plan Date: Thu, 4 Feb 2010 06:51:38 -0500 Message-ID: <3867168A157DBB4AAC7C65F5E6D700AB095A2D@PROD-MSG-CLU-02.messaging.wellmanage.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: NPE while running JMS Topic Test plan Thread-Index: AcqlkGh2XOfS9GrJS6GR8MTIwfTLIA== From: "Cheravalloor, Jayesh P. (IS Consultant)" To: ------_=_NextPart_001_01CAA590.69DC7BDC Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable 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 !=3D null) { try { =20 ConnectionFactory.getTopicConnectionFactory(ctx,connfactory); _conn =3D ConnectionFactory.getTopicConnection(); _topic =3D InitialContextFactory.lookupTopic(ctx, = topic); _session =3D this.CONN.createTopicSession(false, TopicSession.AUTO_ACKNOWLEDGE); _subscriber =3D = 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. P.S. I have also ensured that jndi.properties is in the classpath of ActiveMQ. Thanks, Jayesh. ------_=_NextPart_001_01CAA590.69DC7BDC--