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

                 Key: RIVER-224
                 URL: https://issues.apache.org/jira/browse/RIVER-224
             Project: River
          Issue Type: Bug
          Components: com_sun_jini_example
    Affects Versions: jtsk_2.1
            Reporter: Thomas Vinod Johnson
            Priority: Minor


Bugtraq ID [6380355|http://bugs.sun.com/bugdatabase/view_bug.do?bug_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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to