Bugs item #626430, was opened at 2002-10-21 12:20
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=626430&group_id=22866

Category: JBossServer
Group: v3.2
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Sean hager (seanhager)
Assigned to: Christian Riege (lqd)
Summary: Verifier complains about java.lang.Exception being thrown

Initial Comment:
12:09:06,468 INFO  [EJBDeployer] 
Bean   : PIVItem
Method : public abstract Object getParentKey() throws 
Exception
Section: 7.10.7
Warning: The methods in the local interface must not 
include java.rmi.RemoteException in their throws clause.

Should not issue a RemoteException warning when 
throwing an "Exception"

In the above statement, only an Exception is being 
thrown not a RemoteException.   If I change the 
exception to an EJB exception I do not get a warning.  


Sean.


----------------------------------------------------------------------

>Comment By: Sean hager (seanhager)
Date: 2002-10-22 07:27

Message:
Logged In: YES 
user_id=532458

Thank you for your quick response.  I do appriciate you fixing 
the problem.

Just to offer a simple rebuttle, we let all unanticipated 
exceptions float up to the proxy ejb class where they are 
logged and handled before nested in a remote exception and 
sent to the client.  This simple approach saves a bunch of try 
catch wrap and rethrow code that would add no value to the 
application.  
When we do find that there is an exception that we can 
recover from we add in the try catch, and do so, or rethrow if 
we can't recover from it.




----------------------------------------------------------------------

Comment By: Christian Riege (lqd)
Date: 2002-10-22 03:49

Message:
Logged In: YES 
user_id=176671

matter of fact, if you change the very generic
java.lang.Exception to anything else besides a
RemoteException or any of its subclasses the error message
will disappear.

anyways, i have fixed this in the Verifier. It now
explicitly allows a java.lang.Exception to be thrown on
local interface methods. Although IMHO you really should use
a more specific Exception ...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=626430&group_id=22866


-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of 
Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) 
program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
http://www.sun.com/javavote
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to