santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ArunaGanesan <>
Subject Infinite Loop due to inconsistent hashmap, in ApacheXMLSecurityJava XMLUtil.class
Date Tue, 12 Jan 2010 11:06:50 GMT

We are using WSS4J, AxisJ and ApacheXMLSecurityJava for contacting a
webservice using SOAP. One of our tool makes parallel SOAP requests to this
web service. This tool runs on a m/c with 32 virtual processors.

We were running into a process block a way too often.We did a jstack on the
process and the process seem to be doing this. 
at java.util.HashMap.get(

Everytime we get the same jstack when the process stops making progress.

At this point, the process stops and the CPU starts spiking.

When we looked at the XMLUtils code, we found that the class is not thread
There is a hashmap namePrefixes that is used without synchronization.  It
seems that a hashmap without synchronization can cause infinite loop

Since the hash map used in the class is a static object, we guess the hash
map is left in an inconsistent state. 

Is there any solution available so that we can get rid of this infinite
View this message in context:
Sent from the Apache XML - Security - Dev mailing list archive at

View raw message