Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-224

Problem using browser to destroy service that supports DestroyAdmin but not JoinAdmin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • jtsk_2.1
    • River_2.1.2
    • com_sun_jini_example
    • None
    • 6380355

    Description

      Bugtraq ID 6380355
      The browser gets a NullPointerException when used to destroy a service that implements Administrable and whose administrative
      interfaces include DestroyAdmin but not JoinAdmin. The browser does succeed in destroying the service, but produces an error
      pop-up window with the title "java.lang.NullPointerException" and no text, and produces a stack trace as logging output.

      Here's sample logging output for the problem:

      Feb 2, 2006 11:28:03 AM com.sun.jini.example.browser.ServiceEditor$12 actionPerformed
      INFO: service destroy failed
      java.lang.NullPointerException
      at com.sun.jini.example.browser.ServiceEditor.cleanup(ServiceEditor.java:171)
      at com.sun.jini.example.browser.ServiceEditor$12.actionPerformed(ServiceEditor.java:393)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.sun.jini.example.browser.Browser$4.run(Browser.java:769)
      at com.sun.jini.start.AggregatePolicyProvider$6.run(AggregatePolicyProvider.java:527)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.jini.example.browser.Browser$Handler.invoke(Browser.java:761)
      at $Proxy0.actionPerformed(Unknown Source)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
      at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
      at java.awt.Component.processMouseEvent(Component.java:5554)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
      at java.awt.Component.processEvent(Component.java:5319)
      at java.awt.Container.processEvent(Container.java:2010)
      at java.awt.Component.dispatchEventImpl(Component.java:4021)
      at java.awt.Container.dispatchEventImpl(Container.java:2068)
      at java.awt.Component.dispatchEvent(Component.java:3869)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
      at java.awt.Container.dispatchEventImpl(Container.java:2054)
      at java.awt.Window.dispatchEventImpl(Window.java:1774)
      at java.awt.Component.dispatchEvent(Component.java:3869)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:275)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

      Attachments

        1. editor.diff
          3 kB
          Robert Scheifler

        Activity

          People

            rscheifler Robert Scheifler
            vinodjohnson Thomas Vinod Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: