User: starksm 
  Date: 01/03/25 14:20:06

  Modified:    src/main/org/jboss Main.java
  Log:
  Add catch of the JXM RuntimeErrorException so that the true exception can
  be printed out.
  
  Revision  Changes    Path
  1.29      +15 -6     jboss/src/main/org/jboss/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/Main.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- Main.java 2001/02/08 03:32:37     1.28
  +++ Main.java 2001/03/25 22:20:05     1.29
  @@ -32,13 +32,13 @@
    *   @see <related>
    *   @author Rickard �berg ([EMAIL PROTECTED])
    *   @author <a href="mailto:[EMAIL PROTECTED]">Daniel O'Connor</a>.
  - *   @version $Revision: 1.28 $
  + *   @version $Revision: 1.29 $
    */
   public class Main
   {
      // Constants -----------------------------------------------------
   
  -   String versionIdentifier = "PRE-2.1";
  +   String versionIdentifier = "2.1-BETA-Mar-24-2001";
      // Attributes ----------------------------------------------------
   
      // Static --------------------------------------------------------
  @@ -189,17 +189,26 @@
            server.invoke(new ObjectName(":service=ServiceControl"), "init", new 
Object[0] , new String[0]);
            server.invoke(new ObjectName(":service=ServiceControl"), "start", new 
Object[0] , new String[0]);
   
  -      } catch (RuntimeOperationsException e)
  +      }
  +      catch (RuntimeOperationsException e)
         {
            System.out.println("Runtime error");
            e.getTargetException().printStackTrace();
  -      } catch (MBeanException e)
  +      }
  +      catch (RuntimeErrorException e)
         {
  +         System.out.println("Runtime error");
  +         e.getTargetError().printStackTrace();
  +      }
  +      catch (MBeanException e)
  +      {
            e.getTargetException().printStackTrace();
  -      } catch (RuntimeMBeanException e)
  +      }
  +      catch (RuntimeMBeanException e)
         {
            e.getTargetException().printStackTrace();
  -      } catch (Exception e)
  +      }
  +      catch (Exception e)
         {
            e.printStackTrace();
         }
  
  
  

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

Reply via email to