Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0743818F07 for ; Tue, 30 Jun 2015 06:03:05 +0000 (UTC) Received: (qmail 40578 invoked by uid 500); 30 Jun 2015 06:03:04 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 40482 invoked by uid 500); 30 Jun 2015 06:03:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 40467 invoked by uid 99); 30 Jun 2015 06:03:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2015 06:03:04 +0000 Date: Tue, 30 Jun 2015 06:03:04 +0000 (UTC) From: "Nicholas DiPiazza (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (JXPATH-152) Concurrent access on hashmap of JXPathIntrospector MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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.(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)