cancel
Showing results for 
Search instead for 
Did you mean: 

Exception in method create()

Former Member
0 Kudos

Hello,

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.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

It looks you have some issues while creating bean and as you are not passing any values to the method from that it looks like you are setting some static values only in that case check if it is not violating any database constraints like primary key / unique key constraints or the relations of the key with other fields

Ninad

Answers (1)

Answers (1)

devendervb
Contributor
0 Kudos

I think the code that you have provided is from Client EJB, as per my assumption it was unable to create a bean(plz check with exact bean coding), ot client is unable to access EJB

-Devender V