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 12D541084E for ; Mon, 24 Feb 2014 16:35:04 +0000 (UTC) Received: (qmail 3109 invoked by uid 500); 24 Feb 2014 16:35:03 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 2904 invoked by uid 500); 24 Feb 2014 16:35:02 -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 2895 invoked by uid 99); 24 Feb 2014 16:35:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Feb 2014 16:35:02 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jayeshguru81@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-we0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Feb 2014 16:34:56 +0000 Received: by mail-we0-f178.google.com with SMTP id q59so4758697wes.23 for ; Mon, 24 Feb 2014 08:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=dlnyXUABfMTpe2QqwstRMNiVLy73T3cPz2q3OIuSB50=; b=GzLhJS2Aubdcod6cS1hmJNCXqyLsOdumIwWMRpj7x+ehBF3ilpp3YCP3z8hTXdwWU8 Go83KaZVk8OvG+rJWdp2AVyLDSn+NgVl6h9UpyPeR3yEABZkww1e8GGO3KFKLQ6KbMM3 euFVONo1tx2FRWGhQHhktZmNxOruGK+v3G6O10jmkBefyrAaLcZIK51HCGDt1Kglp6iO Ed257dOE22o/p6c0TZw27WUdAL+7Dvs4xWGAEJQVXBlX1Wep94iNBXxudKJmP+qq5co9 9lEtGM6BB2WhoFYmHYPqqL+TNS+tHZSVG20VDypOjzio/rFOJiTat3ABAqzR4EKe/QFX B4gw== X-Received: by 10.180.37.178 with SMTP id z18mr15297724wij.46.1393259675574; Mon, 24 Feb 2014 08:34:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.234.225 with HTTP; Mon, 24 Feb 2014 08:34:15 -0800 (PST) In-Reply-To: References: <5F9B2597-906E-463B-813E-4D4AF3C6F6D6@gmail.com> From: Jayesh Guru Date: Mon, 24 Feb 2014 10:34:15 -0600 Message-ID: Subject: Re: Getting nullPinterException in JMS Point-to-point Script in JMeter 2.11 To: JMeter Users List Content-Type: multipart/alternative; boundary=e89a8f642e1e0ae5e604f3298c7f X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f642e1e0ae5e604f3298c7f Content-Type: text/plain; charset=ISO-8859-1 I have set below properties to DEBUG and tested but doesn't get more information on these errors,below are error logs. Can you tell me how to create a BUGZILLA issue as i haven't doesn't it before? log_level.jmeter=DEBUG log_level.jmeter.protocol.jms.sampler.JMSSampler=DEBUG 2014/02/24 09:56:27 DEBUG - jmeter.protocol.jms.sampler.JMSSampler: Empty JNDI properties 2014/02/24 09:56:27 DEBUG - jmeter.protocol.jms.sampler.JMSSampler: Initial Context Properties 2014/02/24 09:56:27 ERROR - jmeter.protocol.jms.sampler.JMSSampler: java.lang.NullPointerException at org.apache.jmeter.protocol.jms.sampler.JMSSampler.printEnvironment(JMSSampler.java:435) at org.apache.jmeter.protocol.jms.sampler.JMSSampler.getInitialContext(JMSSampler.java:426) at org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:319) 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/24 09:56:27 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* On Fri, Feb 21, 2014 at 10:33 AM, sebb wrote: > 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 > > --e89a8f642e1e0ae5e604f3298c7f--