I am using the new Jonas 2.0 with Jeremie. I have an EJB bean with a method
that returns an array of EJB bean references (derived from EJBObject).
Whenever I call this method, my client application throws the following
exception:
---------------------------------
Exception: java.rmi.MarshalException: error during marshalling/unmarshalling
by stub; nested exception is:
java.lang.ArrayStoreException: error during
marshalling/unmarshalling by stub; nested exception is:
java.lang.ArrayStoreException:
java.rmi.MarshalException: error during marshalling/unmarshalling by stub;
nested exception is:
java.lang.ArrayStoreException:
java.lang.ArrayStoreException:
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:953)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java,
Compiled Code)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java,
Compiled Code)
at
org.objectweb.jeremie.libs.presentation.std.StdMarshallerFactory$StdUnMarsha
ller.readReference(StdMarshallerFactory.java, Compiled Code)
at
testsrv.data.JOnASBusinessBeanBusiness_Stub.getLocations(JOnASBusinessBeanBu
siness_Stub.java:294)
at test.main(test.java, Compiled Code)
---------------------------------
I should also point out that my code works fine when using RMI. It's just
when using Jeremie that I have this problem. Any help would be appreciated!
Bryan