File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes CXF webservice ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "CXF webservice ClassCastException" Watch "CXF webservice ClassCastException" New topic
Author

CXF webservice ClassCastException

Raghu Nandakumar
Greenhorn

Joined: Mar 25, 2011
Posts: 1
Hi guys,
Has anyone of you stumbled upon this issue with a CXF webservice? I am attempting to test my webservice deployed on a Weblogic 10.3 server. The service does appear to be up and the wsdl is accessible via the url. But, when I attempt to access it using a test client class, I keep getting this error... Any help would be greatly appreciated!!

Thanks,
Raghu

Mar 25, 2011 2:54:10 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
INFO: No cxf.xml configuration file detected, relying on defaults.
Mar 25, 2011 2:54:13 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://webservice.abc.com/}RestrictAccount from class com.abc.webservice.RestrictAccountService
WSDL_FILE_URL: null
ENDPOINT_ADDRESS: http://localhost:7002/abcSvc-web/services/RestrictAccountService
******************* RESTRICT - Invoking Service *************
Mar 25, 2011 2:54:16 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:566)
at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
at $Proxy55.restrictAccount(Unknown Source)
at com.abc.webservice.TestWSClient.main(TestWSClient.java:114)
javax.xml.ws.soap.SOAPFaultException: java.lang.String cannot be cast to java.lang.Boolean
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141)
at $Proxy55.restrictAccount(Unknown Source)
at com.abc.webservice.TestWSClient.main(TestWSClient.java:114)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:566)
at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
... 2 more


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CXF webservice ClassCastException