Hi All,
We are trying to invoke EJB methods on simple stateless session beans
from an Applet running remotely. One of our methods needs to return
an ArrayList of Serializable objects.
We have encoutered the following error: (please see end of post for
stack trace).
Some research has yielded the fact that even though the ArrayList
class in Java implements serializable, the Object[] member is not
serializable, even though the objects that we are putting into the
array are serializable.
Because our applet is REMOTE, we are using RMI-IIOP to access our
Beans which are on iPlanet 6.5.
The beans function properly for all base types and for simple
serilizable objects, but sadly, an ArrayList isn't one of them.
Has anyone else encountered this problem? Suggestions or alternatives
to using the ArrayList class would be appreciated as well.
Thanks in advance...
Omer/John.
--StackTrace--
java.io.IOExcep tion: Can't skip sender's custom marshaled class:
RMI:java.util.A rrayList:F65515 4F32815380:7881 D21D99C7619D
at com.sun.corba.s e.internal.io.I IOPInputStream. throwExceptionT ype(Native
Method)
at com.sun.corba.s e.internal.io.I IOPInputStream. simpleSkipObjec t(IIOPInputStre am.java:330)
at com.sun.corba.s e.internal.io.V alueHandlerImpl .readValueInter nal(ValueHandle rImpl.java:235)
at com.sun.corba.s e.internal.io.V alueHandlerImpl .readValue(Valu eHandlerImpl.ja va:207)
at com.sun.corba.s e.internal.iiop .CDRInputStream .read_value(CDR InputStream.jav a:1059)
at j2eeguide.conve rter._Converter _Stub.trouble(_ Converter_Stub. java:383)
at j2eeguide.conve rter.ConverterC lient.main(Unkn own Source)
Caught an unexpected exception!
java.rmi.Marsha lException: CORBA MARSHAL 0 No; nested exception is:
org.omg.CORBA.M ARSHAL: Unable to read value from underlying
bridge : Can
't skip sender's custom marshaled class:
RMI:java.util.A rrayList:F65515 4F3281538
0:7881D21D99C76 19D minor code: 0 completed: No
org.omg.CORBA.M ARSHAL: Unable to read value from underlying bridge :
Can't skip
sender's custom marshaled class:
RMI:java.util.A rrayList:F65515 4F32815380:7881 D2
1D99C7619D minor code: 0 completed: No
at com.sun.corba.s e.internal.iiop .CDRInputStream .read_value(CDR InputStre
am.java:1065)
at j2eeguide.conve rter._Converter _Stub.trouble(_ Converter_Stub. java:383)
at j2eeguide.conve rter.ConverterC lient.main(Unkn own Source)
We are trying to invoke EJB methods on simple stateless session beans
from an Applet running remotely. One of our methods needs to return
an ArrayList of Serializable objects.
We have encoutered the following error: (please see end of post for
stack trace).
Some research has yielded the fact that even though the ArrayList
class in Java implements serializable, the Object[] member is not
serializable, even though the objects that we are putting into the
array are serializable.
Because our applet is REMOTE, we are using RMI-IIOP to access our
Beans which are on iPlanet 6.5.
The beans function properly for all base types and for simple
serilizable objects, but sadly, an ArrayList isn't one of them.
Has anyone else encountered this problem? Suggestions or alternatives
to using the ArrayList class would be appreciated as well.
Thanks in advance...
Omer/John.
--StackTrace--
java.io.IOExcep tion: Can't skip sender's custom marshaled class:
RMI:java.util.A rrayList:F65515 4F32815380:7881 D21D99C7619D
at com.sun.corba.s e.internal.io.I IOPInputStream. throwExceptionT ype(Native
Method)
at com.sun.corba.s e.internal.io.I IOPInputStream. simpleSkipObjec t(IIOPInputStre am.java:330)
at com.sun.corba.s e.internal.io.V alueHandlerImpl .readValueInter nal(ValueHandle rImpl.java:235)
at com.sun.corba.s e.internal.io.V alueHandlerImpl .readValue(Valu eHandlerImpl.ja va:207)
at com.sun.corba.s e.internal.iiop .CDRInputStream .read_value(CDR InputStream.jav a:1059)
at j2eeguide.conve rter._Converter _Stub.trouble(_ Converter_Stub. java:383)
at j2eeguide.conve rter.ConverterC lient.main(Unkn own Source)
Caught an unexpected exception!
java.rmi.Marsha lException: CORBA MARSHAL 0 No; nested exception is:
org.omg.CORBA.M ARSHAL: Unable to read value from underlying
bridge : Can
't skip sender's custom marshaled class:
RMI:java.util.A rrayList:F65515 4F3281538
0:7881D21D99C76 19D minor code: 0 completed: No
org.omg.CORBA.M ARSHAL: Unable to read value from underlying bridge :
Can't skip
sender's custom marshaled class:
RMI:java.util.A rrayList:F65515 4F32815380:7881 D2
1D99C7619D minor code: 0 completed: No
at com.sun.corba.s e.internal.iiop .CDRInputStream .read_value(CDR InputStre
am.java:1065)
at j2eeguide.conve rter._Converter _Stub.trouble(_ Converter_Stub. java:383)
at j2eeguide.conve rter.ConverterC lient.main(Unkn own Source)