Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[Problem] The memory could not be read!

843829Jan 5 2004 — edited Jan 9 2004
i 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====
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2004
Added on Jan 5 2004
2 comments
186 views