Error When Deserializing EJB Handle
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   AG_Narayana
Posted On:   Monday, July 31, 2006 12:38 PM

Error When Deserializing EJB Handle Hi getting the below error deserilising the EJBObject after serilizaion. Code to serialize is ===================== FileOutputStream fos = new FileOutputStream("d:/beaexam/serial"); ObjectOutputStream oos = new ObjectOutputStream(fos); Handle handle = learnLocal1.getHandle(); oos.writeObject(handle); Below is the code to obtain it ============================================== FileInputStream fis = new FileInputStream ("d:/beaexam/serial"); ObjectInputStream ois = new ObjectInputStream(fis); SecondLocal learnLocal1 = null; Handle handle = (Handle)ois.readObject();    More>>

Error When Deserializing EJB Handle

			
Hi getting the below error deserilising the EJBObject
after serilizaion.

Code to serialize is
=====================
FileOutputStream fos = new FileOutputStream("d:/beaexam/serial");
ObjectOutputStream oos = new ObjectOutputStream(fos);
Handle handle = learnLocal1.getHandle();
oos.writeObject(handle);


Below is the code to obtain it
==============================================
FileInputStream fis = new FileInputStream ("d:/beaexam/serial");
ObjectInputStream ois = new ObjectInputStream(fis);
SecondLocal learnLocal1 = null;
Handle handle = (Handle)ois.readObject();
==============================================

java.lang.ExceptionInInitializerError
at weblogic.ejb20.internal.HandleImpl.readExternal(HandleImpl.java:99)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at EJBClientHandle.main(EJBClientHandle.java:14)
Caused by: java.lang.NullPointerException
at weblogic.rmi.utils.io.RemoteObjectReplacer. (RemoteObjectRepla
cer.java:47)
... 6 more

Regards
Narayana AG


   <<Less
About | Sitemap | Contact