users@jax-rpc.java.net

Re: unexpected null in DetailFragmentDeserializer.deserializeElement()

From: kathy walsh <Kathleen.Walsh_at_Sun.COM>
Date: Fri, 26 Mar 2004 07:26:06 -0500

ramesh-
Can you put a bug into bugtraq-
with your client code and the stacktrace?
I will take a look-
Kathy

Ramesh Gupta wrote:

> I am using JWSDP 1.3 to access a public web service through a simple
> dynamic proxy client shown below (everything is hard-coded for
> simplicity). I used wscompile with -import to generate the service
> interface files. However, when I invoke an operation on the service, I
> get an "unexpected null" deep in the bowels of rpc deserializing code,
> with no explanation whatsoever. Please help!
> Thanks,
> Ramesh
>
>
> public class Client {
> public static void main(String[] args) {
> try {
> URL wsdlURL = new
> URL("http://live.capescience.com/wsdl/GlobalWeather.wsdl");
> String namespace =
> "http://www.capeclear.com/GlobalWeather.wsdl";
> QName serviceQName = new QName(namespace, "GlobalWeather");
> QName portQName = new QName(namespace, "StationInfo");
>
> ServiceFactory serviceFactory = ServiceFactory.newInstance();
> Service service =
> serviceFactory.createService(wsdlURL, serviceQName);
>
> StationInfo stationInfo = (StationInfo)
> service.getPort(portQName, StationInfo.class);
> boolean valid = stationInfo.isValidCode("KRME");
> }
> catch (Exception ex) {
> ex.printStackTrace();
> }
> }
> }
>
> unexpected null
> at
> com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer.deserializeElement(DetailFragmentDeserializer.java:144)
>
> at
> com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer.doDeserializeElement(DetailFragmentDeserializer.java:226)
>
> at
> com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer.doDeserializeElement(DetailFragmentDeserializer.java:186)
>
> at
> com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer.deserializeElement(DetailFragmentDeserializer.java:149)
>
> at
> com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer.doDeserializeElement(DetailFragmentDeserializer.java:226)
>
> at
> com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer.doDeserialize(DetailFragmentDeserializer.java:173)
>
> at
> com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer.internalDeserialize(DetailFragmentDeserializer.java:92)
>
> at
> com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:95)
>
> at
> com.sun.xml.rpc.encoding.SOAPFaultInfoSerializer.deserializeDetail(SOAPFaultInfoSerializer.java:160)
>
> at
> com.sun.xml.rpc.encoding.SOAPFaultInfoSerializer.deserializeDetail(SOAPFaultInfoSerializer.java:125)
>
> at
> com.sun.xml.rpc.encoding.SOAPFaultInfoSerializer.doDeserialize(SOAPFaultInfoSerializer.java:88)
>
> at
> com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:167)
>
> at
> com.sun.xml.rpc.client.StreamingSender._readBodyFaultElement(StreamingSender.java:341)
>
> at
> com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:155)
> at
> com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:61)
>
> at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:353)
> at
> com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:99)
>
> at
> com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:71)
>
> at $Proxy0.isValidCode(Unknown Source)
> at com.sun.jdnc.example.weatherservice.Client.main(Client.java:25)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net