jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jayesh New Gmail <jayeshgur...@gmail.com>
Subject Re: Getting nullPinterException in JMS Point-to-point Script in JMeter 2.11
Date Fri, 21 Feb 2014 16:26:48 GMT
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 <sebbaz@gmail.com> 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 <jayeshguru81@gmail.com> 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


Mime
View raw message