axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Gordon <st...@student.usyd.edu.au>
Subject Re: Bad Param exception when passing Array/List objects
Date Wed, 08 Oct 2003 11:32:08 GMT
my suggestion:

turn on DEBUG level logging (see developer's guide)
the debug logs are very useful in nailing down these kind of errors

stephen

Naveen Shankar wrote:

> I see a lot of related questions but no answers. Is this a known bug or 
> are we doing something wrong.
> This is the stack trace I am getting on invocation of a WSDL operation 
> which returns back an array of a complex object. However it works just 
> fine when I pass just the object instead of an array. Any help would be 
> greatly appreciated
>  
>  
>  
> </soapenv:Envelope>ERROR [main] (Call.java:2274) - Exception:
> org.xml.sax.SAXException: Bad types (class [Ljava.lang.Object; -> class 
> sony.vm.
> Content)
>         at 
> org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:311)
>         at 
> org.apache.axis.encoding.DeserializationContextImpl.startElement(Dese
> rializationContextImpl.java:963)
>         at 
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
> va:198)
>         at 
> org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
> t.java:722)
>         at 
> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
>         at org.apache.axis.client.Call.invoke(Call.java:2272)
>         at org.apache.axis.client.Call.invoke(Call.java:2171)
>         at org.apache.axis.client.Call.invoke(Call.java:1691)
>         at test.client.TestClient.getVMAxis(TestClient.java:112)
>         at test.client.TestClient.main(TestClient.java:155)
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXException: Bad types (class 
> [Ljava.lang.Object; -&g
> t; class sony.vm.Content)
>  faultActor:
>  faultNode:
>  faultDetail:
>         {http://xml.apache.org/axis/}stackTrace: 
> org.xml.sax.SAXException: Bad t
> ypes (class [Ljava.lang.Object; -&gt; class sony.vm.Content)
>         at 
> org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:311)
>         at 
> org.apache.axis.encoding.DeserializationContextImpl.startElement(Dese
> rializationContextImpl.java:963)
>         at 
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
> va:198)
>         at 
> org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
> t.java:722)
>         at 
> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
>         at org.apache.axis.client.Call.invoke(Call.java:2272)
>         at org.apache.axis.client.Call.invoke(Call.java:2171)
>         at org.apache.axis.client.Call.invoke(Call.java:1691)
>         at test.client.TestClient.getVMAxis(TestClient.java:112)
>         at test.client.TestClient.main(TestClient.java:155)
>  
> 
> org.xml.sax.SAXException: Bad types (class [Ljava.lang.Object; -> class 
> sony.vm.
> Content)
>         at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
>         at org.apache.axis.client.Call.invoke(Call.java:2275)
>         at org.apache.axis.client.Call.invoke(Call.java:2171)
>         at org.apache.axis.client.Call.invoke(Call.java:1691)
>         at test.client.TestClient.getVMAxis(TestClient.java:112)
>         at test.client.TestClient.main(TestClient.java:155)
> Caused by: org.xml.sax.SAXException: Bad types (class 
> [Ljava.lang.Object; -> cla
> ss sony.vm.Content)
>         at 
> org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:311)
>         at 
> org.apache.axis.encoding.DeserializationContextImpl.startElement(Dese
> rializationContextImpl.java:963)
>         at 
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
> va:198)
>         at 
> org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
> t.java:722)
>         at 
> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
>         at org.apache.axis.client.Call.invoke(Call.java:2272)
>         ... 4 more
> testClient error: org.xml.sax.SAXException: Bad types (class 
> [Ljava.lang.Object;
>  -> class sony.vm.Content)



Mime
View raw message