You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/05/11 14:15:04 UTC

DO NOT REPLY [Bug 42396] New: - NPE in JMeterThread.java:254

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42396>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42396

           Summary: NPE in JMeterThread.java:254
           Product: JMeter
           Version: 2.2
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: irancati@sharpmind.de


I found this while investigating a problem with a service I am testing.
Unfortunately, the problem only shows when the service (which is not available
on the Internet) fails, so I understand my reprocase is a little weak.
But perhaps you can put some more diagnostics around the NPE line(s) to improve
the diagnostics.

Jmeter 2.2 with java 1.5.0_10 on Linux (Kubuntu)


this is what I see in the log (I will attach the full log as well as the .jmx)

2007/05/11 13:18:05 ERROR - jmeter.threads.JMeterThread: 
java.lang.NullPointerException
        at java.lang.String.<init>(String.java:433)
        at
org.apache.jmeter.samplers.SampleResult.getResponseDataAsString(SampleResult.java:463)
        at
org.apache.jmeter.assertions.ResponseAssertion.evaluateResponse(ResponseAssertion.java:277)
        at
org.apache.jmeter.assertions.ResponseAssertion.getResult(ResponseAssertion.java:185)
        at
org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThread.java:416)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254)
        at java.lang.Thread.run(Thread.java:595)

The effect on running the test is that one of the 2 BeanShell samplers is not
executed

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 42396] - NPE in JMeterThread.java:254

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42396>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42396


sebb@apache.org changed:

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




------- Additional Comments From sebb@apache.org  2007-05-11 10:43 -------
As far as I can tell, the NPE must be caused by setting the responseData to 
null in the BeanShell sampler - which could be avoided by suitable BeanShell 
code.

Rather than use a BeanShell sampler that returns null, why not use the 
BeanShell Post-Processor:

prev.setResponseData(vars.get("chromiumResultCode"));

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 42396] - NPE in JMeterThread.java:254

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42396>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42396





------- Additional Comments From irancati@sharpmind.de  2007-05-11 05:15 -------
Created an attachment (id=20175)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20175&action=view)
log with debug settings


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 42396] - NPE in JMeterThread.java:254

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42396>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42396





------- Additional Comments From irancati@sharpmind.de  2007-05-11 05:16 -------
Created an attachment (id=20176)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20176&action=view)
test plan that causes the NPE


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org