Serialization problems on RMI invocation from Oracle Application Server
Hello,
I have a web application running on Oracle 9i AS. This application communicates with a process in a different machine using RMI. I have several methods on the RMI object that return information about the process' status so I invoke these methods to publish such information through my web application.
All these methods return primitive values. Now I've added a new method that returns an Array of Hashtables. Each Hashtable in the array contains, as key elements, Bean Objects which only have primitive atributes and accessor methods. The values of the Hashtables, associated to the Bean key elements, are Strings containing text.
When I do RMI on this new method on my web app I get this error:
"error unmarshalling return; nested exception is: java.io.InvalidClassException: <qualified name of the bean class>; is not Serializable".
It says my Bean class is not serializable, although it only contains primitive values.
I have done some testing in standalone code on my workstation and serialization to file works fine on both the bean itself and the whole Hashtable array as well, so I really can't see where the problem is.
Any help/clues whould be greatly appreciated,
Thanks!
JP.

