Open GoogleCodeExporter opened 9 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
Any updates on this issue?
Original comment by jrjense...@gmail.com
on 28 Nov 2012 at 7:19
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
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
[deleted comment]
[deleted comment]
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:
Check issue #2
Original comment by diego.cd...@gmail.com
on 14 Nov 2014 at 6:49
Original issue reported on code.google.com by
crysi...@googlemail.com
on 12 Nov 2012 at 9:34