Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-537

admin.bat prints stacktraces to standard out

    XMLWordPrintableJSON

Details

    Description

      D:\Programs\apache-karaf-2.2.0>bin\admin.bat list
      SSH Port RMI Port State Pid Name
      [ 8102] [ 1100] [Started ] [ 3132] server1
      [ 8103] [ 1101] [Stopped ] [ 0] server2
      [ 8101] [ 1099] [Stopped ] [ 0] root
      D:\Programs\apache-karaf-2.2.0>bin\admin.bat create server1
      Exception in thread "main" java.lang.IllegalArgumentException: Instance 'server1' already exists
      at org.apache.karaf.admin.internal.AdminServiceImpl.createInstance(AdminServiceImpl.java:138)
      at org.apache.karaf.admin.command.CreateCommand.doExecute(CreateCommand.java:60)
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      at org.apache.karaf.admin.main.Execute.execute(Execute.java:103)
      at org.apache.karaf.admin.main.Execute.main(Execute.java:83)

      The exception message ("Instance 'server1' already exists") is correct, but the stacktrace should not be printed.

      Attachments

        1. KARAF-537.patch
          1 kB
          Christian Schneider

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            cathodion Geert Schuring
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: