axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luismi (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1507) ClassCastException in SOAPBody outputImpl() and getFirstBody() methods
Date Thu, 11 Nov 2004 12:53:24 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1507?page=comments#action_55348 ]
     
Luismi commented on AXIS-1507:
------------------------------

I've found the same exception when I add an org.w3c.dom.Element as a body child and I try
to log the message.

More or less, this way:

MessageFactory mf = MessageFactory.newInstance();
message = (Message)mf.createMessage();

SOAPBody soapBody = (SOAPBody)message.getSOAPPart().getEnvelope().getBody();
soapBody.addChild(new MessageElement(getElement()));

ByteArrayOutputStream baos = new ByteArrayOutputStream();
message.writeTo(baos);
baos.close();
			
System.out.println(baos.toString());


> ClassCastException in SOAPBody outputImpl() and getFirstBody() methods
> ----------------------------------------------------------------------
>
>          Key: AXIS-1507
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1507
>      Project: Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: current (nightly)
>  Environment: Windows XP, JDK 1.4.2_04, Axis nightly build (20040812..)
>     Reporter: Yoon Kyung Koo

>
> ClassCastException occurs in org.apache.axis.message.SOAPBody.outputImpl(SerializationContext)
method (138th line)
> The result List object of getChildren() method call can contain org.apache.axis.message.Text
objects which are not a SOAPBodyElement.
> Due to the same reason, the ClassCastException happens in getFirstBody() methods.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message