BezMan / de-tiny-sip

Automatically exported from code.google.com/p/de-tiny-sip
0 stars 0 forks source link

Error on SIP registration #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I get the following error when i run the program:

11-12 11:28:45.030: W/System.err(30542): java.lang.NullPointerException
11-12 11:28:45.030: W/System.err(30542):    at 
de.tinysip.sip.SipManager.registerProfile(SipManager.java:116)
11-12 11:28:45.030: W/System.err(30542):    at 
de.tinysip.sipdemo.TinySipDemoActivity.startSipRegistration(TinySipDemoActivity.
java:234)
11-12 11:28:45.030: W/System.err(30542):    at 
de.tinysip.sipdemo.TinySipDemoActivity.onCreate(TinySipDemoActivity.java:102)
11-12 11:28:45.030: W/System.err(30542):    at 
android.app.Activity.performCreate(Activity.java:5008)
11-12 11:28:45.030: W/System.err(30542):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
11-12 11:28:45.030: W/System.err(30542):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
11-12 11:28:45.038: W/System.err(30542):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
11-12 11:28:45.038: W/System.err(30542):    at 
android.app.ActivityThread.access$600(ActivityThread.java:130)
11-12 11:28:45.038: W/System.err(30542):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
11-12 11:28:45.038: W/System.err(30542):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-12 11:28:45.038: W/System.err(30542):    at 
android.os.Looper.loop(Looper.java:137)
11-12 11:28:45.038: W/System.err(30542):    at 
android.app.ActivityThread.main(ActivityThread.java:4745)
11-12 11:28:45.038: W/System.err(30542):    at 
java.lang.reflect.Method.invokeNative(Native Method)
11-12 11:28:45.038: W/System.err(30542):    at 
java.lang.reflect.Method.invoke(Method.java:511)
11-12 11:28:45.038: W/System.err(30542):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
11-12 11:28:45.038: W/System.err(30542):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
11-12 11:28:45.038: W/System.err(30542):    at 
dalvik.system.NativeStart.main(Native Method)

I have set up all the details in the settingsprovider.java to my server, yet 
still get this error.

Original issue reported on code.google.com by crysi...@googlemail.com on 12 Nov 2012 at 9:34

GoogleCodeExporter commented 8 years ago
Looking into this a bit further, I added a stack trace to the constructor on 
the SipManager, as it didn't seem to be initialising the sipMessageHandler 
correctly, and I got this error:

