David Winslow created JBWS-3470:
-----------------------------------
Summary: Infinite loop in org.jboss.ws.core.soap.NodeImpl
Key: JBWS-3470
URL:
https://issues.jboss.org/browse/JBWS-3470
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.4.0
Environment: JBoss AS 5.1.0GA
Reporter: David Winslow
When there is an issue with the DOM document uncovered in assertParent(), the construction
of the exception calls DOMWriter.printNode(). This method ends up recursively calling
back to the NodeImpl.getParent() which calls NodeImpl.assertParent(), which fails and
starts the whole cycle over again until the thread blows up with a stack overflow. Sample
stack trace of the infinite recursion:
at org.jboss.ws.core.soap.NodeImpl.getParentNode(NodeImpl.java:276)
at org.jboss.wsf.common.DOMWriter.getNamespaceURI(DOMWriter.java:518)
at org.jboss.wsf.common.DOMWriter.printInternal(DOMWriter.java:299)
at org.jboss.wsf.common.DOMWriter.print(DOMWriter.java:233)
at org.jboss.wsf.common.DOMWriter.printNode(DOMWriter.java:152)
at org.jboss.ws.core.soap.NodeImpl.assertSOAPParent(NodeImpl.java:588)
at org.jboss.ws.core.soap.NodeImpl.getParentNode(NodeImpl.java:276)
at org.jboss.wsf.common.DOMWriter.getNamespaceURI(DOMWriter.java:518)
at org.jboss.wsf.common.DOMWriter.printInternal(DOMWriter.java:299)
at org.jboss.wsf.common.DOMWriter.print(DOMWriter.java:233)
at org.jboss.wsf.common.DOMWriter.printNode(DOMWriter.java:152)
at org.jboss.ws.core.soap.NodeImpl.assertSOAPParent(NodeImpl.java:588)
at org.jboss.ws.core.soap.NodeImpl.getParentNode(NodeImpl.java:276)
at org.jboss.wsf.common.DOMWriter.getNamespaceURI(DOMWriter.java:518)
at org.jboss.wsf.common.DOMWriter.printInternal(DOMWriter.java:299)
at org.jboss.wsf.common.DOMWriter.print(DOMWriter.java:233)
at org.jboss.wsf.common.DOMWriter.printNode(DOMWriter.java:152)
at org.jboss.ws.core.soap.NodeImpl.assertSOAPParent(NodeImpl.java:588)
at org.jboss.ws.core.soap.NodeImpl.getParentNode(NodeImpl.java:276)
at org.jboss.wsf.common.DOMWriter.getNamespaceURI(DOMWriter.java:518)
at org.jboss.wsf.common.DOMWriter.printInternal(DOMWriter.java:299)
at org.jboss.wsf.common.DOMWriter.print(DOMWriter.java:233)
at org.jboss.wsf.common.DOMWriter.printNode(DOMWriter.java:152)
at org.jboss.ws.core.soap.NodeImpl.assertSOAPParent(NodeImpl.java:588)
This may affect other versions as well but was uncovered using 3.4.0.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira