[sip-comm-dev] NPE when deleting a SIP account


#1

All,

during my tests I deleted a (registrarless) SIP account and I got
the following NPE. Thus the account was removed from the config
files but not from internal structures. Only after restarting
SC the account was really gone.

I have no contact groups or registered any contacts.

Regards,
Werner

Here the console log:

      [java] java.lang.NullPointerException
      [java] at net.java.sip.communicator.impl.contactlist.MclStorageManager.createProtoContactGroupNode(MclStorageManager.java:1054)
      [java] at net.java.sip.communicator.impl.contactlist.MclStorageManager.createMetaContactGroupNode(MclStorageManager.java:1144)
      [java] at net.java.sip.communicator.impl.contactlist.MclStorageManager.metaContactGroupModified(MclStorageManager.java:1774)
      [java] at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.fireMetaContactGroupEvent(MetaContactListServiceImpl.java:2924)
      [java] at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.removeContactGroupFromMetaContactGroup(MetaContactListServiceImpl.java:1197)
      [java] at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.handleProviderRemoved(MetaContactListServiceImpl.java:1706)
      [java] at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.serviceChanged(MetaContactListServiceImpl.java:2015)
      [java] at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765)
      [java] at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623)
      [java] at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554)
      [java] at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3525)
      [java] at org.apache.felix.framework.Felix.access$000(Felix.java:36)
      [java] at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:593)
      [java] at org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:435)
      [java] at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:86)
      [java] at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:99)
      [java] at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.uninstallAccount(ProtocolProviderFactory.java:380)
      [java] at net.java.sip.communicator.impl.gui.main.account.AccountsConfigurationPanel$AccountPanel.actionPerformed(AccountsConfigurationPanel.java:357)
      [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      [java] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      [java] at java.awt.Component.processMouseEvent(Component.java:6041)
      [java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
      [java] at java.awt.Component.processEvent(Component.java:5806)
      [java] at java.awt.Container.processEvent(Container.java:2058)
      [java] at java.awt.Component.dispatchEventImpl(Component.java:4413)
      [java] at java.awt.Container.dispatchEventImpl(Container.java:2116)
      [java] at java.awt.Component.dispatchEvent(Component.java:4243)
      [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
      [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
      [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
      [java] at java.awt.Container.dispatchEventImpl(Container.java:2102)
      [java] at java.awt.Window.dispatchEventImpl(Window.java:2440)
      [java] at java.awt.Component.dispatchEvent(Component.java:4243)
      [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      [java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
      [java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
      [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
      [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
      [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
      [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
      [java] ERROR: EventDispatcher: Error during dispatch. (java.lang.NullPointerException)

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hey Werner,

I am currently rummaging through my backlog and came across this
message. Are you still having the problem? If yes then could you please
create a ticket for it?

Thanks
Emil

Werner Dittmann wrote:

···

All,

during my tests I deleted a (registrarless) SIP account and I got
the following NPE. Thus the account was removed from the config
files but not from internal structures. Only after restarting
SC the account was really gone.

I have no contact groups or registered any contacts.

Regards,
Werner

Here the console log:

      [java] java.lang.NullPointerException
      [java] at net.java.sip.communicator.impl.contactlist.MclStorageManager.createProtoContactGroupNode(MclStorageManager.java:1054)
      [java] at net.java.sip.communicator.impl.contactlist.MclStorageManager.createMetaContactGroupNode(MclStorageManager.java:1144)
      [java] at net.java.sip.communicator.impl.contactlist.MclStorageManager.metaContactGroupModified(MclStorageManager.java:1774)
      [java] at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.fireMetaContactGroupEvent(MetaContactListServiceImpl.java:2924)
      [java] at
net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.removeContactGroupFromMetaContactGroup(MetaContactListServiceImpl.java:1197)
      [java] at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.handleProviderRemoved(MetaContactListServiceImpl.java:1706)
      [java] at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.serviceChanged(MetaContactListServiceImpl.java:2015)
      [java] at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765)
      [java] at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623)
      [java] at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554)
      [java] at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3525)
      [java] at org.apache.felix.framework.Felix.access$000(Felix.java:36)
      [java] at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:593)
      [java] at org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:435)
      [java] at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:86)
      [java] at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:99)
      [java] at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.uninstallAccount(ProtocolProviderFactory.java:380)
      [java] at net.java.sip.communicator.impl.gui.main.account.AccountsConfigurationPanel$AccountPanel.actionPerformed(AccountsConfigurationPanel.java:357)
      [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      [java] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      [java] at java.awt.Component.processMouseEvent(Component.java:6041)
      [java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
      [java] at java.awt.Component.processEvent(Component.java:5806)
      [java] at java.awt.Container.processEvent(Container.java:2058)
      [java] at java.awt.Component.dispatchEventImpl(Component.java:4413)
      [java] at java.awt.Container.dispatchEventImpl(Container.java:2116)
      [java] at java.awt.Component.dispatchEvent(Component.java:4243)
      [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
      [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
      [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
      [java] at java.awt.Container.dispatchEventImpl(Container.java:2102)
      [java] at java.awt.Window.dispatchEventImpl(Window.java:2440)
      [java] at java.awt.Component.dispatchEvent(Component.java:4243)
      [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      [java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
      [java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
      [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
      [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
      [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
      [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
      [java] ERROR: EventDispatcher: Error during dispatch. (java.lang.NullPointerException)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net