11-12 11:42:08.444: W/System.err(30736): tinysip.sip.PeerUnavailableException: 
The Peer SIP Stack: gov.nist.tinysip.sip.SipStackImpl could not be 
instantiated. Ensure the Path Name has been set.
11-12 11:42:08.444: W/System.err(30736):    at 
tinysip.sip.SipFactory.createStack(SipFactory.java:325)
11-12 11:42:08.444: W/System.err(30736):    at 
tinysip.sip.SipFactory.createSipStack(SipFactory.java:153)
11-12 11:42:08.444: W/System.err(30736):    at 
de.tinysip.sip.SipMessageHandler.<init>(SipMessageHandler.java:119)
11-12 11:42:08.444: W/System.err(30736):    at 
de.tinysip.sip.SipMessageHandler.createInstance(SipMessageHandler.java:158)
11-12 11:42:08.444: W/System.err(30736):    at 
de.tinysip.sip.SipManager.<init>(SipManager.java:74)
11-12 11:42:08.444: W/System.err(30736):    at 
de.tinysip.sip.SipManager.createInstance(SipManager.java:94)
11-12 11:42:08.444: W/System.err(30736):    at 
de.tinysip.sipdemo.TinySipDemoActivity.startSipRegistration(TinySipDemoActivity.
java:228)
11-12 11:42:08.444: W/System.err(30736):    at 
de.tinysip.sipdemo.TinySipDemoActivity.onCreate(TinySipDemoActivity.java:102)
11-12 11:42:08.444: W/System.err(30736):    at 
android.app.Activity.performCreate(Activity.java:5008)
11-12 11:42:08.444: W/System.err(30736):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
11-12 11:42:08.444: W/System.err(30736):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
11-12 11:42:08.444: W/System.err(30736):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
11-12 11:42:08.444: W/System.err(30736):    at 
android.app.ActivityThread.access$600(ActivityThread.java:130)
11-12 11:42:08.444: W/System.err(30736):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
11-12 11:42:08.444: W/System.err(30736):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-12 11:42:08.444: W/System.err(30736):    at 
android.os.Looper.loop(Looper.java:137)
11-12 11:42:08.444: W/System.err(30736):    at 
android.app.ActivityThread.main(ActivityThread.java:4745)
11-12 11:42:08.444: W/System.err(30736):    at 
java.lang.reflect.Method.invokeNative(Native Method)
11-12 11:42:08.444: W/System.err(30736):    at 
java.lang.reflect.Method.invoke(Method.java:511)
11-12 11:42:08.444: W/System.err(30736):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
11-12 11:42:08.444: W/System.err(30736):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
11-12 11:42:08.444: W/System.err(30736):    at 
dalvik.system.NativeStart.main(Native Method)
11-12 11:42:08.444: W/System.err(30736): Caused by: 
java.lang.ClassNotFoundException: gov.nist.tinysip.sip.SipStackImpl
11-12 11:42:08.444: W/System.err(30736):    at 
java.lang.Class.classForName(Native Method)
11-12 11:42:08.444: W/System.err(30736):    at 
java.lang.Class.forName(Class.java:217)
11-12 11:42:08.444: W/System.err(30736):    at 
java.lang.Class.forName(Class.java:172)
11-12 11:42:08.444: W/System.err(30736):    at 
tinysip.sip.SipFactory.createStack(SipFactory.java:306)
11-12 11:42:08.444: W/System.err(30736):    ... 21 more
11-12 11:42:08.444: W/System.err(30736): Caused by: 
java.lang.NoClassDefFoundError: gov/nist/tinysip/sip/SipStackImpl
11-12 11:42:08.444: W/System.err(30736):    ... 25 more
11-12 11:42:08.444: W/System.err(30736): Caused by: 
java.lang.ClassNotFoundException: gov.nist.tinysip.sip.SipStackImpl
11-12 11:42:08.444: W/System.err(30736):    at 
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
11-12 11:42:08.444: W/System.err(30736):    at 
java.lang.ClassLoader.loadClass(ClassLoader.java:501)
11-12 11:42:08.444: W/System.err(30736):    at 
java.lang.ClassLoader.loadClass(ClassLoader.java:461)
11-12 11:42:08.444: W/System.err(30736):    ... 25 more

This could be linked to issues 2 & 6 here, as I was forced to repackage the 
javax.* libraries because of the core libraries issues on android.  (the 
suggested clean/delete classes solution will not work).  I belive android has 
recently got stricter policies on this, which may be the reason these issues 
are starting to show.  I will look into this further when I get a chance

Original comment by crysi...@googlemail.com on 12 Nov 2012 at 9:50

GoogleCodeExporter commented 8 years ago
Any updates on this issue?

Original comment by jrjense...@gmail.com on 28 Nov 2012 at 7:19

GoogleCodeExporter commented 8 years ago
I  get the same errors.. sort of.. renamed the javax.* libraries as well. Would 
really be happy if someone could fix this as I don't really look through all 
the reflection made in this project.

Original comment by burkedam...@gmail.com on 13 Dec 2012 at 3:25

GoogleCodeExporter commented 8 years ago
I've managed to get the demo to run in ics by changing every reference of 
javax.sip to javaxsip.sip (Including the javax packages under gov.nist, and the 
constructor factory strings). I don't know if it's doing anything of note yet. 
Anybody get anywhere with this?  

Original comment by L.J.Call...@googlemail.com on 25 Feb 2013 at 2:22

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am trying to make de-tinySipdemo which uses JAIN-SIP to work

https://code.google.com/p/de-tiny-sip/

Hi I tired to rename the packages..
I changed every reference to : javax.* to jax.*
Similarly for gov.nist.javax.* as gov.nist.jax

& as required changed the hard coded package names in 
*.core.PackageNames.java

By the end whole setus is compiling but in the end I am getting in an Null 
pointer exception

Can anyone point what I am doin wrong??

Original comment by send2zub...@gmail.com on 7 Mar 2013 at 7:04

Attachments:

GoogleCodeExporter commented 8 years ago
Check issue #2

Original comment by diego.cd...@gmail.com on 14 Nov 2014 at 6:49