[Problem] The memory could not be read!
843829Jan 5 2004 — edited Jan 9 2004i encounter a problem when running client to access an ejb deployed on jboss3.0.4-tomcat4.1.12. i test the cmr one to one relationship via xdoclet.1.2-b3.
it issues window application error dialogue: "The instruction at '0x6d3a1bea' referenced memory at '0x0000000c'. The memory could not be 'read'." is there any possible may cause such kind of error, or is it a bug for java platform. (the sdk i use is version j2sdk1.4.1_01)?
i appricate any suggestions, sincerely.
thank you very mcuh.
client code looks like
===Client====
package test.client;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.*;
import test.domain.*;
public class CmrClient{
public static void main(String args[])
throws NamingException, FinderException{
InitialContext context = new InitialContext();
Object object = context.lookup("cmr.User");
UserLocalHome userLocalHome =
(UserLocalHome)PortableRemoteObject.narrow(
object, UserLocalHome.class);
UserLocal userLocal =
userLocalHome.findByPrimaryKey(new UserPK("a@a.com"));
UserInfoLocal userInfoLocal = userLocal.getUserInfo();
System.out.println("user info:" + userInfoLocal.getDept() +
userInfoLocal.getPhone());
}
}
===Client====