Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Running AdviseGuy Bean with JDK1.4 fails

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic