Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900974

Unhandled exception in Agent Monitor on selecting invalid ports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • TBD_Minor
    • None
    • tools
    • None
    • jt b11
      jdk 8b132 (latest promoted)

    • b11

      1. Open JavaTest GUI
      2. Open Agent Monitor (Tools -> Agent Monitor)
      3. In Port field enter some port in range 65536 - 2147000000 (approx.)

      Expected: Popup error window appears with text "Bad value for port field"

      Actual result: Exception is thrown to console log, no gui message

      Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Port value out of range: 2147000000
      at java.net.ServerSocket.<init>(ServerSocket.java:232)
      at java.net.ServerSocket.<init>(ServerSocket.java:181)
      at com.sun.javatest.agent.SocketConnection.createServerSocket(SocketConnection.java:226)
      at com.sun.javatest.agent.SocketConnection.createServerSocket(SocketConnection.java:204)
      at com.sun.javatest.agent.ActiveAgentPool.setListening(ActiveAgentPool.java:493)
      at com.sun.javatest.agent.AgentMonitorTool$AgentPoolSubpanel.itemStateChanged(AgentMonitorTool.java:236)
      at javax.swing.AbstractButton.fireItemStateChanged(AbstractButton.java:2050)
      at javax.swing.AbstractButton$Handler.itemStateChanged(AbstractButton.java:2353)
      at javax.swing.DefaultButtonModel.fireItemStateChanged(DefaultButtonModel.java:455)
      at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:272)
      at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:289)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
      at java.awt.Component.processMouseEvent(Component.java:6527)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      at java.awt.Component.processEvent(Component.java:6292)
      at java.awt.Container.processEvent(Container.java:2234)
      at java.awt.Component.dispatchEventImpl(Component.java:4883)
      at java.awt.Container.dispatchEventImpl(Container.java:2292)
      at java.awt.Component.dispatchEvent(Component.java:4705)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
      at java.awt.Container.dispatchEventImpl(Container.java:2278)
      at java.awt.Window.dispatchEventImpl(Window.java:2739)
      at java.awt.Component.dispatchEvent(Component.java:4705)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
      at java.awt.EventQueue.access$400(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:697)
      at java.awt.EventQueue$3.run(EventQueue.java:691)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
      at java.awt.EventQueue$4.run(EventQueue.java:719)
      at java.awt.EventQueue$4.run(EventQueue.java:717)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

            dbessono Dmitry Bessonov
            dsandalov Dmitry Sandalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: