2 Replies Latest reply on Dec 9, 2003 1:23 AM by Klaus Kopruch

    UndeclaredThrowableException on method call

    Klaus Kopruch Newbie

      I have an EJB

      public abstract class CalculatorBean implements SessionBean {
      public int add(int a, int b) {return a + b;}
      public int sub(int a, int b) {return a - b;}
      public void ejbCreate() throws CreateException {
      throw new CreateException("Creation failed!");
      }
      public void ejbPostCreate() throws CreateException { }
      }

      which throws a CreateException in its ejbCreateMethod I saw that on client's side I get an UndeclaredThrowableException when I call method add(). However I expected a RemoteException (with CreateException nested).

      Is that behaviour correct, or is it a JBoss problem?