[sip-comm-dev] Some (strange) exceptions during SC testing


#1

During SC testing I sometime get some strange exception (see below).

Test is done with current "leading edge SC technology" :-), i.e. latest
SVN revisions.

The very first exception is really strange because it happens even the
functions perform a try/catch for exactly this exception. Thus some JMF
functions throws an exception but the calling SC functions does not get
it in the catch block which seem suspicious to me. Note: the linenumbers
do not necessarily match with the current SVN because I added debug
statments in my copy here.

The other excpetions are SIP related and occure during SC shutdown.

Regards,
Werner

The Exceptions:

     [java] javax.media.NotRealizedError: Cannot get visual component on an unrealized player
     [java] at com.sun.media.BasicPlayer.getVisualComponent(BasicPlayer.java:491)
     [java] at com.sun.media.MediaPlayer.getVisualComponent(MediaPlayer.java:48)
     [java] at net.java.sip.communicator.impl.media.CallSessionImpl.getVisualComponent(CallSessionImpl.java:3142)

     [java] at net.java.sip.communicator.impl.media.CallSessionImpl.getVisualComponents(CallSessionImpl.java:3116)

     [java] at net.java.sip.communicator.impl.protocol.sip.OperationSetVideoTelephonySipImpl.getVisualComponents(OperationSetVideoTelephonySipImpl.java:97)

     [java] BasicTrackControl:prefetchTrack():96 3 bm = com.sun.media.BasicFilterModule@1fda2b6d

     [java] BasicTrackControl:prefetchTrack():96 3 bm = com.sun.media.BasicFilterModule@2c591171

     [java] BasicTrackControl:prefetchTrack():96 3 bm = com.sun.media.BasicFilterModule@b882876

     [java] at net.java.sip.communicator.impl.gui.main.call.CallParticipantPanel.handleVideoEvent(CallParticipantPanel.java:582)

     [java] at net.java.sip.communicator.impl.gui.main.call.CallParticipantPanel.access$200(CallParticipantPanel.java:32)

     [java] at net.java.sip.communicator.impl.gui.main.call.CallParticipantPanel$4.run(CallParticipantPanel.java:558)

     [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
     [java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

     [java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

     [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

     [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
     [java] BasicTrackControl:prefetchTrack():96 2 bm = com.sun.media.BasicFilterModule@3ba59727

     [java] BasicTrackControl:prefetchTrack():96 2 bm = com.sun.media.BasicRendererModule@7466a008

     [java] BasicRendererModule.doPrefetch:155 Render : true
     [java] Render buffer size: 3200
     [java] BasicRenderModule.doPrefetch:159 Render : com.sun.media.renderer.audio.JavaSoundRenderer@d9438de

     [java] ERROR: Error stopping bundle. (java.lang.NullPointerException)
     [java] java.lang.NullPointerException
     [java] at gov.nist.javax.sip.stack.SIPClientTransaction.startTransactionTimer(SIPClientTransaction.java:1322)

     [java] at gov.nist.javax.sip.stack.SIPTransaction.sendMessage(SIPTransaction.java:741)

     [java] at gov.nist.javax.sip.stack.SIPClientTransaction.sendMessage(SIPClientTransaction.java:486)

     [java] at gov.nist.javax.sip.stack.SIPClientTransaction.sendRequest(SIPClientTransaction.java:986)

     [java] at net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.unregister(SipRegistrarConnection.java:675)

     [java] at net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.unregister(SipRegistrarConnection.java:556)

     [java] at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.unregister(ProtocolProviderServiceSipImpl.java:339)

     [java] at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl$ShutdownThread.run(ProtocolProviderServiceSipImpl.java:826)

     [java] at java.lang.Thread.run(Thread.java:619)
     [java] at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.shutdown(ProtocolProviderServiceSipImpl.java:801)

     [java] at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.stop(ProtocolProviderFactory.java:788)

     [java] at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.stop(ProtocolProviderFactory.java:765)

     [java] at net.java.sip.communicator.impl.protocol.sip.SipActivator.stop(SipActivator.java:213)

     [java] at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:611)

     [java] at org.apache.felix.framework.Felix._stopBundle(Felix.java:2047)
     [java] at org.apache.felix.framework.Felix.stopBundle(Felix.java:2004)
     [java] at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1188)
     [java] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)
     [java] at java.lang.Thread.run(Thread.java:619)
     [java] ERROR: EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: Invalid BundleContext.)

     [java] java.lang.IllegalStateException: Invalid BundleContext.
     [java] at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:393)

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

     [java] at net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.serviceChanged(UriHandlerSipImpl.java:359)

     [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:3566)
     [java] at org.apache.felix.framework.Felix.access$200(Felix.java:37)
     [java] at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:833)
     [java] at org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559)

     [java] at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:96)

     [java] at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:118)

     [java] at org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:135)

     [java] at org.apache.felix.framework.Felix._stopBundle(Felix.java:2068)
     [java] at org.apache.felix.framework.Felix.stopBundle(Felix.java:2004)
     [java] at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1188)
     [java] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)
     [java] at java.lang.Thread.run(Thread.java:619)
     [java] ERROR: EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: Invalid BundleContext.)

     [java] java.lang.IllegalStateException: Invalid BundleContext.
     [java] at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:393)

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

     [java] at net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.serviceChanged(UriHandlerSipImpl.java:359)

     [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:3566)
     [java] at org.apache.felix.framework.Felix.access$200(Felix.java:37)
     [java] at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:833)
     [java] at org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559)

     [java] at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:96)

     [java] at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:118)

     [java] at org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:135)

     [java] at org.apache.felix.framework.Felix._stopBundle(Felix.java:2068)
     [java] at org.apache.felix.framework.Felix.stopBundle(Felix.java:2004)
     [java] at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1188)
     [java] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)
     [java] at java.lang.Thread.run(Thread.java:619)
     [java] ERROR: EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: Invalid BundleContext.)

     [java] java.lang.IllegalStateException: Invalid BundleContext.
     [java] at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:393)

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

     [java] at net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.serviceChanged(UriHandlerSipImpl.java:359)

     [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:3566)
     [java] at org.apache.felix.framework.Felix.access$200(Felix.java:37)
     [java] at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:833)
     [java] at org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559)

     [java] at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:96)

     [java] at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:118)

     [java] at org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:135)

     [java] at org.apache.felix.framework.Felix._stopBundle(Felix.java:2068)
     [java] at org.apache.felix.framework.Felix.stopBundle(Felix.java:2004)
     [java] at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1188)
     [java] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)
     [java] at java.lang.Thread.run(Thread.java:619)
     [java] ERROR: Error stopping reference:file:sc-bundles/protocol-sip.jar (org.osgi.framework.BundleException: Activator stop error in bundle [13].)

     [java] java.lang.NullPointerException
     [java] at gov.nist.javax.sip.stack.SIPClientTransaction.startTransactionTimer(SIPClientTransaction.java:1322)

     [java] at gov.nist.javax.sip.stack.SIPTransaction.sendMessage(SIPTransaction.java:741)

     [java] at gov.nist.javax.sip.stack.SIPClientTransaction.sendMessage(SIPClientTransaction.java:486)

     [java] at gov.nist.javax.sip.stack.SIPClientTransaction.sendRequest(SIPClientTransaction.java:986)
     [java] at net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.unregister(SipRegistrarConnection.java:675)
     [java] at net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.unregister(SipRegistrarConnection.java:556)
     [java] at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.unregister(ProtocolProviderServiceSipImpl.java:339)
     [java] at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl$ShutdownThread.run(ProtocolProviderServiceSipImpl.java:826)
     [java] at java.lang.Thread.run(Thread.java:619)
     [java] at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.shutdown(ProtocolProviderServiceSipImpl.java:801)
     [java] at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.stop(ProtocolProviderFactory.java:788)
     [java] at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.stop(ProtocolProviderFactory.java:765)
     [java] at net.java.sip.communicator.impl.protocol.sip.SipActivator.stop(SipActivator.java:213)
     [java] at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:611)
     [java] at org.apache.felix.framework.Felix._stopBundle(Felix.java:2047)
     [java] at org.apache.felix.framework.Felix.stopBundle(Felix.java:2004)
     [java] at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1188)
     [java] at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)
     [java] at java.lang.Thread.run(Thread.java:619)

···

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