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 2012/02/28 17:43:50 UTC

DO NOT REPLY [Bug 52789] New: Proxy with Regexp Matching can fail with NullPointerException in Value Replacement if value is null

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

             Bug #: 52789
           Summary: Proxy with Regexp Matching can fail with
                    NullPointerException in Value Replacement if value is
                    null
           Product: JMeter
           Version: 2.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: issues@jmeter.apache.org
        ReportedBy: p.mouawad@ubik-ingenierie.com
    Classification: Unclassified


I have a case where Argument.metadata is null during recording, so I get this
error because ReplaceFunctionsWithStrings does not check if value of Property
is null before replacing.



2012/02/28 17:27:46 ERROR - jmeter.JMeter: Uncaught exception: 
java.lang.NullPointerException
    at org.apache.oro.text.regex.Util.substitute(Unknown Source)
    at
org.apache.jmeter.engine.util.ReplaceFunctionsWithStrings.transformValue(ReplaceFunctionsWithStrings.java:79)
    at
org.apache.jmeter.engine.util.ValueReplacer.replaceValues(ValueReplacer.java:118)
    at
org.apache.jmeter.engine.util.ValueReplacer.replaceValues(ValueReplacer.java:125)
    at
org.apache.jmeter.engine.util.ValueReplacer.replaceValues(ValueReplacer.java:125)
    at
org.apache.jmeter.engine.util.ValueReplacer.replaceValues(ValueReplacer.java:125)
    at
org.apache.jmeter.engine.util.ValueReplacer.reverseReplace(ValueReplacer.java:82)
    at
org.apache.jmeter.protocol.http.proxy.ProxyControl.replaceValues(ProxyControl.java:972)
    at
org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:405)
    at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:299)

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

DO NOT REPLY [Bug 52789] Proxy with Regexp Matching can fail with NullPointerException in Value Replacement if value is null

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

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

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

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> 2012-02-28 16:53:51 UTC ---
Date: Tue Feb 28 16:45:58 2012
New Revision: 1294726

URL: http://svn.apache.org/viewvc?rev=1294726&view=rev
Log:
Bug 52789 - Proxy with Regexp Matching can fail with NullPointerException in
Value Replacement if value is null

Modified:
  
jmeter/trunk/src/core/org/apache/jmeter/engine/util/ReplaceFunctionsWithStrings.java
   jmeter/trunk/xdocs/changes.xml

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