[sip-comm-dev] NullPointerException in UriHandlerSipImpl


#1

Hi all,

I just updated to the newest revision and I had some perplexing side effects.

When I ran SC, it brought up the quick registration form, and none of my saved (SIP) accounts were recognized (no accounts under config and no contact list). I checked in ~/.sip-communicator and the XML file still has my data in it.

It also threw the following error into my log. I'm not sure what's wrong here, or if this would be related to why my SIP accounts weren't recognized? It looks like the SIP protocol didn't even load.

···

----------

java.lang.NullPointerException: Specified service reference cannot be null.
        at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:380)
        at net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.hookStoredAccounts(UriHandlerSipImpl.java:131)
        at net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.<init>(UriHandlerSipImpl.java:96)
        at net.java.sip.communicator.impl.protocol.sip.SipActivator.start(SipActivator.java:65)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1536)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
        at java.lang.Thread.run(Thread.java:619)
ERROR: Error starting reference:file:sc-bundles/protocol-sip.jar (org.osgi.framework.BundleException: Activator start error.)

----------

Any help would be appreciated. Thanks,

Alan

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

Could you please update to r4541, move aside or delete your .sip-communicator and try to reproduce the NullPointerException? With protocol.jar in an auto-start level with a number smaller than the one of the protocol implementations (including SIP), the exception in question shouldn't resurface.

If it still persists, please make your log available. With .sip-communicator out of the way, Windows should have it in %APPDATA%\SIP Communicator and Mac OS X should put it in $HOME/Library/Application Support/SIP Communicator.

Thank you,
Lubo

···

--------------------------------------------------

From: "Alan C Kelly" <akelly7@gmu.edu>

Sent: Tuesday, September 30, 2008 5:29 PM
To: <dev@sip-communicator.dev.java.net>
Subject: [sip-comm-dev] NullPointerException in UriHandlerSipImpl

Hi all,

I just updated to the newest revision and I had some perplexing side effects.

When I ran SC, it brought up the quick registration form, and none of my saved (SIP) accounts were recognized (no accounts under config and no contact list). I checked in ~/.sip-communicator and the XML file still has my data in it.

It also threw the following error into my log. I'm not sure what's wrong here, or if this would be related to why my SIP accounts weren't recognized? It looks like the SIP protocol didn't even load.

----------

java.lang.NullPointerException: Specified service reference cannot be null.
       at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:380)
       at net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.hookStoredAccounts(UriHandlerSipImpl.java:131)
       at net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.<init>(UriHandlerSipImpl.java:96)
       at net.java.sip.communicator.impl.protocol.sip.SipActivator.start(SipActivator.java:65)
       at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
       at org.apache.felix.framework.Felix._startBundle(Felix.java:1536)
       at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
       at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
       at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
       at java.lang.Thread.run(Thread.java:619)
ERROR: Error starting reference:file:sc-bundles/protocol-sip.jar (org.osgi.framework.BundleException: Activator start error.)

----------

Any help would be appreciated. Thanks,

Alan

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

Hi Lubo,

That seems to have fixed it! Thanks for explaining that.

Alan

···

----- Original Message -----

From: Lubomir Marinov <lubomir.marinov@gmail.com>

Date: Tuesday, September 30, 2008 12:10 pm
Subject: Re: [sip-comm-dev] NullPointerException in UriHandlerSipImpl

Hey Alan,

Could you please update to r4541, move aside or delete your
.sip-communicator and try to reproduce the NullPointerException?
With
protocol.jar in an auto-start level with a number smaller than the
one of
the protocol implementations (including SIP), the exception in
question
shouldn't resurface.

If it still persists, please make your log available. With .sip-
communicator
out of the way, Windows should have it in %APPDATA%\SIP
Communicator and Mac
OS X should put it in $HOME/Library/Application Support/SIP
Communicator.
Thank you,
Lubo

--------------------------------------------------
From: "Alan C Kelly" <akelly7@gmu.edu>
Sent: Tuesday, September 30, 2008 5:29 PM
To: <dev@sip-communicator.dev.java.net>
Subject: [sip-comm-dev] NullPointerException in UriHandlerSipImpl

> Hi all,
>
> I just updated to the newest revision and I had some perplexing
side
> effects.
>
> When I ran SC, it brought up the quick registration form, and
none of my
> saved (SIP) accounts were recognized (no accounts under config
and no
> contact list). I checked in ~/.sip-communicator and the XML file
still has
> my data in it.
>
> It also threw the following error into my log. I'm not sure
what's wrong
> here, or if this would be related to why my SIP accounts weren't
> recognized? It looks like the SIP protocol didn't even load.
>
> ----------
>
> java.lang.NullPointerException: Specified service reference
cannot be
> null.
> at
>
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:380)> at
>
net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.hookStoredAccounts(UriHandlerSipImpl.java:131)> at
>
net.java.sip.communicator.impl.protocol.sip.UriHandlerSipImpl.<init>(UriHandlerSipImpl.java:96)> at
>
net.java.sip.communicator.impl.protocol.sip.SipActivator.start(SipActivator.java:65)> at
>
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)> at org.apache.felix.framework.Felix._startBundle(Felix.java:1536)
> at
org.apache.felix.framework.Felix.startBundle(Felix.java:1470)>
  at
>
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)> at
>
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)> at java.lang.Thread.run(Thread.java:619)
> ERROR: Error starting reference:file:sc-bundles/protocol-sip.jar
> (org.osgi.framework.BundleException: Activator start error.)
>
> ----------
>
> Any help would be appreciated. Thanks,
>
> Alan
>
>
> -----------------------------------------------------------------
----
> 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

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