[jboss-jira] [JBoss JIRA] Updated: (JBAS-5531) Transforming from SAAJ SOAPBody to StreamResult throws IndexOutOfBoundsException
Arjen Poutsma (JIRA)
jira-events at lists.jboss.org
Sun May 18 19:52:29 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5531?page=all ]
Arjen Poutsma updated JBAS-5531:
--------------------------------
Attachment: saaj-test.zip
> Transforming from SAAJ SOAPBody to StreamResult throws IndexOutOfBoundsException
> --------------------------------------------------------------------------------
>
> Key: JBAS-5531
> URL: http://jira.jboss.com/jira/browse/JBAS-5531
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web Services
> Affects Versions: JBossAS-4.2.2.GA
> Environment: OS X, JDK 1.5, JBoss AS 4.2.2
> Reporter: Arjen Poutsma
> Assigned To: Thomas Diesler
> 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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list