axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luismi (JIRA)" <>
Subject [jira] Commented: (AXIS-1507) ClassCastException in SOAPBody outputImpl() and getFirstBody() methods
Date Thu, 11 Nov 2004 12:53:24 GMT
     [ ]
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();

> ClassCastException in SOAPBody outputImpl() and getFirstBody() methods
> ----------------------------------------------------------------------
>          Key: AXIS-1507
>          URL:
>      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:
If you want more information on JIRA, or have a bug to report see:

View raw message