Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
`Axis version 1.4.1 was specifically provided for the issue of ConcurrentModificationException when Java 1.8 is used. The commit link for fixing that issue:
https://github.com/apache/axis-axis1-java/commit/d75ee4619c042ded4d3ee1f7b08e379f83572575
In our product, we were using axis 1.4 jar with Java 1.6, there was no issue. But when we upgraded Java to 1.8, we were getting this Exception so we upgraded the axis jar to 1.4.1 to resolve this issue.
After we upgraded this axis jar to 1.4.1, frequency of getting this error of ConcurrentModificationException is reduced a lot but still we are getting some times.
Is there anyone who is facing this issue? It will be helpful if someone provide some insight on this.
Exception stacktrace:
java.util.ConcurrentModificationException
java.util.ArrayList.sort(ArrayList.java:1464)
java.util.Collections.sort(Collections.java:175)
org.apache.axis.description.JavaServiceDesc.getOperationsByQName(JavaServiceDesc.java:527)
org.apache.axis.MessageContext.getPossibleOperationsByQName(MessageContext.java:243)
org.apache.axis.message.BodyBuilder.onStartChild(BodyBuilder.java:132)
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
org.apache.axis.server.AxisServer.initSOAPConstants(AxisServer.java:345)
org.apache.axis.server.AxisServer.invoke(AxisServer.java:279)
This error is coming from within the Axis API and they are moved to Axis2 and have stopped support for Axis old API. We have logged a ticket to Axis team for this issue.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.