User: stark   
  Date: 01/02/07 19:54:44

  Modified:    src/main/org/jboss/util ServiceControl.java
  Log:
  Handle RuntimeMBeanException and MBeanException in start() so that the
  true exception can be logged.
  
  Revision  Changes    Path
  1.8       +9 -2      jboss/src/main/org/jboss/util/ServiceControl.java
  
  Index: ServiceControl.java
  ===================================================================
  RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/util/ServiceControl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ServiceControl.java       2001/01/13 18:21:32     1.7
  +++ ServiceControl.java       2001/02/08 03:54:44     1.8
  @@ -22,7 +22,7 @@
    *   @see <related>
    *   @author Rickard �berg ([EMAIL PROTECTED])
    *   @author Hugo Pinto (mailto:[EMAIL PROTECTED])
  - *   @version $Revision: 1.7 $
  + *   @version $Revision: 1.8 $
    */
   public class ServiceControl
   
  @@ -107,7 +107,14 @@
               {
                  e = ((RuntimeErrorException)e).getTargetError();
               }
  -            
  +            else if( e instanceof RuntimeMBeanException )
  +            {
  +               e = ((RuntimeMBeanException)e).getTargetException();
  +            }
  +            else if( e instanceof MBeanException )
  +            {
  +               e = ((MBeanException)e).getTargetException();
  +            }
               log.exception(e);
            }
         }
  
  
  

Reply via email to