commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas DiPiazza (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JXPATH-152) Concurrent access on hashmap of JXPathIntrospector
Date Tue, 30 Jun 2015 06:03:04 GMT

    [ https://issues.apache.org/jira/browse/JXPATH-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14607553#comment-14607553
] 

Nicholas DiPiazza commented on JXPATH-152:
------------------------------------------

Does this issue affect 1.2 release of commons-jxpath library as well? 

I am calling org.apache.commons.jxpath.CompiledExpression.getValue(JXPathContext) and I too
am seeing hundreds of threads stuck trying to get JXPathIntrospector.getBeanInfo.

I notice only 1.3 is available from the website. When is 1.4 available to the public? 

293 threads with trace:Rate
States: {RUNNABLE=293}
Stack:
 - java.util.HashMap.getEntry(HashMap.java:465)
 - java.util.HashMap.get(HashMap.java:417)
 - org.apache.commons.jxpath.JXPathIntrospector.getBeanInfo(JXPathIntrospector.java:101)
 - org.apache.commons.jxpath.ri.model.dynamic.DynamicPointerFactory.createNodePointer(DynamicPointerFactory.java:67)
 - org.apache.commons.jxpath.ri.model.NodePointer.newChildNodePointer(NodePointer.java:90)
 - org.apache.commons.jxpath.ri.model.beans.PropertyPointer.getImmediateValuePointer(PropertyPointer.java:127)
 - org.apache.commons.jxpath.ri.model.NodePointer.getValuePointer(NodePointer.java:238)
 - org.apache.commons.jxpath.ri.model.beans.PropertyIterator.getNodePointer(PropertyIterator.java:108)
 - org.apache.commons.jxpath.ri.axes.ChildContext.getCurrentNodePointer(ChildContext.java:56)
 - org.apache.commons.jxpath.ri.axes.InitialContext.<init>(InitialContext.java:39)
 - org.apache.commons.jxpath.ri.compiler.LocationPath.compute(LocationPath.java:67)
 - org.apache.commons.jxpath.ri.compiler.CoreOperationCompare.equal(CoreOperationCompare.java:49)
 - org.apache.commons.jxpath.ri.compiler.CoreOperationEqual.computeValue(CoreOperationEqual.java:33)
 - org.apache.commons.jxpath.ri.axes.PredicateContext.nextNode(PredicateContext.java:81)
 - org.apache.commons.jxpath.ri.EvalContext.nextSet(EvalContext.java:322)
 - org.apache.commons.jxpath.ri.axes.ChildContext.getSingleNodePointer(ChildContext.java:72)
 - org.apache.commons.jxpath.ri.compiler.Path.searchForPath(Path.java:183)
 - org.apache.commons.jxpath.ri.compiler.Path.getSingleNodePointerForSteps(Path.java:159)
 - org.apache.commons.jxpath.ri.compiler.LocationPath.computeValue(LocationPath.java:82)
 - org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:314)
 - org.apache.commons.jxpath.ri.JXPathCompiledExpression.getValue(JXPathCompiledExpression.java:57)



> Concurrent access on hashmap of JXPathIntrospector
> --------------------------------------------------
>
>                 Key: JXPATH-152
>                 URL: https://issues.apache.org/jira/browse/JXPATH-152
>             Project: Commons JXPath
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Java5, Windows/AIX
>            Reporter: pleutre
>            Assignee: Matt Benson
>            Priority: Minor
>             Fix For: 1.4
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> JXPathIntrospector.registerDynamicClass method can be called in static part of classes.

> If two classes A & B try to registerDynamicClass in the same time a concurrent access
exception can append on hashmap of JXPathIntrospector.
> Replace hashmap by concurrent hashmap or synchronized access to these hashmaps.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message