1 Reply Latest reply on May 27, 2005 3:27 PM by Dan Smith

    Arrays of complex types

    Dan Smith Newbie

      I have an RPC Literal service on JBoss 4.0.2 with two methods, one takes an array of complex types as a parameter, the other returns a similar array of complex types.

      Based on the Wiki, I have wrapped these arrays in an object so now one method takes an object parameter, the other returns an object.

      I can call the method that returns the object (containing the complex type array) and all is good.

      However, if I try to call the method that takes the parameter I get the following error:

      java.rmi.RemoteException: Runtime exception; nested exception is:
       unexpected null value for literal data
       at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318)
       at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300)

      At first I did not use a ws4ee-deployment.xml file, but when I got this error I gave it a try, at which point I can no longer deploy my service because it complains that it cannot find the axis packages (for BeanSerializer etc.).

      Is the ws4ee-deployment file really required or am I missing something else? If it is required, why do I get an error about the axis package?