2 Replies Latest reply on Nov 2, 2002 2:11 AM by Jeremy Cowgar

    Throwing an Exception

    Jeremy Cowgar Newbie

      I have a method in one of my SessionBean's that throws an Exception, however when deployed, JBoss says it must not throw a RemoteException. It is not throwing a remote exception, but an Exception.

      Am I not aloud to throw an Exception() or is the error being reported incorrectly from JBoss or should I do something else entirely?

      The error message is:

      Bean : ClaimSession
      Method : public abstract ClaimValue createClaim(ClaimValue, boolean) throws Exception
      Section: 7.10.7
      Warning: The methods in the local interface must not include java.rmi.RemoteException in their throw
      s clause.


      Jeremy Cowgar