[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2186) Transforming from SAAJ SOAPBody to StreamResult throws IndexOutOfBoundsException

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Mon May 19 03:29:22 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBWS-2186?page=comments#action_12413156 ] 
            
Thomas Diesler commented on JBWS-2186:
--------------------------------------

 	 JBossAS-4.2.2.GA 

> Transforming from SAAJ SOAPBody to StreamResult throws IndexOutOfBoundsException
> --------------------------------------------------------------------------------
>
>                 Key: JBWS-2186
>                 URL: http://jira.jboss.com/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
>         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 jbossws-issues mailing list