problem while running client program which is a statelesssession


EJB design: problem while running client program which is a statelesssession

  1. hi,
       i written a stateless session bean.while running client pgm it is giving error like this.

    D:\weblogic\profile2>java profile2.ProfileClient
    the class nameprofile2.ProfileBeanEOImpl_ServiceStub
    Exception : java.rmi.RemoteException: Exception thrown in ejbCreate(); nested exception is:
    Start server side stack trace:
            at profile2.ProfileBean.ejbCreate(
            at java.lang.reflect.Method.invoke(Native Method)
            at weblogic.ejb.internal.SessionEJBContext.createBeanIfNecessary(
            at weblogic.ejb.internal.SessionEJBContext.afterBegin(
            at weblogic.ejb.internal.StatelessEJBObject.getContextForInvoke(
            at weblogic.ejb.internal.BaseEJBObject.preInvoke(
            at profile2.ProfileBeanEOImpl.retrieveBusinessid(
            at profile2.ProfileBeanEOImpl_WLSkel.invoke(
            at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(, Compiled Code)
            at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(
            at weblogic.rmi.internal.BasicExecuteRequest.execute(
            at, Compiled Code)
    End server side stack trace

    could u please tell what is the errorif u want i will send my code also

    advance thanks

  2. mr rao,
    please make sure that your bean method ejbcreate is returning a null or a primary key as per your version of the WS that you are using
  3. Mr rao,
      can u send me u'r code pls to