[
https://jira.jboss.org/jira/browse/JBWS-2186?page=com.atlassian.jira.plug...
]
Alessio Soldano commented on JBWS-2186:
---------------------------------------
I've added your test to the native testsuite. Our implementation of Node, NodeImpl,
holds the actual w3c node along with its children and our implementation of soapChildren.
The exception you were having was due to the latter being null while it should have not.
That's happen because of the transformation you use to append your document content to
the SOAPBody.
I've put a check there to prevent throwing the exception, but I know that's not
the solution of your issue, as you don't get the soap message you would expect.
I'm writing more on the forum.
Transforming from SAAJ SOAPBody to StreamResult throws
IndexOutOfBoundsException
--------------------------------------------------------------------------------
Key: JBWS-2186
URL:
https://jira.jboss.org/jira/browse/JBWS-2186
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Environment: OS X, JDK 1.5, JBoss AS 4.2.2
Reporter: Arjen Poutsma
Assignee: Alessio Soldano
Fix For: jbossws-native-3.0.3
Attachments: saaj-test.zip
When running the following program within JBoss:
MessageFactory messageFactory = MessageFactory.newInstance();
Transformer transformer = TransformerFactory.newInstance().newTransformer();
SOAPMessage message = messageFactory.createMessage();
Document document = createDocument();
SOAPBody body = message.getSOAPBody();
transformer.transform(new DOMSource(document), new DOMResult(body));
body = message.getSOAPBody();
transformer.transform(new DOMSource(body), new StreamResult(System.out));
a IndexOutOfBoundsException is thrown on the last line. The attached zip file contains a
simple Servlet which can be used to reproduce this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira