User: user57  
  Date: 02/02/16 03:35:15

  Modified:    src/main/org/jboss/invocation/jrmp/server JRMPInvoker.java
  Log:
   o ThrowableTranslator was lame... need to come up with better solution...
  
  Revision  Changes    Path
  1.14      +12 -2     jboss/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java
  
  Index: JRMPInvoker.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JRMPInvoker.java  14 Feb 2002 01:31:01 -0000      1.13
  +++ JRMPInvoker.java  16 Feb 2002 11:35:15 -0000      1.14
  @@ -30,6 +30,8 @@
   import javax.transaction.TransactionManager;
   import javax.management.ObjectName;
   import javax.management.MBeanException;
  +import javax.management.RuntimeMBeanException;
  +import javax.management.RuntimeOperationsException;
   import javax.management.MBeanRegistration;
   import javax.management.MBeanServer;
   import javax.management.MalformedObjectNameException;
  @@ -54,7 +56,7 @@
    * from RMI/JRMP into the JMX base.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]>Marc Fleury</a>
  - * @version $Revision: 1.13 $
  + * @version $Revision: 1.14 $
    *
    * <p><b>Revisions:</b><br>
    * <p><b>2002/01/13: Sacha Labourey</b>
  @@ -367,7 +369,15 @@
            return new MarshalledObject(obj);
         }
         catch (Exception e) {
  -      e = org.jboss.util.ThrowableTranslator.translate(e);
  +         if (e instanceof MBeanException)
  +            e = ((MBeanException)e).getTargetException();
  +
  +         if (e instanceof RuntimeMBeanException)
  +            e = ((RuntimeMBeanException)e).getTargetException();
  +
  +         if (e instanceof RuntimeOperationsException)
  +            e = ((RuntimeOperationsException)e).getTargetException();
  +         
         log.error("operation failed", e);
         throw e;
         }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to