Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception while accessing Entity Bean  RSS feed

 
Vivek KumarRai
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
Iam relatively new to EJB ,made an entity bean .the bean is Deployed properly. Now when i run Client it throws Exception ... whether theres is some problem with my Client or its the problem with the Bean itself..
My envirnoment is
application Server: Weblogic 5.0.1
Using JDK 1.2 version
When i call create on the Client side it Create a new Row in the date base but after creating and executing ejbPostCreate the client throws Exception
the stack Trace is:
/***************************************************
java.rmi.UnexpectedException: Unexpected exception in PUC.EmpBean.create():
java.lang.NullPointerException
at weblogic.ejb.internal.LockManagerImpl.unlock(LockManagerImpl.java:160)
at weblogic.ejb.internal.StatefulEJBCache.unbind(StatefulEJBCache.java:528)
at weblogic.ejb.internal.BaseEJBContext.afterCompletion(BaseEJBContext.java:333)
at weblogic.ejb.internal.EntityEJBContext.afterCompletion(EntityEJBContext.java:240)
at weblogic.ejb.internal.StatefulEJBObject.postInvokeNoTx(StatefulEJBObject.java:315)
at weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:663)
at PUC.EmpBeanEOImpl.create(EmpBeanEOImpl.java:70)
at PUC.EmpBeanHomeImpl.create(EmpBeanHomeImpl.java:32)
at PUC.EmpBeanHomeImpl_WLSkel.invoke(EmpBeanHomeImpl_WLSkel.java:139)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:69)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:15)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
; nested exception is:
java.lang.NullPointerException:
Start server side stack trace:
java.lang.NullPointerException
at weblogic.ejb.internal.LockManagerImpl.unlock(LockManagerImpl.java:160)
at weblogic.ejb.internal.StatefulEJBCache.unbind(StatefulEJBCache.java:528)
at weblogic.ejb.internal.BaseEJBContext.afterCompletion(BaseEJBContext.java:333)
at weblogic.ejb.internal.EntityEJBContext.afterCompletion(EntityEJBContext.java:240)
at weblogic.ejb.internal.StatefulEJBObject.postInvokeNoTx(StatefulEJBObject.java:315)
at weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:663)
at PUC.EmpBeanEOImpl.create(EmpBeanEOImpl.java:70)
at PUC.EmpBeanHomeImpl.create(EmpBeanHomeImpl.java:32)
at PUC.EmpBeanHomeImpl_WLSkel.invoke(EmpBeanHomeImpl_WLSkel.java:139)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:69)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:15)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
End server side stack trace
java.lang.NullPointerException:
Start server side stack trace:
java.lang.NullPointerException
at weblogic.ejb.internal.LockManagerImpl.unlock(LockManagerImpl.java:160)
at weblogic.ejb.internal.StatefulEJBCache.unbind(StatefulEJBCache.java:528)
at weblogic.ejb.internal.BaseEJBContext.afterCompletion(BaseEJBContext.java:333)
at weblogic.ejb.internal.EntityEJBContext.afterCompletion(EntityEJBContext.java:240)
at weblogic.ejb.internal.StatefulEJBObject.postInvokeNoTx(StatefulEJBObject.java:315)
at weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:663)
at PUC.EmpBeanEOImpl.create(EmpBeanEOImpl.java:70)
at PUC.EmpBeanHomeImpl.create(EmpBeanHomeImpl.java:32)
at PUC.EmpBeanHomeImpl_WLSkel.invoke(EmpBeanHomeImpl_WLSkel.java:139)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:69)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:15)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
End server side stack trace
*******************************************/
Pls help...
Regards
Vivek Rai
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!