6 Replies Latest reply on Apr 14, 2003 4:58 PM by Andy Fyfe

    SLSB throws CreateException, client doesn't see it

    Andy Fyfe Newbie

      I have a stateless session bean with a remote interface that tries to set up a jdbc connection in its ejbCreate method.

      This can fail, and if it does, ejbCreate throws a new CreateException with what should be a meaningful message. I can log the message prior to the throw, and it all looks fine.

      However, the client doesn't see it. The call to home.create() succeeds without error.

      However, any attempt to access any of the bean's methods results in a java.lang.reflect.UndeclaredThrowableException exception being throw, and the exception getMessage() returns null.

      This is an exception I wouldn't normally trap, and it contains no information about the original problem.

      I must be missing something. Ideas?