-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Serialization errors on Sun's app server
PostPosted: Wed Dec 28, 2005 9:27 am 
Newbie

Joined: Wed Dec 28, 2005 9:10 am
Posts: 3
Hi all,
i am using hibernate on Sun's app server and i have the following problem testing two classes like:

class name="A" table="A">
<id name="aid" column="A_ID" type="long">
<generator class="..."/></id>
<property name="descr1" column="DSC" type="java.lang.String" />
<many-to-one name="B" column="B_ID" class="B" />
</class>

<class name="B" table="B">
<id name="bid" column="B_ID" type="long">
<generator class="..."/></id>
<property name="descr2" column="DSC" type="java.lang.String" />
</class>

when i load an A object, ejb container complains for serialization errors (on B's proxy). If i change B's id type from "long" to "java.lang.Long" everything works fine.

Thanks,
Vassilis


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 6:22 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
It was a similar problem with custom "writeReplace" method and make sure you have same class versions on client and on server.
BTW submit stack trace if it doe's not help.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 29, 2005 5:16 am 
Newbie

Joined: Wed Dec 28, 2005 9:10 am
Posts: 3
Here is the stacktrace.
"My" is the EJB, "getA" is the EJB method which returns an A object and MyBeanTestClient1 is my EJB tester..

java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Unable to read value from underlying bridge : Unable to read value from underlying bridge : Unable to load Class long : long (no security manager: RMI class loader disabled) vmcid: SUN minor code: 211 completed: Maybe

at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:100)

at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)

at com.intralot.bon.entities.system._My_Stub.getA(Unknown Source)

at com.intralot.bon.entities.system.MyBeanTestClient1.<init>(MyBeanTestClient1.java:18)

at com.intralot.bon.entities.system.MyBeanTestClient1.main(MyBeanTestClient1.java:44)

Caused by: org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Unable to read value from underlying bridge : Unable to read value from underlying bridge : Unable to load Class long : long (no security manager: RMI class loader disabled) vmcid: SUN minor code: 211 completed: Maybe

at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:953)

at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:289)

at com.sun.corba.se.internal.corba.TCUtility.unmarshalIn(TCUtility.java:266)

at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:561)

at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:635)

at com.sun.corba.se.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:260)

at com.sun.corba.se.internal.javax.rmi.CORBA.Util.readAny(Util.java:100)

at javax.rmi.CORBA.Util.readAny(Util.java:90)

at com.intralot.bon.entities.system._My_Stub.getA(Unknown Source)

... 2 more


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.