Dear all. I write a simple CMP entitybean example. the structure of application is:
A entityBean(CMP) ArticleEJB, A sessionBean(stateful) ArticleManagerEJB,he has a method deleteArticle(long id) A sessionBean(stateless) ArticleShowerEJB,he has a method list(int col) the shower list all article in database,and manager delete one article. I list all article by column,right.I delete one article by it's id,right. then I list again, throw a NoSuchObjectException!!!! I output the error message to system.out,as follow: -ejbActivate called. -ejbLoad called. -ejbStore called. -ejbStore called. -ejbStore called. <-----list method be called ok. -ejbRemove called. <-----this is ok too,when i delete a article. -ejbActivate called. <-----then error occurred, when i list record from database again.why active it? but it be delete from database? java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: nested exception is: java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9998 Maybe; nested exception is: org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9998 completed: Maybe; nested exception is: java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9998 Maybe; nested exception is: org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9998 completed: Maybe java.rmi.RemoteException: nested exception is: java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9998 Maybe; nested exception is: org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9998 completed: Maybe; nested exception is: java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9998 Maybe; nested exception is: org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9998 completed: Maybe java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9998 Maybe; nested exception is: org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9998 completed: Maybe org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 9998 completed: Maybe <<no stack trace available>> Please help me. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
