Skip to Content
Former Member
Sep 07, 2009 at 09:54 AM

Session bean "Exception in method create()"



I have a session bean which is consuming entity bean and session bean is published as webService now when I call create method of entity bean from session bean it says "Exception in method com.syntel.exam_tool.entityBeans.tabExamTable.TabExamLocalHomeImpl0.create()."

But my create method of entity bean is blank I am not getting from where this exceptions is being thrown.

below is the code from session bean wehre I am calling entity bean

javax.naming.Context ctx;
ctx = new InitialContext();
TabExamLocalHome tabExamLocalHome = (TabExamLocalHome) ctx.lookup("java:comp/env/ejb/TabExamBean1");
TabExamLocal tabExam = tabExamLocalHome.create();

Please help me ins this problem.