Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4684386

TTY: jdb throwing IllegalArgumentException while parsing commandline args

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.2
    • 1.4.1
    • core-svc
    • None
    • mantis
    • sparc
    • solaris_1


      jdb is throwing an illegal argument exception while passing a commandline argument seperated by comma.

      eg: jdb Server -ORBDebug subcontract,shutdown,transport


      bash-2.04$ /java/re/jdk/1.4.1/promoted/latest/binaries/solaris-sparc/bin/java -version
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b11)
      Java HotSpot(TM) Client VM (build 1.4.1-beta-b11, mixed mode)
      bash-2.04$
      bash-2.04$ more Server.java
      import org.omg.CORBA.*;

      public class Server {
          public static void main(String[] args) {
              try {
                  ORB orb = ORB.init(args, System.getProperties());
                  System.out.println("Server ready ....");
                  orb.run();
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
      }
      bash-2.04$ /java/re/jdk/1.4.1/promoted/latest/binaries/solaris-sparc/bin/javac Server.java
      bash-2.04$ /java/re/jdk/1.4.1/promoted/latest/binaries/solaris-sparc/bin/jdb Server -ORBDebug subcontract,transport,shutdown
      Internal exception:
      java.lang.IllegalArgumentException: Illegal connector argument: transport,shutdown,
              at com.sun.tools.example.debug.tty.VMConnection.parseConnectorArgs(VMConnection.java:136)
              at com.sun.tools.example.debug.tty.VMConnection.<init>(VMConnection.java:160)
              at com.sun.tools.example.debug.tty.Env.init(Env.java:61)
              at com.sun.tools.example.debug.tty.TTY.main(TTY.java:829)
      bash-2.04$ /java/re/jdk/1.4.1/promoted/latest/binaries/solaris-sparc/bin/jdb Server -ORBDebug subcontract
      Initializing jdb ...
      *** Reading commands from /home/sm122304/.jdbrc
      Deferring breakpoint com.sun.corba.se.internal.POA.POAImpl:1048.
      It will be set after the class is loaded.
      > > run
      run Server -ORBDebug subcontract
      Set uncaught java.lang.Throwable
      Set deferred uncaught java.lang.Throwable
      >
      VM Started: Server ready ....

      > quit

      Fatal error:
      Failed reading output of child java interpreter.

      Fatal error:
      Failed reading output of child java interpreter.
      bash-2.04$

            duke J. Duke
            smanuel Sony Manuel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: