Active agent accept zero port value and throw exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jt5.0
    • Affects Version/s: jt4.5
    • Component/s: tools
    • b05
    • generic
    • generic
    • Verified

      JavaTest Active Agent accept zero port value and throw IllegalArgumentException.
      How to reproduce:
      1. Start JavaTest Agent
      2. Set port value to zero
      3. Click on Start button
      JavaTest Agent will start to connect on zero port. No error or warning will be shown but exception is thrown in command line:
      Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException
              at com.sun.javatest.agent.ActiveConnectionFactory.<init>(ActiveConnectio
      nFactory.java:49)
              at com.sun.javatest.agent.ActiveModeOptions.createConnectionFactory(Acti
      veModeOptions.java:65)
              at com.sun.javatest.agent.AgentPanel$ParamPanel.createAgent(AgentPanel.j
      ava:853)
              at com.sun.javatest.agent.AgentPanel.start(AgentPanel.java:164)
              at com.sun.javatest.agent.AgentPanel$ButtonPanel.actionPerformed(AgentPa
      nel.java:511)
              at java.awt.Button.processActionEvent(Button.java:409)
              at java.awt.Button.processEvent(Button.java:377)
              at java.awt.Component.dispatchEventImpl(Component.java:4866)
              at java.awt.Component.dispatchEvent(Component.java:4691)
              at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
              at java.awt.EventQueue.access$000(EventQueue.java:102)
              at java.awt.EventQueue$3.run(EventQueue.java:662)
              at java.awt.EventQueue$3.run(EventQueue.java:660)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
      main.java:75)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
      main.java:86)
              at java.awt.EventQueue$4.run(EventQueue.java:676)
              at java.awt.EventQueue$4.run(EventQueue.java:674)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
      main.java:75)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
      ad.java:216)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
      java:135)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:123)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:119)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:111)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

            Assignee:
            Brian Kurotsuchi (Inactive)
            Reporter:
            Maxim Kolmakov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: