{"action":"created","issue":{"url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/192","labels_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/192/comments","events_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/192/events","html_url":"https://github.com/Mobicents/restcomm-android-sdk/issues/192","id":108621956,"number":192,"title":"Fix NPE on JAIN SIP at getNewClientTransaction()","user":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/milestones/5","html_url":"https://github.com/Mobicents/restcomm-android-sdk/milestones/1.0.0%20BETA3%20release","labels_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/milestones/5/labels","id":1235427,"number":5,"title":"1.0.0 BETA3 release","description":"","creator":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":3,"state":"open","created_at":"2015-07-31T16:48:00Z","updated_at":"2015-09-28T10:44:33Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-28T09:39:51Z","updated_at":"2015-09-28T12:51:26Z","closed_at":null,"body":"java.lang.NullPointerException\r\n\tat android.gov.nist.javax.sip.stack.DefaultRouter.getNextHop(DefaultRouter.java:166)\r\n\tat android.gov.nist.javax.sip.stack.SIPTransactionStack.getNextHop(SIPTransactionStack.java:2254)\r\n\tat android.gov.nist.javax.sip.SipProviderImpl.getNewClientTransaction(SipProviderImpl.java:447)\r\n\tat org.mobicents.restcomm.android.sipua.impl.SipManager$6.run(SipManager.java:473)\r\n\r\nCheckout Test Fairy sessions 30-32:\r\n\r\nhttps://free.testfairy.com/projects/886758-restcommmessenger/builds/1719184/sessions/32\r\n\r\nAlso seen this which seems the same:\r\n\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'android.gov.nist.javax.sip.header.RequestLine android.gov.nist.javax.sip.message.SIPRequest.getRequestLine()' on a null object reference\r\n\tat android.gov.nist.javax.sip.stack.DefaultRouter.getNextHop(DefaultRouter.java:166)\r\n\tat android.gov.nist.javax.sip.stack.SIPTransactionStack.getNextHop(SIPTransactionStack.java:2254)\r\n\tat android.gov.nist.javax.sip.SipProviderImpl.getNewClientTransaction(SipProviderImpl.java:447)\r\n\tat org.mobicents.restcomm.android.sipua.impl.SipManager$6.run(SipManager.java:473)"},"comment":{"url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/comments/143735608","html_url":"https://github.com/Mobicents/restcomm-android-sdk/issues/192#issuecomment-143735608","issue_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/192","id":143735608,"user":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T12:51:26Z","updated_at":"2015-09-28T12:51:26Z","body":"Apart from the crash, I also see this section in android logcat, seems that settings are wrong:\r\n- remote ip is 54.87.118.89:5080\r\n- port is 8080\r\n\r\n00:02:05 I/System.out: Setting remotePort:8080\r\n00:02:05 I/System.out: Setting remoteIp:54.87.118.89:5080\r\n00:02:05 V/SipManager: shutdown\r\n00:02:05 V/SipManager: shutdown while stack is started\r\n00:02:05 V/DeviceImpl: Register\r\n00:02:05 I/SipManager: Registrar changed, reinitializing stack\r\n00:02:05 I/System.out: Setting sipUserName:guest2\r\n00:02:05 I/System.out: Setting sipPassword:1234\r\n00:02:07 V/SipManager: initialize()\r\n00:02:07 W/System.err: java.text.ParseException: sip:54.87.118.89:5080:8080 Illegal character in hostname:. (at offset 6)\r\n00:02:07 W/System.err: \tat android.gov.nist.javax.sip.parser.URLParser.uriReference(URLParser.java:347)\r\n00:02:07 W/System.err: \tat android.gov.nist.core.HostNameParser.hostPort(HostNameParser.java:307)\r\n00:02:07 W/System.err: \tat android.gov.nist.javax.sip.parser.AddressParser.address(AddressParser.java:116)\r\n00:02:07 W/System.err: \tat android.gov.nist.javax.sip.parser.URLParser.sipURL(URLParser.java:644)\r\n00:02:07 W/System.err: \tat com.telestax.restcomm_messenger.MainActivity.onSharedPreferenceChanged(MainActivity.java:298)\r\n00:02:07 W/System.err: \tat android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:475)\r\n00:02:07 W/System.err: \tat android.gov.nist.javax.sip.address.AddressFactoryImpl.createAddress(AddressFactoryImpl.java:124)\r\n00:02:07 W/System.err: \tat org.mobicents.restcomm.android.client.sdk.RCDevice.updateParams(RCDevice.java:472)\r\n00:02:07 W/System.err: \tat org.mobicents.restcomm.android.sipua.impl.DeviceImpl.Register(DeviceImpl.java:242)\r\n00:02:07 W/System.err: \tat org.mobicents.restcomm.android.sipua.impl.SipManager.Register(SipManager.java:374)\r\n00:02:07 W/System.err: \tat android.gov.nist.javax.sip.parser.StringMsgParser.parseAddress(StringMsgParser.java:319)\r\n00:02:07 W/System.err: \tat org.mobicents.restcomm.android.sipua.impl.sipmessages.Register.MakeRequest(Register.java:47)\r\n00:02:07 W/System.err: \tat android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:385)\r\n00:02:07 W/System.err: \tat android.preference.EditTextPreference.onDialogClosed(EditTextPreference.java:142)\r\n00:02:07 W/System.err: \tat android.preference.Preference.tryCommit(Preference.java:1372)\r\n00:02:07 W/System.err: \tat android.preference.EditTextPreference.setText(EditTextPreference.java:88)\r\n00:02:07 W/System.err: \tat android.preference.Preference.persistString(Preference.java:1405)\r\n00:02:07 W/System.err: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n00:02:07 W/System.err: \tat android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1238)\r\n00:02:07 W/System.err: \tat android.preference.DialogPreference.onDismiss(DialogPreference.java:383)\r\n00:02:07 W/System.err: \tat android.os.Looper.loop(Looper.java:136)\r\n00:02:07 W/System.err: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)\r\n00:02:07 W/System.err: \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n00:02:07 W/System.err: \tat android.app.ActivityThread.main(ActivityThread.java:5001)\r\n00:02:07 W/System.err: \tat dalvik.system.NativeStart.main(Native Method)\r\n00:02:07 W/System.err: \tat de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)\r\n00:02:07 W/System.err: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)\r\n00:02:07 W/System.err: \tat java.lang.reflect.Method.invokeNative(Native Method)"}}