On 24 February 2014 16:34, Jayesh Guru <[email protected]> wrote: > 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?
http://jmeter.apache.org/issues.html However I think the problem is not in JMeter but in the JMS or JVM libraries. According the the docs [1] Context.getEnvironment() can never return null, yet that is what is causing the NPE below at JMSSampler.java:435. The same applies to the original NPE at JMSSampler.java:534 - it can only occur if getEnvironment() returns null, which it is not supposed to do. So it looks like there may be a problem with the JMS library. [1] http://docs.oracle.com/javase/7/docs/api/javax/naming/Context.html#getEnvironment%28%29 > 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 <[email protected]> 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 <[email protected]> >> 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 <[email protected]> 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 <[email protected]> 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: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
