I've 2 cmps one for a master table(main
EJB) and one for transaction table(sub EJB) I'm getting problem while adding data into transaction table..In master table ValueCode is the Primary key. There is a set method for valueCode in SubEJB , it is taking an object of main EJB as parameter. Before creating sub ejb object, i'm creating a mainEJB object nd passing it to create() in subEJB.
The error : (here AllowValuesEJB - main , AllowValuesSubEJB - sub)
java.lang.IllegalStateException: getEJBLocalObject not allowed or not successful [1]
at com.evermind.server.ejb.AbstractEJBContext.getEJBLocalObject(AbstractEJBContext.java:77)
at AllowValuesSubEJBBean_PersistenceManager3.__core__setallowValuesEJB_value_code(AllowValuesSubEJBBean_PersistenceManager3.java:133)
at AllowValuesSubEJBBean_PersistenceManager3.setAllowValuesEJB_value_code(AllowValuesSubEJBBean_PersistenceManager3.java:156)
at mypackage4.impl.AllowValuesSubEJBBean.ejbCreate(AllowValuesSubEJBBean.java:22)
at AllowValuesSubEJBLocalHome_EntityHomeWrapper9.create(AllowValuesSubEJBLocalHome_EntityHomeWrapper9.java:802)
at mypackage4.impl.MySessionEJBBean.CreateValues(MySessionEJBBean.java:36)
at MySessionEJB_StatelessSessionBeanWrapper4.CreateValues(MySessionEJB_StatelessSessionBeanWrapper4.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:484)
plz help me ...