You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Ulhas Bhole (JIRA)" <ji...@apache.org> on 2009/08/19 19:32:35 UTC

[jira] Commented: (SMXCOMP-617) CXF-BCProvider and JbiOutWsdl1Interceptor generate classcast exception in case where JBI messageExchange have newline characters in xml (formatted xml).

    [ https://issues.apache.org/activemq/browse/SMXCOMP-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53680#action_53680 ] 

Ulhas Bhole commented on SMXCOMP-617:
-------------------------------------

[Fix on 3.2 branch|http://svn.apache.org/viewvc?rev=805896&view=rev]
[Fix in components trunk| http://svn.apache.org/viewvc?rev=805898&view=rev]

Regards,

Ulhas Bhole

>  CXF-BCProvider and JbiOutWsdl1Interceptor generate classcast exception in case where JBI messageExchange have newline characters in xml (formatted xml).
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-617
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-617
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.2.3, servicemix-cxf-bc-2008.01, servicemix-cxf-bc-2009.01
>         Environment: Any Servicemix getting JBI Exchange from outside component like Camel which adds a formatted SOAP XML message (with newline "\n" characters).
>            Reporter: Ulhas Bhole
>            Assignee: Ulhas Bhole
>             Fix For: 3.2.4, servicemix-cxf-bc-2009.02
>
>
> CxfBcProvider and JbiOutWsdl1Interceptor when parsing JBI message assume that the next element in the DOM tree would be of type Element when parsing JBI MessageExchange for operationName.
> In some cases (like JBI MessageExchange being populated by servicemix-camel component ) the JBI Message body may contain formatted XML with newline character in which case the both of them fails with java ClassCastException because the firstChild() from the SoapEnv node is TextImpl (represnting "\n") which should be skipped.
> Fix involves changing blind casting to Element type to using DOMUtils from SOAP shared library which makes sure that it would return first Child Element of type Element. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.