Hi, I have made a cmp in which my primary key class takes a primitive long. The type of the (Primary Key)coulmun in sqlserver2000 database is BigInt.
public class ASNMasterPK implements Serializable { public long asnNo; public ASNMasterPK() { } public ASNMasterPK(long asnNo) { this.asnNo = asnNo; } public boolean equals(Object obj) { if (this.getClass().equals(obj.getClass())) { ASNMasterPK that = (ASNMasterPK) obj; return this.asnNo == that.asnNo; } return false; } public int hashCode() { return ("" + asnNo).hashCode(); } } when i am trying to access its homeObj.findByPrimaryKey(new ASHMasterPK(Long.parseLong("111111111111"))), i am getting this error, can any body help me. TRANSACTION ROLLBACK EXCEPTION: javax.transaction.TransactionRolledbackException: Load failed; nested exception is: java.rmi.NoSuchObjectException: Entity com.cst.pps.preadmission.ejbs.cmp.asnmaster.ASNMasterPK@8ca941b7 not found; Environment: ============== EjbSpec: ejb1.1 Jboss Version: Jboss JBoss-2.4.6_Tomcat-4.0.3 In the way of reply __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user