wood burning stoves 2.0*
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

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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:
weblogic.utils.net.SocketResetException - with nested exception:
[java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read]
java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:300)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)

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: http://aspose.com/file-tools
subject: RemoteException