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

-interval=0 is accepted and jconsole doesn't update window content at all

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 8
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b106
    • CPU:
      generic
    • OS:
      generic

      Description

      "-interval=0" command line option is accepted. In this case jconsole doesn't update content at all. It seems that such functionality is useless for an ordinary user.
      Also, negative numbers are accepted and the following exception is printed:

      Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Non-positive period.
              at java.util.Timer.schedule(Timer.java:221)
              at sun.tools.jconsole.VMPanel.startUpdateTimer(VMPanel.java:442)
              at sun.tools.jconsole.VMPanel.propertyChange(VMPanel.java:321)
              at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:75)
              at javax.swing.event.SwingPropertyChangeSupport$1.run(SwingPropertyChangeSupport.java:80)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                egahlin Erik Gahlin
                Reporter:
                kshiroko Kirill Shirokov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: