7 Replies Latest reply on Mar 24, 2005 11:40 AM by Raymond Gardner

    Is tcpmon, which comes with the JBoss tutorial, the correct

    Raymond Gardner Newbie

      When I startup tcpmon, it does not look anything like the tcpmon screen shot shown in Chapter 5 Section 5.4. Figure 5.1. (I'm not talking about the differences between Mac and Windows since the screen shot is obviously from a Mac.)

      Perhaps tcpmon looks differently once it captures some network traffic, but I cannot get tcpmon to work so I have no idea if my version is correct or not.

      Any help will be greatly appreciated!

        • 1. Re: Is tcpmon, which comes with the JBoss tutorial, the corr
          Norman Richards Master

          I just tried it with 4.0.1sp1 and it looks right. You should get a configuration screen where you enter the port number. When you press add you should see a tab for your monitor. When you click on the tab, you will see the connection screen. If that's not what you get, perhaps you can describe what you do see.

          If tcpmon is difficult for you, try turning up the log levels on org.jboss.axis. Either debug or trace level output should give you all the same information that tcpmon would give you, with a lot less configuration. When I update the getting started guide I will probably change the instructions to suggest this since it doesn't require any configuration beyond the log4j.xml file.

          • 2. Re: Is tcpmon, which comes with the JBoss tutorial, the corr
            Raymond Gardner Newbie

            Thanks for the response!

            I get the configuration screen. I fill in the 'Listen Port #' field to 7070 as instructed in the guide. But, when I click the 'Add' button nothing happens to the Swing GUI and I get the following exception in my startup command-window:


            ant -f jboss-build.xml tcpmon
            Buildfile: jboss-build.xml

            tcpmon:
            [java] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            [java] at org.apache.axis.utils.tcpmon$8.valueChanged(tcpmon.java:1590)
            [java] at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
            [java] at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
            [java] at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
            [java] at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:408)
            [java] at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:417)
            [java] at javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(DefaultListSelectionModel.java:510)
            [java] at javax.swing.DefaultListSelectionModel.removeSelectionInterval(DefaultListSelectionModel.java:482)
            [java] at javax.swing.JTable.checkLeadAnchor(JTable.java:2965)
            [java] at javax.swing.JTable.tableRowsInserted(JTable.java:3081)
            [java] at javax.swing.JTable.tableChanged(JTable.java:3015)
            [java] at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280)
            [java] at javax.swing.table.AbstractTableModel.fireTableRowsInserted(AbstractTableModel.java:215)
            [java] at javax.swing.table.DefaultTableModel.insertRow(DefaultTableModel.java:349)
            [java] at javax.swing.table.DefaultTableModel.addRow(DefaultTableModel.java:323)
            [java] at javax.swing.table.DefaultTableModel.addRow(DefaultTableModel.java:334)
            [java] at org.apache.axis.utils.tcpmon$Listener.<init>(tcpmon.java:1643)
            [java] at org.apache.axis.utils.tcpmon$5.actionPerformed(tcpmon.java:428)
            [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
            [java] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
            [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
            [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
            [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
            [java] at java.awt.Component.processMouseEvent(Component.java:5488)
            [java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
            [java] at java.awt.Component.processEvent(Component.java:5253)
            [java] at java.awt.Container.processEvent(Container.java:1966)
            [java] at java.awt.Component.dispatchEventImpl(Component.java:3955)
            [java] at java.awt.Container.dispatchEventImpl(Container.java:2024)
            [java] at java.awt.Component.dispatchEvent(Component.java:3803)
            [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
            [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
            [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
            [java] at java.awt.Container.dispatchEventImpl(Container.java:2010)
            [java] at java.awt.Window.dispatchEventImpl(Window.java:1766)
            [java] at java.awt.Component.dispatchEvent(Component.java:3803)
            [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
            [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
            [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


            I'm not sure how to tell but I do not think I'm using 4.0.1sp1. I believe I am only using 4.0.1. (Is there a difference?) However, I did download and install my JBoss instance earlier this week. Is there a way to determine if I'm using 4.0.1sp1? Here is my build information that gets printed during startup:

            [Server] Release ID: JBoss [Zion] 4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)

            By the way, I have tried turning up the log level on org.jboss.axis. I set it to DEBUG. (However, at the same time I also turned on org.jboss.webservice log level to DEBUG. Not sure if that caused a problem or not.) But, I did not see any extra output when I ran the WSClient. (I think I'll try it again without org.jboss.webservice. Plus, I'll try both DEBUG and TRACE this time.)

            • 3. Re: Is tcpmon, which comes with the JBoss tutorial, the corr
              Norman Richards Master

              I've never seen that. I think I used RC1 for the getting started guide, but I can't imagine something like that suddenly failing in 4.0.1. Either way, if you are on 4.0.1, you should probably go to SP1. Without downloading it and trying it, it's hard to say.

              Keep in mind that the console appender limits to INFO no matter what you set the category to. You will need to set the console appender level appropriately to see it on the screen or look to the server.log file, which isn't limited.

              • 4. Re: Is tcpmon, which comes with the JBoss tutorial, the corr
                Raymond Gardner Newbie

                I upgraded to 4.0.1sp1 but I still get the same exception and behavior when using tcpmon. (Same as noted in a previous post on this thread.)

                I'd like to see it working and I'm sure it is just a small configuration issue that I don't have correct. (Although I have followed the Getting Started guide well, I just can't figure out what is wrong.)

                I can run WSClient just fine when I point it to port 8080.

                A previous post mentioned an RC1 version of the Getting Started guide. Where can I find that?

                • 5. Re: Is tcpmon, which comes with the JBoss tutorial, the corr
                  Raymond Gardner Newbie

                  I also changed the Consol Appender to DEBUG and then I was able to see the webservices output.

                  But, this extra output has not helped me figure out why tcpmon is not working.

                  Thanks for any help!

                  • 6. Re: Is tcpmon, which comes with the JBoss tutorial, the corr
                    tapio lounevirta Newbie

                    I have same problem with TCPmon. Following issue describe that error. Problem seems to be involved with JDK 1.5.x.


                    [jira] Created: (AXIS-1800) tcpmon AWT-EventQueue-0 bug in JDK1.5

                    dre pac (JIRA)
                    Wed, 02 Feb 2005 12:19:08 -0800

                    tcpmon AWT-EventQueue-0 bug in JDK1.5
                    -------------------------------------

                    Key: AXIS-1800
                    URL: http://issues.apache.org/jira/browse/AXIS-1800
                    Project: Axis
                    Type: Bug
                    Environment: JBoss 4.0.1 running on JDK 1.5.0_01
                    Reporter: dre pac


                    After running tcpmon ,when trying to push the "add" button to listen on port
                    8070 ,for example, I get a AWT-EventQueue-0 NullPointException instead of a new
                    tab for the selected port. This problem does not seem to occur when using JDK
                    1.4.2_07 which I am using as a temporary solution.
                    I have been trying to google this issue but not many people seem to have this
                    problem except those who tried ruuning tcpmon with JDK1.5. I find it really
                    strange since both axis and JDK1.5 have been around for quite a while now, and
                    what's even stranger is that not many people seem to use this combination.

                    below is the full stacktrace, please give us some feedback on when this issue
                    will be fixed, thanks.


                    [java] 'org.apache.axis.utils.tcpmon'
                    [java]
                    [java] The ' characters around the executable and arguments are
                    [java] not part of the command.
                    [java] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptio
                    n
                    [java] at org.apache.axis.utils.tcpmon$8.valueChanged(tcpmon.java:1590)

                    [java] at javax.swing.DefaultListSelectionModel.fireValueChanged(Defaul
                    tListSelectionModel.java:187)
                    [java] at javax.swing.DefaultListSelectionModel.fireValueChanged(Defaul
                    tListSelectionModel.java:167)
                    [java] at javax.swing.DefaultListSelectionModel.fireValueChanged(Defaul
                    tListSelectionModel.java:214)
                    [java] at javax.swing.DefaultListSelectionModel.changeSelection(Default
                    ListSelectionModel.java:408)
                    [java] at javax.swing.DefaultListSelectionModel.changeSelection(Default
                    ListSelectionModel.java:417)
                    [java] at javax.swing.DefaultListSelectionModel.removeSelectionInterval
                    Impl(DefaultListSelectionModel.java:510)
                    [java] at javax.swing.DefaultListSelectionModel.removeSelectionInterval
                    (DefaultListSelectionModel.java:482)
                    [java] at javax.swing.JTable.checkLeadAnchor(JTable.java:2965)
                    [java] at javax.swing.JTable.tableRowsInserted(JTable.java:3081)
                    [java] at javax.swing.JTable.tableChanged(JTable.java:3015)
                    [java] at javax.swing.table.AbstractTableModel.fireTableChanged(Abstrac
                    tTableModel.java:280)
                    [java] at javax.swing.table.AbstractTableModel.fireTableRowsInserted(Ab
                    stractTableModel.java:215)
                    [java] at javax.swing.table.DefaultTableModel.insertRow(DefaultTableMod
                    el.java:349)
                    [java] at javax.swing.table.DefaultTableModel.addRow(DefaultTableModel.
                    java:323)
                    [java] at javax.swing.table.DefaultTableModel.addRow(DefaultTableModel.
                    java:334)
                    [java] at org.apache.axis.utils.tcpmon$Listener.<init>(tcpmon.java:1643
                    )
                    [java] at org.apache.axis.utils.tcpmon$5.actionPerformed(tcpmon.java:42
                    8)
                    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton
                    .java:1849)
                    [java] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractBu
                    tton.java:2169)
                    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultBut
                    tonModel.java:420)
                    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.
                    java:258)
                    [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Basi
                    cButtonListener.java:234)
                    [java] at java.awt.Component.processMouseEvent(Component.java:5488)
                    [java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3093
                    )
                    [java] at java.awt.Component.processEvent(Component.java:5253)
                    [java] at java.awt.Container.processEvent(Container.java:1966)
                    [java] at java.awt.Component.dispatchEventImpl(Component.java:3955)
                    [java] at java.awt.Container.dispatchEventImpl(Container.java:2024)
                    [java] at java.awt.Component.dispatchEvent(Component.java:3803)
                    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.j
                    ava:4212)
                    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.ja
                    va:3892)
                    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3
                    822)
                    [java] at java.awt.Container.dispatchEventImpl(Container.java:2010)
                    [java] at java.awt.Window.dispatchEventImpl(Window.java:1766)
                    [java] at java.awt.Component.dispatchEvent(Component.java:3803)
                    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
                    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
                    spatchThread.java:234)
                    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
                    atchThread.java:163)
                    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
                    ava:157)
                    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
                    ava:149)
                    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:110
                    )



                    --
                    This message is automatically generated by JIRA.
                    -
                    If you think it was sent incorrectly contact one of the administrators:
                    http://issues.apache.org/jira/secure/Administrators.jspa
                    -
                    If you want more information on JIRA, or have a bug to report see:
                    http://www.atlassian.com/software/jira




                    • 7. Re: Is tcpmon, which comes with the JBoss tutorial, the corr
                      Raymond Gardner Newbie

                      I too am using JDK 1.5. I prefer to keep using JDK 1.5 but maybe I'll temporarily switch to JDK 1.4 just to see this tool work.

                      Thanks for the info!