Commons JXPath
  1. Commons JXPath
  2. JXPATH-79

Error when accessing JXPathContext methods in Concurrent Scenario

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.2 Final
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      I am getting following error when many parallel threads access JXPathContext methods.
      (But In case of a single thread, It works fine).

      Caused by: java.lang.NullPointerException
      at org.apache.commons.jxpath.JXPathBasicBeanInfo.getPropertyDescriptor(JXPathBasicBeanInfo.java:104)
      at org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer.getPropertyDescriptor(BeanPropertyPointer.java:267)
      at org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer.isActualProperty(BeanPropertyPointer.java:151)
      at org.apache.commons.jxpath.ri.model.beans.PropertyPointer.isActual(PropertyPointer.java:80)
      at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.doStepNoPredicatesPropertyOwner(SimplePathInterpreter.java:191)
      at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.doStep(SimplePathInterpreter.java:142)
      at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.doStepNoPredicatesPropertyOwner(SimplePathInterpreter.java:232)
      at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.doStep(SimplePathInterpreter.java:142)
      at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.doStepNoPredicatesPropertyOwner(SimplePathInterpreter.java:232)
      at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.doStep(SimplePathInterpreter.java:142)
      at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.interpretSimpleLocationPath(SimplePathInterpreter.java:77)
      at org.apache.commons.jxpath.ri.compiler.Path.getSingleNodePointerForSteps(Path.java:153)
      at org.apache.commons.jxpath.ri.compiler.LocationPath.computeValue(LocationPath.java:82)
      at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:314)
      at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:280)

        Issue Links

          Activity

          perumalraj created issue -
          Matt Benson made changes -
          Field Original Value New Value
          Link This issue duplicates JXPATH-2 [ JXPATH-2 ]
          Matt Benson made changes -
          Resolution Duplicate [ 3 ]
          Fix Version/s 1.3 [ 12312253 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          89d 14h 34m 1 Matt Benson 21/May/07 14:33

            People

            • Assignee:
              Unassigned
              Reporter:
              perumalraj
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development