https://bz.apache.org/bugzilla/show_bug.cgi?id=62281

            Bug ID: 62281
           Summary: Cannot Load MapProperty -
                    java.lang.NullPointerException
           Product: JMeter
           Version: 4.0
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: dam6...@gmail.com
  Target Milestone: ---

I'm guessing it's because the default constructor for MapProperty does not
instantiate an internal map and therefore, when the serializer creates an
instance of MapProperty and tries to add a property, it fails.

The CollectionProperty class creates an internal ArrayList when the default
constructor is called, for example.


Caused by: java.lang.NullPointerException
        at
org.apache.jmeter.testelement.property.MapProperty.addProperty(MapProperty.java:137)
~[ApacheJMeter_core.jar:4.0 r1823414]
        at
org.apache.jmeter.testelement.property.MapProperty.addProperty(MapProperty.java:75)
~[ApacheJMeter_core.jar:4.0 r1823414]
        at
org.apache.jmeter.save.converters.MultiPropertyConverter.unmarshal(MultiPropertyConverter.java:71)
~[ApacheJMeter_core.jar:4.0 r1823414]
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
~[xstream-1.4.10.jar:1.4.10]
        at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
~[xstream-1.4.10.jar:1.4.10]
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
~[xstream-1.4.10.jar:1.4.10]
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
~[xstream-1.4.10.jar:1.4.10]
        at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:73)
~[xstream-1.4.10.jar:1.4.10]
        at
org.apache.jmeter.save.converters.MultiPropertyConverter.unmarshal(MultiPropertyConverter.java:69)
~[ApacheJMeter_core.jar:4.0 r1823414]
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
~[xstream-1.4.10.jar:1.4.10]
        at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
~[xstream-1.4.10.jar:1.4.10]
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
~[xstream-1.4.10.jar:1.4.10]
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
~[xstream-1.4.10.jar:1.4.10]

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

Reply via email to