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 2013/10/23 14:27:01 UTC

[Bug 55694] New: java.lang.NullPointerException Error while processing sampler 'Debug Sampler'

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

            Bug ID: 55694
           Summary: java.lang.NullPointerException Error while processing
                    sampler 'Debug Sampler'
           Product: JMeter
           Version: 2.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: D.Starushkin@telesens.ua

Created attachment 30957
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30957&action=edit
test plan for example

2013/10/23 15:25:13 ERROR - jmeter.threads.JMeterThread: Error while processing
sampler 'Debug Sampler' : java.lang.NullPointerException
    at org.apache.oro.text.regex.PatternMatcherInput.<init>(Unknown Source)
    at
org.apache.jmeter.extractor.RegexExtractor.matchStrings(RegexExtractor.java:210)
    at
org.apache.jmeter.extractor.RegexExtractor.processMatches(RegexExtractor.java:191)
    at
org.apache.jmeter.extractor.RegexExtractor.process(RegexExtractor.java:114)
    at
org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:742)
    at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:452)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271)
    at java.lang.Thread.run(Unknown Source)

I have this error when try to run attached test plan

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

[Bug 55694] java.lang.NullPointerException Error while processing Regular Expression Extractor

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

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|java.lang.NullPointerExcept |java.lang.NullPointerExcept
                   |ion Error while processing  |ion Error while processing
                   |sampler 'Debug Sampler'     |Regular Expression
                   |                            |Extractor
                 OS|                            |All

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

[Bug 55694] Assertions and Extractors : Avoid NullPointerException when scope is variable and variable is missing

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|java.lang.NullPointerExcept |Assertions and Extractors :
                   |ion if Apply to is set to a |Avoid NullPointerException
                   |missing JMeter variable     |when scope is variable and
                   |                            |variable is missing

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

[Bug 55694] java.lang.NullPointerException Error while processing Regular Expression Extractor

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

--- Comment #1 from Sebb <se...@apache.org> ---
The problem is in the Regex Extractor, which is not allowing for a missing
variable.

However, the test plan is wrong; the field should contain the NAME of the
variable, i.e. "string" (without quotes).

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

[Bug 55694] java.lang.NullPointerException Error while processing Regular Expression Extractor

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
         Resolution|---                         |INVALID

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Closing as it's not a bug.

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

[Bug 55694] Assertions and Extractors : Avoid NullPointerException when scope is variable and variable is missing

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

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Date: Fri Nov 15 20:52:46 2013
New Revision: 1542394

URL: http://svn.apache.org/r1542394
Log:
Bug 55694 - Assertions and Extractors : Avoid NullPointerException when scope
is variable and variable is missing
Bugzilla Id: 55694

Modified:
   
jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java
   
jmeter/trunk/src/components/org/apache/jmeter/assertions/XPathAssertion.java
    jmeter/trunk/src/components/org/apache/jmeter/extractor/HtmlExtractor.java
    jmeter/trunk/src/components/org/apache/jmeter/extractor/RegexExtractor.java
    jmeter/trunk/src/components/org/apache/jmeter/extractor/XPathExtractor.java
    jmeter/trunk/xdocs/changes.xml

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

[Bug 55694] java.lang.NullPointerException Error while processing Regular Expression Extractor

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

Dmitry <D....@telesens.ua> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #3 from Dmitry <D....@telesens.ua> ---
(In reply to Philippe Mouawad from comment #2)
> Closing as it's not a bug.

This Null Pointer looks like not handle situation correctly, so from my point
of view this is bug

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

[Bug 55694] Assertions and Extractors : Avoid NullPointerException when scope is variable and variable is missing

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christopher.roscoe@braintri
                   |                            |be.com

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
*** Bug 55773 has been marked as a duplicate of this bug. ***

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

[Bug 55694] java.lang.NullPointerException if Apply to is set to a missing JMeter variable

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|java.lang.NullPointerExcept |java.lang.NullPointerExcept
                   |ion Error while processing  |ion if Apply to is set to a
                   |Regular Expression          |missing JMeter variable
                   |Extractor                   |

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

[Bug 55694] java.lang.NullPointerException if Apply to is set to a missing JMeter variable

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
           Hardware|PC                          |All
         Resolution|---                         |FIXED

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
New behaviour warn about missing variable and Default Value is used


Date: Wed Oct 23 19:37:55 2013
New Revision: 1535130

URL: http://svn.apache.org/r1535130
Log:
Bug 55694 - java.lang.NullPointerException if Apply to is set to a missing
JMeter variable
Bugzilla Id: 55694

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/RegexExtractor.java
    jmeter/trunk/xdocs/changes.xml

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