users@jax-rpc.java.net

Got "unexpected null value for literal data" exception in WSI compliant web service

From: Merten Schumann <Merten.Schumann_at_asg.com>
Date: Fri, 27 Aug 2004 11:30:58 +0200

Hello,

I've created a simple JAX-RPC web service with Sun J2EE 1.4 RI and
deployed the .war (including the JAX-RPC .jars from Sun J2EE 1.4) in
Tomcat 5.0.27. I tried to create two variants: WSI compliant and not
compliant (feature="wsi" to wscompile).

There's a method
   String execute(String msg, String user, String password) throws
RemoteException;
in the service' interface. In a JAX-RPC client I invoke the method with
   execute("foo", null, null)
This works fine in non-WSI compliant version, but with features="wsi"
version I do get

SEVERE: unexpected null value for literal data
unexpected null value for literal data
at
<my_service>_execute_RequestStruct__WSICompliant__LiteralSerializer.doDe
serialize(
 
<my_service>_execute_RequestStruct__WSICompliant__LiteralSerializer.java
:70)
at
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDes
erialize(LiteralObjectSerializerBase.java:183)
at
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize
(LiteralObjectSerializerBase.java:95)
at
de.rochade.srap.ws.RoSrapScriptExecService_Tie.deserialize_execute(<my_s
ervice>_Tie.java:224)
at
de.rochade.srap.ws.RoSrapScriptExecService_Tie.readFirstBodyElement(<my_
service>_Tie.java:185)
at
com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:158
)
at
com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDe
legate.java:316)

The method works if I call execute("foo", "", "").

I do not use method overloading in the service interface, there's not
another execute method.

My question is, in WSI compliant way, is it not possible to hand over
null values to web service methods???

Thanx a lot!
   Merten

---------------------------------------------------------------------
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