[jboss-dev-forums] [Design of the JBoss EJB Container] - Interface exception checking seems broken

scott.stark@jboss.org do-not-reply at jboss.com
Thu Jan 4 14:32:30 EST 2007


"henke.eriksson"  wrote : 
  | We ran into some trouble today when we tried to deploy an EJB with a
  | Local interface on JBoss 4.0.4. The business interface had one method,
  | which looked something like this:
  | 
  | Object doStuff(Command c) throws Throwable;
  | 
  | At deploy-time the verifier complained that we had a method in a local
  | interface that threw a RemoteException violating section 7.11.7 of the
  | EJB spec.
  | 
  | We did some digging and stumbled across the bug report JBAS-1463. The
  | fix for this "bug" basically disallows a method in a local interface
  | to declare that it throws a RemoteException or any of its
  | SUPERclasses. As the report mentions, the RMI spec says that a Remote
  | method must declare that it throws a RemoteException or one of it
  | superclasses. But as far as I know a remote method can still declare
  | that it throws a subclass of RemoteException, right?
  | 
  | Right now the verifier assumes that a method that declares that it
  | throws Throwable is a remote method. And I can see in the code that
  | fixes to allow Exception and IOException has been applied. But I still
  | feel that this logic is a bit weird, or am I missing something? 
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998040#3998040

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998040



More information about the jboss-dev-forums mailing list