axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Created: (AXIS-1577) EJBProvider doesn't handle java.rmi.ServerException
Date Tue, 28 Sep 2004 19:54:32 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1577

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1577
    Summary: EJBProvider doesn't handle java.rmi.ServerException
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             current (nightly)

   Assignee: 
   Reporter: David Green

    Created: Tue, 28 Sep 2004 12:53 PM
    Updated: Tue, 28 Sep 2004 12:53 PM
Environment: All OS, J2EE 1.3 (JBoss 3.2.3) using JDK 1.4.2_05

Description:
java.rmi.ServerException is thrown when a RuntimeException is thrown.  Since the original
exception is wrapped in a ServerException, the SOAP fault is not created properly.

The EJBProvider should override invokeMethod as follows:

protected Object invokeMethod(MessageContext msgContext, Method method, Object obj, Object[]
argValues) throws Exception {
        try {
            return super.invokeMethod(msgContext, method, obj, argValues);
        } catch (ServerException serverException) {
            throw (RuntimeException) serverException.getCause();
        }
    }

This will ensure that the original exception is handled properly according to the type mappings.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message