You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2014/02/27 23:55:58 UTC

[Bug 56198] New: Getting NPE for JMS Point to Point

https://issues.apache.org/bugzilla/show_bug.cgi?id=56198

            Bug ID: 56198
           Summary: Getting NPE for JMS Point to Point
           Product: JMeter
           Version: 2.11
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: jayeshguru81@gmail.com

Enabled Debug Log Level 
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)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56198] Getting NPE for JMS Point to Point

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56198

Jayesh Guru <ja...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Jayesh Guru <ja...@gmail.com> ---
Getting NullPointerException while trying to run JMS Point to Point for my
application. I have put all MQ jars in lib directory and also required
Discovery Jars for application.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56198] JMSSampler : NullPointerException is thrown when JNDI underlying implementation of JMS provider does not comply with Context.getEnvironment contract

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56198

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Date: Fri Feb 28 22:53:29 2014
New Revision: 1573105

URL: http://svn.apache.org/r1573105
Log:
Bug 56198 - JMSSampler : NullPointerException is thrown when log level is DEBUG
and JNDI underlying implementation of JMS provider does not comply with
Context.getEnvironment contract
Bugzilla Id: 56198

Modified:
   
jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/JMSSampler.java
    jmeter/trunk/xdocs/changes.xml

Date: Fri Feb 28 23:06:52 2014
New Revision: 1573108

URL: http://svn.apache.org/r1573108
Log:
Bug 56198 - JMSSampler : NullPointerException is thrown when JNDI underlying
implementation of JMS provider does not comply with Context.getEnvironment
contract
Apply check on every call of Context.getEnvironment
Bugzilla Id: 56198

Modified:
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/Utils.java
   
jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/JMSSampler.java
    jmeter/trunk/xdocs/changes.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56198] JMSSampler : NullPointerException is thrown when JNDI underlying implementation of JMS provider does not comply with Context.getEnvironment contract

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56198

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|JMSSampler :                |JMSSampler :
                   |NullPointerException is     |NullPointerException is
                   |thrown when log level is    |thrown when JNDI underlying
                   |DEBUG and JNDI underlying   |implementation of JMS
                   |implementation of JMS       |provider does not comply
                   |provider does not comply    |with Context.getEnvironment
                   |with Context.getEnvironment |contract
                   |contract                    |

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56198] JMSSampler : NullPointerException is thrown when JNDI underlying implementation of JMS provider does not comply with Context.getEnvironment contract

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56198

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
See this also:
http://stackoverflow.com/questions/20924428/why-initialcontext-throws-out-naming-exception-when-call-getenvironment

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56198] JMSSampler : NullPointerException is thrown when log level is DEBUG and JNDI underlying implementation of JMS provider does not comply with Context.getEnvironment contract

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56198

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
           Hardware|PC                          |All
            Version|2.11                        |2.6
            Summary|Getting NPE for JMS Point   |JMSSampler :
                   |to Point                    |NullPointerException is
                   |                            |thrown when log level is
                   |                            |DEBUG and JNDI underlying
                   |                            |implementation of JMS
                   |                            |provider does not comply
                   |                            |with Context.getEnvironment
                   |                            |contract
           Severity|normal                      |minor

-- 
You are receiving this mail because:
You are the assignee for the bug.