Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBC011155D for ; Fri, 21 Feb 2014 16:34:08 +0000 (UTC) Received: (qmail 26776 invoked by uid 500); 21 Feb 2014 16:34:07 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 26733 invoked by uid 500); 21 Feb 2014 16:34:06 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 26675 invoked by uid 99); 21 Feb 2014 16:33:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 16:33:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-we0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 16:33:47 +0000 Received: by mail-we0-f180.google.com with SMTP id u57so2691522wes.25 for ; Fri, 21 Feb 2014 08:33:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5GwOf+CBy0fdKOKGVnG9R6Ddmh/jmMzed9V80N8eNNU=; b=wMgEx6Q+9OG2q5UqIC37ReLc4xV2hzwTgRGQHwkSQQm3HNoaOOwVwGG9ae2lV0uYLf LRB37MBJnq/rYRTjzAotb/ThLagpFMVy/YMqyjeIgExzaKSdlT9i/nkEzY8oyC7gq947 znmr11Cm6Vj3gFwEIPQRGDNfoKEspn+pfGk8+qCEiScRr/8RtZtev6tEUkodajDWWtT6 Dw6otzVt/4dY3+JouMj3ZDctoQmZywuVcAGc2GaCuA5GaEoZNubHkacqq1brO7VjII1B hGXXioMtiduKYk0XGRYrBvqPM5s9unFMf4jMhBdLTLH1e28kHe7vb5N9r+fuHcZAcPYx Ypog== MIME-Version: 1.0 X-Received: by 10.194.240.7 with SMTP id vw7mr7960734wjc.75.1393000407742; Fri, 21 Feb 2014 08:33:27 -0800 (PST) Received: by 10.194.86.198 with HTTP; Fri, 21 Feb 2014 08:33:27 -0800 (PST) In-Reply-To: <5F9B2597-906E-463B-813E-4D4AF3C6F6D6@gmail.com> References: <5F9B2597-906E-463B-813E-4D4AF3C6F6D6@gmail.com> Date: Fri, 21 Feb 2014 16:33:27 +0000 Message-ID: Subject: Re: Getting nullPinterException in JMS Point-to-point Script in JMeter 2.11 From: sebb To: JMeter Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Please remember to redact the log file before making it public. Best to create a Bugzilla issue and attach the file there. On 21 February 2014 16:26, Jayesh New Gmail wrote: > Yes it happens for each sample and with one transaction also. > Let me enable debugging and post the error > > Cheers, > Jayesh > >> On Feb 21, 2014, at 10:01 AM, sebb wrote: >> >> Does it happen for every sample? >> Does it still happen if you restrict the test to one thread? >> >> The cause of the NPE is a null context environment, but I don't see >> how that can easily happen >> >> You can turn on debug logging in the class by defining the JMeter property: >> >> log_level.jmeter.protocol.jms.sampler.JMSSampler=DEBUG >> >> >>> On 21 February 2014 15:38, Jayesh Guru wrote: >>> Hello, >>> >>> For JMS Point to Point I am getting NullPointerException. >>> I appreciate any help in this regard. >>> >>> Thread Name: Thread Group 1-1 >>> Sample Start: 2014-02-21 09:12:41 CST >>> Load time: 0 >>> Latency: 0 >>> Size in bytes: 0 >>> Headers size in bytes: 0 >>> Body size in bytes: 0 >>> Sample Count: 1 >>> Error Count: 1 >>> Response code: >>> Response message: java.lang.NullPointerException >>> >>> I have put below jars in lib directory of Jmeter Directory. >>> Same JMS Script was working in Jmeter 2.3.2 with old version of jars. >>> >>> com.ibm.mq.commonservices.jar >>> com.ibm.mq.connector.jar >>> com.ibm.mq.headers.jar >>> com.ibm.mq.jar >>> com.ibm.mq.jmqi.jar >>> com.ibm.mq.jmqi.local.jar >>> com.ibm.mq.jmqi.remote.jar >>> com.ibm.mq.jmqi.system.jar >>> com.ibm.mq.jms.admin.jar >>> com.ibm.mq.pcf.jar >>> com.ibm.mqjms.jar >>> com.ibm.msg.client.commonservices.jar >>> com.ibm.msg.client.jms.internal.jar >>> com.ibm.msg.client.jms.jar >>> com.ibm.msg.client.provider.jar >>> com.ibm.msg.client.wmq.common.jar >>> com.ibm.msg.client.wmq.factories.jar >>> com.ibm.msg.client.wmq.jar >>> com.ibm.msg.client.wmq.v6.jar >>> >>> In LogViewer i saw below error: >>> >>> *2014/02/21 09:12:41 ERROR - jmeter.protocol.jms.sampler.JMSSampler: >>> java.lang.NullPointerException* >>> * at >>> org.apache.jmeter.protocol.jms.sampler.JMSSampler.getPrincipal(JMSSampler.java:534)* >>> * at >>> org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:339)* >>> * at >>> org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:597)* >>> * at >>> org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:961)* >>> * at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:946)* >>> * at >>> org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:566)* >>> * at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:554)* >>> * at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)* >>> * at java.lang.Thread.run(Thread.java:744)* >>> >>> *2014/02/21 09:12:41 WARN - jmeter.protocol.jms.sampler.JMSSampler: >>> Session may not be null while creating message >>> java.lang.IllegalStateException: Session may not be null while creating >>> message* >>> * at >>> org.apache.jmeter.protocol.jms.sampler.JMSSampler.createMessage(JMSSampler.java:179)* >>> * at >>> org.apache.jmeter.protocol.jms.sampler.JMSSampler.sample(JMSSampler.java:140)* >>> * at >>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)* >>> * at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)* >>> * at java.lang.Thread.run(Thread.java:744)* >>> >>> >>> *Thanks * >>> *Jayesh Guru* >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org >> For additional commands, e-mail: user-help@jmeter.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org