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

REGRESSION: JVM crash with NPE exception when run apache Axis tcpmon utility

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b50
    • CPU:
      generic, x86
    • OS:
      generic, linux, windows_2000

      Backports

        Description

        ###@###.### 2004-01-09

        J2SE Version (please include all output from java -version flag):
          java version "1.5.0-beta2"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b32)
          Java HotSpot(TM) Client VM (build 1.5.0-beta2-b32, mixed mode)


        Does this problem occur on J2SE 1.3, 1.4 or 1.4.1? Yes / No (pick one)
         No, it works fine with 1.4.2


        Operating System Configuration Information (be specific):
         Windows 2000
         Solaris Sparc

        Bug Description:
         When running the Apache Axis tcpmon utility (a Swing based utility),
         it throws an NullPointerException exception:

        C:\>\j2sdk1.5.0\bin\java -classpath c:\axis-1_1rc2\axis-1_1RC2\lib\axis.jar
        org.apache.axis.utils.tcpmon
        java.lang.NullPointerException
                at org.apache.axis.utils.tcpmon$8.valueChanged(tcpmon.java:1426)
                at
        javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
        ectionModel.java:187)
                at
        javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
        ectionModel.java:167)
                at
        javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
        ectionModel.java:214)
                at
        javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSele
        ctionModel.java:408)
                at
        javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSele
        ctionModel.java:417)
                at
        javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(Def
        aultListSelectionModel.java:510)
                at
        javax.swing.DefaultListSelectionModel.removeSelectionInterval(Default
        ListSelectionModel.java:482)
                at javax.swing.JTable.checkLeadAnchor(JTable.java:2963)
                at javax.swing.JTable.tableRowsInserted(JTable.java:3079)
                at javax.swing.JTable.tableChanged(JTable.java:3013)
                at
        javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableMo
        del.java:280)
                at
        javax.swing.table.AbstractTableModel.fireTableRowsInserted(AbstractTa
        bleModel.java:215)
                at
        javax.swing.table.DefaultTableModel.insertRow(DefaultTableModel.java:
        349)
                at
        javax.swing.table.DefaultTableModel.addRow(DefaultTableModel.java:323
        )
                at
        javax.swing.table.DefaultTableModel.addRow(DefaultTableModel.java:334
        )
                at org.apache.axis.utils.tcpmon$Listener.<init>(tcpmon.java:1474)
                at org.apache.axis.utils.tcpmon$5.actionPerformed(tcpmon.java:431)
                at
        javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
        34)
                at
        javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
        a:2152)
                at
        javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
        .java:420)
                at
        javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
        )
                at
        javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
        istener.java:234)
                at java.awt.Component.processMouseEvent(Component.java:5463)
                at javax.swing.JComponent.processMouseEvent(JComponent.java:3052)
                at java.awt.Component.processEvent(Component.java:5228)
                at java.awt.Container.processEvent(Container.java:1961)
                at java.awt.Component.dispatchEventImpl(Component.java:3931)
                at java.awt.Container.dispatchEventImpl(Container.java:2019)
                at java.awt.Component.dispatchEvent(Component.java:3779)
                at
        java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4203
        )
                at
        java.awt.LightweightDispatcher.processMouseEvent(Container.java:3883)

                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3813)
                at java.awt.Container.dispatchEventImpl(Container.java:2005)
                at java.awt.Window.dispatchEventImpl(Window.java:1757)
                at java.awt.Component.dispatchEvent(Component.java:3779)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
                at
        java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
        read.java:234)
                at
        java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
        ad.java:163)
                at
        java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

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

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


        Steps to Reproduce (be specific):

           1. Start tcpmon by entering the command-line:

              java -classpath axis.jar org.apache.axis.utils.tcpmon

          2. Enter in some values in the fields:
              
              Listen Port# -> 9999
              Target Hostname -> www.cnn.com
              Target Port# -> 80
             
            And click Add.

          3. NPE exception thrown

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shickeysunw Shannon Hickey (Inactive)
                Reporter:
                tyao Ting-Yun Ingrid Yao (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: