This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes java.rmi.MarshalException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "java.rmi.MarshalException" Watch "java.rmi.MarshalException" New topic
Author

java.rmi.MarshalException

Balaji Anand
Ranch Hand

Joined: Nov 03, 2004
Posts: 146
hi,

The code i wrote

Context ic = new InitialContext();
Object o = ic.lookup("AdviceStatefulBean");
AdviceHome home = (AdviceHome)PortableRemoteObject.narrow(o,AdviceHome.class);
HomeHandle h = home.getHomeHandle();

I am getting a RemoteException in the last line.
==============================================================

RemoteException
java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception is:

org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Can
't skip sender's custom marshaled class: RMI:com.sun.ejb.portable.HomeHandleImpl
:08F7326BCB91B6EB:5EFDB2BDBA1098D8 vmcid: SUN minor code: 211 completed: Maybe

at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio
n(ShutdownUtilDelegate.java:100)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at _AdviceHome_Stub.getHomeHandle(Unknown Source)
at AdviceStatefulClient.main(AdviceStatefulClient.java:27)
Caused by: org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge :
Can't skip sender's custom marshaled class: RMI:com.sun.ejb.portable.HomeHandleI
mpl:08F7326BCB91B6EB:5EFDB2BDBA1098D8 vmcid: SUN minor code: 211 completed: Ma
ybe
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:953)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:859)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:851)
at com.sun.corba.se.internal.iiop.CDRInputStream.read_abstract_interface
(CDRInputStream.java:309)
at _AdviceHome_Stub.getHomeHandle(Unknown Source)
... 1 more
==============================================================

How do i test the usage of handle? please help
AAV

[ February 06, 2006: Message edited by: Srividhya Anand ]

[ February 06, 2006: Message edited by: Srividhya Anand ]

[ February 06, 2006: Message edited by: Srividhya Anand ]
[ February 06, 2006: Message edited by: Srividhya Anand ]
Balaji Anand
Ranch Hand

Joined: Nov 03, 2004
Posts: 146
any answers? how do i test the handles?
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.rmi.MarshalException
 
Similar Threads
AdviceClient Runtime Error
Running AdviseGuy Bean with JDK1.4 fails
PMI Server Exception :
Help on (CORBA MARSHAL 0x4942f896)
org.omg.CORBA.MARSHAL