You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Yves Langisch (JIRA)" <ji...@apache.org> on 2005/09/30 19:24:47 UTC

[jira] Created: (AXIS2-251) XML comments in transmitted documents cause ClassCastExceptions

XML comments in transmitted documents cause ClassCastExceptions
---------------------------------------------------------------

         Key: AXIS2-251
         URL: http://issues.apache.org/jira/browse/AXIS2-251
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
  Components: databinding  
    Versions: 0.92    
    Reporter: Yves Langisch


I have a client that sends a document to my Axis2 web service (doc/lit). In the document I have XML comments which I can see on the wire. With these comments I get a ClassCastException during the deserialization process. Without comments things work fine.

I tracked down the problem a little bit and found the issue in the class org.apache.axis2.om.impl.llom.OMStaxWrapper in the method getText (line 372) where lastNode, which is actually from type OMComment, is casted to OMText. This causes the ClassCastException.

Sorry, can't provide any test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS2-251) XML comments in transmitted documents cause ClassCastExceptions

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-251?page=all ]
     
Eran Chinthaka resolved AXIS2-251:
----------------------------------

    Fix Version: 0.93
     Resolution: Fixed

Thanks Yves for pointing out the bug. Fixed it.

> XML comments in transmitted documents cause ClassCastExceptions
> ---------------------------------------------------------------
>
>          Key: AXIS2-251
>          URL: http://issues.apache.org/jira/browse/AXIS2-251
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Versions: 0.92
>     Reporter: Yves Langisch
>      Fix For: 0.93

>
> I have a client that sends a document to my Axis2 web service (doc/lit). In the document I have XML comments which I can see on the wire. With these comments I get a ClassCastException during the deserialization process. Without comments things work fine.
> I tracked down the problem a little bit and found the issue in the class org.apache.axis2.om.impl.llom.OMStaxWrapper in the method getText (line 372) where lastNode, which is actually from type OMComment, is casted to OMText. This causes the ClassCastException.
> Sorry, can't provide any test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira