[sip-comm-dev] Exception when closing Sip-Comminucator


#1

Hi devs,

I just want to report one exception which is through each time I close the application using "File->Quit" (this exception is a low priority bug since I do not think it disturb the well behavior of Sip-Communicator).
The error came from the GuiActivator.bundleContext.getService(event.getServiceReference()) where the event.getServiceReference() returns a net.java.sip.communicator.service.gui.UIService object.
Below, you will find the exception. As you can see the GuiActivator is stopped before the exception is thrown.

     [java] 18:57:35.144 INFO: impl.gui.GuiActivator.stop().116 UI Service ...[STOPPED]
     [java] java.lang.IllegalStateException: Invalid BundleContext.
     [java] at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:552)
     [java] at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:475)
     [java] at net.java.sip.communicator.impl.gui.main.contactlist.addcontact.SelectAccountPanel.serviceChanged(SelectAccountPanel.java:198)
     [java] at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:712)
     [java] at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:570)
     [java] at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:502)
     [java] at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:2843)
     [java] at org.apache.felix.framework.Felix.access$100(Felix.java:36)
     [java] at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:242)
     [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 org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:119)
     [java] at org.apache.felix.framework.Felix._stopBundle(Felix.java:1601)
     [java] at org.apache.felix.framework.Felix.stopBundle(Felix.java:1524)
     [java] at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:823)
     [java] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
     [java] at java.lang.Thread.run(Thread.java:595)

Hope this helps,
Vincent


#2

Hello Vincent,

Thanks for the report. Do you think you could please log an issue over this?

Thanks
Emil

Vincent Lucas wrote:

···

Hi devs,

I just want to report one exception which is through each time I close the application using "File->Quit" (this exception is a low priority bug since I do not think it disturb the well behavior of Sip-Communicator).
The error came from the GuiActivator.bundleContext.getService(event.getServiceReference()) where the event.getServiceReference() returns a net.java.sip.communicator.service.gui.UIService object.
Below, you will find the exception. As you can see the GuiActivator is stopped before the exception is thrown.

     [java] 18:57:35.144 INFO: impl.gui.GuiActivator.stop().116 UI Service ...[STOPPED]
     [java] java.lang.IllegalStateException: Invalid BundleContext.
     [java] at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:552)
     [java] at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:475)
     [java] at net.java.sip.communicator.impl.gui.main.contactlist.addcontact.SelectAccountPanel.serviceChanged(SelectAccountPanel.java:198)
     [java] at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:712)
     [java] at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:570)
     [java] at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:502)
     [java] at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:2843)
     [java] at org.apache.felix.framework.Felix.access$100(Felix.java:36)
     [java] at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:242)
     [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 org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:119)
     [java] at org.apache.felix.framework.Felix._stopBundle(Felix.java:1601)
     [java] at org.apache.felix.framework.Felix.stopBundle(Felix.java:1524)
     [java] at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:823)
     [java] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
     [java] at java.lang.Thread.run(Thread.java:595)

Hope this helps,
Vincent

---------------------------------------------------------------------
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


#3

Hello Emil,

The issue is created with number 334.

Cheers,
Vincent

Emil Ivov wrote:

···

Hello Vincent,

Thanks for the report. Do you think you could please log an issue over this?

Thanks
Emil

Vincent Lucas wrote:

Hi devs,

I just want to report one exception which is through each time I close the application using "File->Quit" (this exception is a low priority bug since I do not think it disturb the well behavior of Sip-Communicator).
The error came from the GuiActivator.bundleContext.getService(event.getServiceReference()) where the event.getServiceReference() returns a net.java.sip.communicator.service.gui.UIService object.
Below, you will find the exception. As you can see the GuiActivator is stopped before the exception is thrown.

     [java] 18:57:35.144 INFO: impl.gui.GuiActivator.stop().116 UI Service ...[STOPPED]
     [java] java.lang.IllegalStateException: Invalid BundleContext.
     [java] at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:552)

     [java] at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:475)

     [java] at net.java.sip.communicator.impl.gui.main.contactlist.addcontact.SelectAccountPanel.serviceChanged(SelectAccountPanel.java:198)

     [java] at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:712)

     [java] at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:570)

     [java] at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:502)

     [java] at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:2843)
     [java] at org.apache.felix.framework.Felix.access$100(Felix.java:36)
     [java] at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:242)
     [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 org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:119)

     [java] at org.apache.felix.framework.Felix._stopBundle(Felix.java:1601)
     [java] at org.apache.felix.framework.Felix.stopBundle(Felix.java:1524)
     [java] at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:823)
     [java] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256)
     [java] at java.lang.Thread.run(Thread.java:595)

Hope this helps,
Vincent

---------------------------------------------------------------------
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