Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5261

NetworkServerControl prints usage message twice on some errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 10.8.1.2
    • None
    • Network Server
    • Low
    • Newcomer, Repro attached

    Description

      If you invoke NetworkServerControl with an invalid command, the usage message will be printed twice.

      $ java -jar derbynet.jar abc
      Mon Jun 06 10:14:25 CEST 2011 : Command abc is unknown.
      Usage: NetworkServerControl <commands>
      Commands:
      start [-h <host>] [-p <portnumber>] [-noSecurityManager] [-ssl <sslmode>]
      shutdown [-h <host>][-p <portnumber>] [-ssl <sslmode>] [-user <username>] [-password <password>]
      ping [-h <host>][-p <portnumber>] [-ssl <sslmode>]
      sysinfo [-h <host>][-p <portnumber>] [-ssl <sslmode>]
      runtimeinfo [-h <host>][-p <portnumber>] [-ssl <sslmode>]
      logconnections

      {on|off} [-h <host>][-p <portnumber>] [-ssl <sslmode>]
      maxthreads <max>[-h <host>][-p <portnumber>] [-ssl <sslmode>]
      timeslice <milliseconds>[-h <host>][-p <portnumber>] [-ssl <sslmode>]
      trace {on|off}

      [-s <session id>][-h <host>][-p <portnumber>] [-ssl <sslmode>]
      tracedirectory <traceDirectory>[-h <host>][-p <portnumber>] [-ssl <sslmode>]
      Mon Jun 06 10:14:25 CEST 2011 : No command given.
      Usage: NetworkServerControl <commands>
      Commands:
      start [-h <host>] [-p <portnumber>] [-noSecurityManager] [-ssl <sslmode>]
      shutdown [-h <host>][-p <portnumber>] [-ssl <sslmode>] [-user <username>] [-password <password>]
      ping [-h <host>][-p <portnumber>] [-ssl <sslmode>]
      sysinfo [-h <host>][-p <portnumber>] [-ssl <sslmode>]
      runtimeinfo [-h <host>][-p <portnumber>] [-ssl <sslmode>]
      logconnections

      {on|off} [-h <host>][-p <portnumber>] [-ssl <sslmode>]
      maxthreads <max>[-h <host>][-p <portnumber>] [-ssl <sslmode>]
      timeslice <milliseconds>[-h <host>][-p <portnumber>] [-ssl <sslmode>]
      trace {on|off}

      [-s <session id>][-h <host>][-p <portnumber>] [-ssl <sslmode>]
      tracedirectory <traceDirectory>[-h <host>][-p <portnumber>] [-ssl <sslmode>]

      Printing it once should be enough.

      The same problem is seen if you don't specify a required argument for an option. For example "java -jar derbynet start -p" (no port number).

      Attachments

        Issue Links

          Activity

            People

              Kumara1234 INDIKA KUMARA
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: