Unable to pass array or User defined objects
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sankar_Subramanian
Posted On:   Thursday, August 22, 2002 12:46 AM

Using dynamic invocation interface, Iam able to pass primitive data type but not arrays or User defined objects.If i pass user defined object,no serialiser registered error occurs.Can anyone help in me writing the client code to pass array or userdefined object.

Re: Unable to pass array or User defined objects

Posted By:   neal_ravindran  
Posted On:   Thursday, September 12, 2002 07:41 PM

You did not say what you were using...I presume JWSDP.

I know that with JAX-RPC, the array element type should be one of the primitives or primitive wrappers(like Boolean,Long et al).

As for objects you should have a public no-args constructor,public fields should be of one of the JAX-RPC types(see documentation). Also the object class should not extend java.rmi.Remote.


I believe your problem for object passing could lie in the class's fields(may not be supported Java types).

About | Sitemap | Contact