axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Afkham Azeez (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3694) ClassCastException while invoking ServiceClient
Date Thu, 06 Jan 2011 08:45:45 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Afkham Azeez resolved AXIS2-3694.
---------------------------------

    Resolution: Not A Problem

This is because WebSphere also uses Axis2. There are articles on how to configure WebSphere
to avoid this.

> ClassCastException while invoking ServiceClient
> -----------------------------------------------
>
>                 Key: AXIS2-3694
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3694
>             Project: Axis2
>          Issue Type: Bug
>          Components: client-api
>         Environment: Rational Application Developer 7.5 (beta) with IBM Websphere 6.1
on Windows 
>            Reporter: Pattabiraman Meenakshisundaram
>            Priority: Minor
>
> I am not sure whether it is a bug or problem with my code/environment. Here is my  original
posting in the Nabble - http://www.nabble.com/ServiceClient-and-ClassCastException-tt16418344.html#a16442092
> I am new to Axis/Axis2 and based on the documents I created a SoapClient to consume service
from external site using Axis2 API . 
> I tried creating anonymous ServiceClient as well as using the WSDL. I am getting classcastexception
on both occassions.
> The line that gives error:
> 		ServiceClient sender = new ServiceClient(null,new URL(WSDL_URL),new QName("MYSERVICE"),"MYOPERATION");
	
> Exception Stacktrace:
> Caused by: java.lang.ClassCastException:
>  org.apache.axiom.om.impl.llom.OMTextImpl incompatible with
>  org.apache.axiom.om.impl.OMNodeEx
>  at
>  org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(StAXOMBuilder.java:275)
>  at
>  org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:163)
>  at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:318)
>  .........
>  at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:139)
>  at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:228)
>  ... 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message