The moose likes EJB and other Java EE Technologies and the fly likes RemoteException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "RemoteException" Watch "RemoteException" New topic


nitin sachdeva

Joined: May 20, 2003
Posts: 8
I am calling CMP2.0 from client and just after calling ejbCreate method
the server crashes and i get following error at client's console
Plz help!!!
this is what i get at client's console:
Context loaded and before lookup
got home reference from Company
weblogic.rjvm.PeerGoneException: ; nested exception is: - with nested exception:
[ Connection reset by peer: JVM_recv in socket input stream read] Connection reset by peer: JVM_recv in socket input stream read
at Method)
at weblogic.socket.JavaSocketMuxer.processSockets(
at weblogic.socket.SocketReaderRequest.execute(
at weblogic.kernel.ExecuteThread.execute(

And this is the code for client:
Object home = (CompanyHome)ctx.lookup("CompanyHome");
CompanyHome home1 = (CompanyHome) PortableRemoteObject.narrow(home, CompanyHome.class);

System.out.println("got home reference from Company");
Company remote = home1.create(new CompanyPK("3"),"ghi");
System.out.println("create for Company called from client and about to call fnc_temp() ");
System.out.println("after fnc_temp()");
I agree. Here's the link:
subject: RemoteException
jQuery in Action, 3rd edition