Hi All...
The code snippit pasted below will cause jBoss 2.0 (built from CVS
downloaded at 10:00PM Eastern May 31) to hang until the server is
terminated. Platform is Win 98 with Sun's JDK 1.3. The exact line that
causes the hang is:
u.setPersonCode(1);
After the server is terminated, the following error is generated at the
client:
Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset by peer: JVM_recv in socket
input stream read
I have double checked the bean code and remote interface code and it all
looks correct (of course, it is 2:48AM here). I think my client code is
correct as well...
Jim
-----------------------------------------------------------
UserHome userHome = null;
Properties prop = getEJBossProps(); // this is my method
try {
// Get context
Context ctx = new InitialContext(prop);
System.out.println("Got context");
// Get home object
System.out.println("Looking up the UserHome object...");
userHome = (UserHome) ctx.lookup("User");
if (userHome != null )
System.out.println("got home interface");
} catch (Exception e) {
System.out.println("Exception caught");
System.out.println(e.getMessage());
System.out.println(e.toString());
}
UserPK pk = null;
User u = null;
try {
System.out.println("Calling create on UserHome...");
u = userHome.create();
// OK to here. The next line won't return until server is killed
u.setPersonCode(1);
u.setOrgName("Organization Name");
}
catch(javax.ejb.CreateException ex) {
System.out.println(ex.getMessage());
}
catch(java.rmi.RemoteException ex) {
System.out.println(ex.getMessage());
}
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]