• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running AdviseGuy Bean with JDK1.4 fails

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I worked on the AdviseGuy Bean and did everything correctly except while running the AdviseClient I used JDK1.4 and lo - this is the Exception I got back.
BUT
I promptly changed to JDK1.3 and I got back the right result ( see below )
** Anyone has any idea why it worked with one and not with the other.
Probably something to do with Marshalling of the Stubs ??
Sumit

====== While using JDK1.3
D:\j2ee13\projects\Advise>d:\jdk1.3\bin\java -classpath .;AdviseAppClient.jar;d:\j2ee13\lib\j2ee.jar AdviseClient
__ From Session Bean = Sumit Pal
====== While using JDK1.4
D:\j2ee13\projects\Advise>d:\jdk1.4\bin\java -classpath .;AdviseAppClient.jar;d:\j2ee13\lib\j2ee.jar AdviseClient
Caught an unexpected exception!
javax.naming.CommunicationException: java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : vmcid: SUN minor code: 211 completed: Maybe
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.mapSystemException(Util.java:138)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lookup(Unknown Source)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:133)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at AdviseClient.main(AdviseClient.java:15)
Caused by: org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : vmcid: SUN minor code: 211 completed: Maybe
at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:923)
at com.sun.corba.ee.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:281)
at com.sun.corba.ee.internal.corba.TCUtility.unmarshalIn(TCUtility.java:274)
at com.sun.corba.ee.internal.corba.AnyImpl.read_value(AnyImpl.java:554)
at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:605)
at com.sun.corba.ee.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:252)
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.readAny(Util.java:203)
at javax.rmi.CORBA.Util.readAny(Util.java:90)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lookup(Unknown Source)
... 3 more
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:151)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at AdviseClient.main(AdviseClient.java:15)
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did used j2sdk1.4.1_06 and everything worked as expected. The corba error may be releated to RI implementation as described on www.wickedlysmart.com
Thanks
Jayant
reply
    Bookmark Topic Watch Topic
  • New Topic