axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Archibald Moepi" <archib...@comcorp.co.za>
Subject ArrayOfString gives a java.lang.ClassCastException
Date Thu, 25 Oct 2007 15:00:25 GMT
Hi,
 
I've got a .Net webservice and calling it using a java axis client. I've
got a method that takes an int as a parameter and returns a String array
and when I generated the classes using wsdl2java it created a class
called ArrayOfString. When I call this  method it executes fine for the
first couple of times and then it starts giving a
java.lang.ClassCastException, but when I restart Tomcat it works fine
again for the first couple of times then it starts breaking again.
What exactly is wrong?
Here is the exception:
 
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.IllegalArgumentException:
java.lang.ClassCastException@1371c0c
 faultActor: 
 faultNode: 
 faultDetail: 
 
{http://xml.apache.org/axis/}stackTrace:java.lang.IllegalArgumentExcepti
on: java.lang.ClassCastException@1371c0c
 at
org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.j
ava:142)
 at
org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl
.java:249)
 at
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.ja
va:509)
 at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1083)
 at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
171)
 at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:1140)
 at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
 at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
 at org.apache.axis.client.Call.invoke(Call.java:2402)
 at org.apache.axis.client.Call.invoke(Call.java:2301)
 at org.apache.axis.client.Call.invoke(Call.java:1758)
 at org.tempuri.ServiceSoapStub.getFields(ServiceSoapStub.java:729)
 at
za.co.test.common.service.ServiceFacade.loadFields(ServiceFacade.java:13
1)
 at za.co.test.ca.MyServlet.processRequest(MyServlet.java:47)
 at za.co.test.ca.MyServlet.doGet(MyServlet.java:109)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
4)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:163)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
8)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:700)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
4)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
 at java.lang.Thread.run(Thread.java:534)
 
 {http://xml.apache.org/axis/}hostname:localhost
 
java.lang.IllegalArgumentException: java.lang.ClassCastException@1371c0c
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
 at org.apache.axis.client.Call.invoke(Call.java:2405)
 at org.apache.axis.client.Call.invoke(Call.java:2301)
 at org.apache.axis.client.Call.invoke(Call.java:1758)
 at org.tempuri.ServiceSoapStub.getFields(ServiceSoapStub.java:729)
 at
za.co.test.common.service.ServiceFacade.loadFields(ServiceFacade.java:13
1)
 at za.co.test.ca.MyServlet.processRequest(MyServlet.java:47)
 at za.co.test.ca.MyServlet.doGet(MyServlet.java:109)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
4)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:163)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
8)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:700)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
4)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
 at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalArgumentException:
java.lang.ClassCastException@1371c0c
 at
org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.j
ava:142)
 at
org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl
.java:249)
 at
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.ja
va:509)
 at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1083)
 at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
171)
 at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:1140)
 at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
 at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
 at org.apache.axis.client.Call.invoke(Call.java:2402)
 ... 37 more
 
Regards
 
Archibald Moepi
 

Mime
View raw message