Android Question Beginning of Crash

mpearson

Member
Licensed User
Hello,
I have an app that I've been building on for a while that seems to work pretty well. When connected to the debugger, and no filter on, there is a large section of errors starting at "beginning of crash". The first ones are Firebase related. I updated the Firebase library like suggested, still have errors. I even stripped out all Firebase code and modules for troubleshooting sake, still have the errors. Beyond that there appear to be websocket errors.

Question 1: Do I need to eliminate these (I would think yes)?
Question 2: How do I debug what is causing them?

I tried debugging but it they all appear before any of my code starts executing (maybe I'm missing something?). Any pointers would be much appreciated.

B4X:
Logger connected to:  HTC 2PS64
--------- beginning of crash
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 4835
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
    at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
    at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
    at b4a.GarageApp.firebasemessaging._subscribetotopics(firebasemessaging.java:233)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1154)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 7145
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
    at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
    at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
    at b4a.GarageApp.firebasemessaging._subscribetotopics(firebasemessaging.java:233)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1154)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 7337
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
    at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
    at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
    at b4a.GarageApp.firebasemessaging._subscribetotopics(firebasemessaging.java:233)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1154)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 8278
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
    at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
    at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
    at b4a.GarageApp.firebasemessaging._subscribetotopics(firebasemessaging.java:233)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1154)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 9583
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
    at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
    at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
    at b4a.GarageApp.firebasemessaging._subscribetotopics(firebasemessaging.java:233)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1154)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 10889
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
    at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
    at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
    at b4a.GarageApp.firebasemessaging._subscribetotopics(firebasemessaging.java:233)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1154)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 14293
io.crossbar.autobahn.websocket.WebSocketException: already connected
    at io.crossbar.autobahn.websocket.WebSocketConnection.connect(WebSocketConnection.java:242)
    at io.crossbar.autobahn.websocket.WebSocketConnection.connect(WebSocketConnection.java:233)
    at anywheresoftware.b4a.objects.WebSocketWrapper.Connect(WebSocketWrapper.java:56)
    at b4a.GarageApp.websockethandler._connect(websockethandler.java:55)
    at b4a.GarageApp.starter._pe_connectivitychanged(starter.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.phone.PhoneEvents$ActionHandler.send(PhoneEvents.java:326)
    at anywheresoftware.b4a.phone.PhoneEvents$2.handle(PhoneEvents.java:110)
    at anywheresoftware.b4a.phone.PhoneEvents$16.onReceive(PhoneEvents.java:268)
    at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1159)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 21677
android.content.ActivityNotFoundException: Unable to find explicit activity class {b4a.GarageApp/b4a.GarageApp.gpsopen}; have you declared this activity in your AndroidManifest.xml?
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1922)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1640)
    at android.app.Activity.startActivityForResult(Activity.java:4233)
    at android.app.Activity.startActivityForResult(Activity.java:4192)
    at android.app.Activity.startActivity(Activity.java:4516)
    at android.app.Activity.startActivity(Activity.java:4484)
    at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:848)
    at b4a.GarageApp.main._chkgps_checkedchange(main.java:474)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.objects.CompoundButtonWrapper$1.onCheckedChanged(CompoundButtonWrapper.java:44)
    at android.widget.CompoundButton.setChecked(CompoundButton.java:156)
    at android.widget.CompoundButton.toggle(CompoundButton.java:115)
    at android.widget.CompoundButton.performClick(CompoundButton.java:120)
    at android.view.View$PerformClick.run(View.java:22396)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 22187
android.content.ActivityNotFoundException: Unable to find explicit activity class {b4a.GarageApp/b4a.GarageApp.gpsopen}; have you declared this activity in your AndroidManifest.xml?
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1922)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1640)
    at android.app.Activity.startActivityForResult(Activity.java:4233)
    at android.app.Activity.startActivityForResult(Activity.java:4192)
    at android.app.Activity.startActivity(Activity.java:4516)
    at android.app.Activity.startActivity(Activity.java:4484)
    at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:848)
    at b4a.GarageApp.main._chkgps_checkedchange(main.java:474)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.objects.CompoundButtonWrapper$1.onCheckedChanged(CompoundButtonWrapper.java:44)
    at android.widget.CompoundButton.setChecked(CompoundButton.java:156)
    at android.widget.CompoundButton.toggle(CompoundButton.java:115)
    at android.widget.CompoundButton.performClick(CompoundButton.java:120)
    at android.view.View$PerformClick.run(View.java:22396)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 22736
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at io.crossbar.autobahn.websocket.WebSocketConnection.connect(WebSocketConnection.java:250)
    at io.crossbar.autobahn.websocket.WebSocketConnection.connect(WebSocketConnection.java:233)
    at anywheresoftware.b4a.objects.WebSocketWrapper.Connect(WebSocketWrapper.java:56)
    at b4a.GarageApp.websockethandler._connect(websockethandler.java:56)
    at b4a.GarageApp.gpsopen._check_tick(gpsopen.java:164)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:105)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23190
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at io.crossbar.autobahn.websocket.WebSocketConnection.connect(WebSocketConnection.java:250)
    at io.crossbar.autobahn.websocket.WebSocketConnection.connect(WebSocketConnection.java:233)
    at anywheresoftware.b4a.objects.WebSocketWrapper.Connect(WebSocketWrapper.java:56)
    at b4a.GarageApp.websockethandler._connect(websockethandler.java:56)
    at b4a.GarageApp.gpsopen._check_tick(gpsopen.java:164)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:105)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23733
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at io.crossbar.autobahn.websocket.WebSocketConnection.connect(WebSocketConnection.java:250)
    at io.crossbar.autobahn.websocket.WebSocketConnection.connect(WebSocketConnection.java:233)
    at anywheresoftware.b4a.objects.WebSocketWrapper.Connect(WebSocketWrapper.java:56)
    at b4a.GarageApp.websockethandler._connect(websockethandler.java:56)
    at b4a.GarageApp.gpsopen._check_tick(gpsopen.java:164)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:105)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23879
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.Reference.get()' on a null object reference
    at anywheresoftware.b4a.objects.RuntimePermissions.CheckAndRequest(RuntimePermissions.java:76)
    at b4a.GarageApp.gpsopen._service_start(gpsopen.java:264)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at b4a.GarageApp.gpsopen.handleStart(gpsopen.java:100)
    at b4a.GarageApp.gpsopen.access$000(gpsopen.java:8)
    at b4a.GarageApp.gpsopen$1.run(gpsopen.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at b4a.GarageApp.gpsopen.onStartCommand(gpsopen.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3464)
    at android.app.ActivityThread.-wrap21(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1619)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 24355
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.Reference.get()' on a null object reference
    at anywheresoftware.b4a.objects.RuntimePermissions.CheckAndRequest(RuntimePermissions.java:76)
    at b4a.GarageApp.gpsopen._service_start(gpsopen.java:264)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at b4a.GarageApp.gpsopen.handleStart(gpsopen.java:100)
    at b4a.GarageApp.gpsopen.access$000(gpsopen.java:8)
    at b4a.GarageApp.gpsopen$1.run(gpsopen.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at b4a.GarageApp.gpsopen.onStartCommand(gpsopen.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3464)
    at android.app.ActivityThread.-wrap21(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1619)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 29765
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.Reference.get()' on a null object reference
    at anywheresoftware.b4a.objects.RuntimePermissions.CheckAndRequest(RuntimePermissions.java:76)
    at b4a.GarageApp.gpsopen._service_start(gpsopen.java:264)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at b4a.GarageApp.gpsopen.handleStart(gpsopen.java:100)
    at b4a.GarageApp.gpsopen.access$000(gpsopen.java:8)
    at b4a.GarageApp.gpsopen$1.run(gpsopen.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at b4a.GarageApp.gpsopen.onStartCommand(gpsopen.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3464)
    at android.app.ActivityThread.-wrap21(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1619)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 30788
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.Reference.get()' on a null object reference
    at anywheresoftware.b4a.objects.RuntimePermissions.CheckAndRequest(RuntimePermissions.java:76)
    at b4a.GarageApp.gpsopen._service_start(gpsopen.java:264)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at b4a.GarageApp.gpsopen.handleStart(gpsopen.java:100)
    at b4a.GarageApp.gpsopen.access$000(gpsopen.java:8)
    at b4a.GarageApp.gpsopen$1.run(gpsopen.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at b4a.GarageApp.gpsopen.onStartCommand(gpsopen.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3464)
    at android.app.ActivityThread.-wrap21(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1619)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 30877
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.Reference.get()' on a null object reference
    at anywheresoftware.b4a.objects.RuntimePermissions.CheckAndRequest(RuntimePermissions.java:76)
    at b4a.GarageApp.gpsopen._service_start(gpsopen.java:264)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at b4a.GarageApp.gpsopen.handleStart(gpsopen.java:100)
    at b4a.GarageApp.gpsopen.access$000(gpsopen.java:8)
    at b4a.GarageApp.gpsopen$1.run(gpsopen.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at b4a.GarageApp.gpsopen.onStartCommand(gpsopen.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3464)
    at android.app.ActivityThread.-wrap21(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1619)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 31975
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.location.LocationManager.isProviderEnabled(java.lang.String)' on a null object reference
    at anywheresoftware.b4a.gps.GPS.getGPSEnabled(GPS.java:149)
    at b4a.GarageApp.main._chkgps_checkedchange(main.java:475)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.objects.CompoundButtonWrapper$1.onCheckedChanged(CompoundButtonWrapper.java:44)
    at android.widget.CompoundButton.setChecked(CompoundButton.java:156)
    at android.widget.CompoundButton.toggle(CompoundButton.java:115)
    at android.widget.CompoundButton.performClick(CompoundButton.java:120)
    at android.view.View$PerformClick.run(View.java:22396)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 775
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.location.LocationManager.isProviderEnabled(java.lang.String)' on a null object reference
    at anywheresoftware.b4a.gps.GPS.getGPSEnabled(GPS.java:149)
    at b4a.GarageApp.main._chkgps_checkedchange(main.java:475)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.objects.CompoundButtonWrapper$1.onCheckedChanged(CompoundButtonWrapper.java:44)
    at android.widget.CompoundButton.setChecked(CompoundButton.java:156)
    at android.widget.CompoundButton.toggle(CompoundButton.java:115)
    at android.widget.CompoundButton.performClick(CompoundButton.java:120)
    at android.view.View$PerformClick.run(View.java:22396)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 1277
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.location.LocationManager.isProviderEnabled(java.lang.String)' on a null object reference
    at anywheresoftware.b4a.gps.GPS.getGPSEnabled(GPS.java:149)
    at b4a.GarageApp.main._chkgps_checkedchange(main.java:475)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.objects.CompoundButtonWrapper$1.onCheckedChanged(CompoundButtonWrapper.java:44)
    at android.widget.CompoundButton.setChecked(CompoundButton.java:156)
    at android.widget.CompoundButton.toggle(CompoundButton.java:115)
    at android.widget.CompoundButton.performClick(CompoundButton.java:120)
    at android.view.View$PerformClick.run(View.java:22396)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23317
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23380
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23426
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23532
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23576
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23624
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23670
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23829
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 23943
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 24430
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 24682
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 25063
java.lang.RuntimeException: Unable to start service b4a.GarageApp.gpsopen@b41abb8 with Intent { cmp=b4a.GarageApp/.gpsopen }: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.location.LocationManager.requestLocationUpdates(java.lang.String, long, float, android.location.LocationListener)' on a null object reference
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3504)
    at android.app.ActivityThread.-wrap21(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1619)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.location.LocationManager.requestLocationUpdates(java.lang.String, long, float, android.location.LocationListener)' on a null object reference
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:228)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at b4a.GarageApp.gpsopen.handleStart(gpsopen.java:100)
    at b4a.GarageApp.gpsopen.access$000(gpsopen.java:8)
    at b4a.GarageApp.gpsopen$1.run(gpsopen.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:221)
    at b4a.GarageApp.gpsopen.onStartCommand(gpsopen.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3464)
    ... 8 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.location.LocationManager.requestLocationUpdates(java.lang.String, long, float, android.location.LocationListener)' on a null object reference
    at anywheresoftware.b4a.gps.GPS.Start(GPS.java:117)
    at b4a.GarageApp.gpsopen._startgps(gpsopen.java:278)
    at b4a.GarageApp.gpsopen._service_start(gpsopen.java:267)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    ... 15 more
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 25093
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 25234
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 27362
java.lang.Exception: Sub activity_permissionresult was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 2188
java.lang.IllegalStateException: Interval must be larger than 0.
    at anywheresoftware.b4a.objects.Timer.setEnabled(Timer.java:79)
    at b4a.GarageApp.gpsopen._gps_locationchanged(gpsopen.java:198)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.gps.GPS$1.onLocationChanged(GPS.java:65)
    at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:297)
    at android.location.LocationManager$ListenerTransport.-wrap0(LocationManager.java)
    at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:242)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 2248
java.lang.IllegalStateException: Interval must be larger than 0.
    at anywheresoftware.b4a.objects.Timer.setEnabled(Timer.java:79)
    at b4a.GarageApp.gpsopen._gps_locationchanged(gpsopen.java:198)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.gps.GPS$1.onLocationChanged(GPS.java:65)
    at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:297)
    at android.location.LocationManager$ListenerTransport.-wrap0(LocationManager.java)
    at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:242)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 9960
java.lang.IllegalStateException: Interval must be larger than 0.
    at anywheresoftware.b4a.objects.Timer.setEnabled(Timer.java:79)
    at b4a.GarageApp.gpsopen._gps_locationchanged(gpsopen.java:234)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.gps.GPS$1.onLocationChanged(GPS.java:65)
    at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:297)
    at android.location.LocationManager$ListenerTransport.-wrap0(LocationManager.java)
    at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:242)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 20815
java.lang.RuntimeException: java.net.SocketException: Socket closed
    at anywheresoftware.b4a.shell.Shell$1.run(Shell.java:281)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
Caused by: java.net.SocketException: Socket closed
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:120)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:157)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
    at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:62)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:314)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:260)
    at anywheresoftware.b4a.shell.Shell$1.run(Shell.java:278)
    ... 7 more
FATAL EXCEPTION: main
Process: b4a.GarageApp, PID: 25527
java.lang.RuntimeException: java.net.SocketException: Socket closed
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:175)
    at anywheresoftware.b4a.BA$2.run(BA.java:365)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:173)
    at android.app.ActivityThread.main(ActivityThread.java:6459)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
Caused by: java.net.SocketException: Socket closed
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:120)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:157)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
    at anywheresoftware.b4a.shell.ShellConnector.sendControlMessage(ShellConnector.java:62)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:314)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:260)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    ... 8 more
--------- beginning of system
MSG: Looper (main, tid 1) {15372e8}
 

mpearson

Member
Licensed User
I'll check this out when I get home tonight. I have updated the SDK, the one library I'm using and the maifest code. I'll see if I missed something.
 

mpearson

Member
Licensed User
Ok. I've made sure the libraries on that page you provided were updated and verified my manifest code and still get these errors. Below is my manifest code. I'm sure I'm missing something, but not sure what...

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)
'End of default text.


'Google Play Services Base
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)

'Firebase Base
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)

'Firebase Notifications
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
 

mpearson

Member
Licensed User
@DonM
Does the packagename match the package in the json from Firebase?
Yes, they are the same.

@Erel
This error: "at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)" was fixed in FirebaseNotifications v1.21. Make sure to copy the updated library to the internal libraries folder.
I am running the latest library.

upload_2018-6-7_20-1-12.png
 
Last edited:

mpearson

Member
Licensed User
Do you mean in another locations besides the libraries folder? I'll send you a link to my zipped internal libraries folder.
 

mpearson

Member
Licensed User
Yep, I remember that now. Nope, just checked and the Additional Libraries location is blank.
 

DonManfred

Expert
Licensed User
Yep, I remember that now. Nope, just checked and the Additional Libraries location is blank.
Ok.
Don´t know if it helps or somehow needed.
Create a new folder somewhere (not under program files), define the path in the IDE.

Last idea: The SDK is Updated to the newest maven Artifacts?

I do not have any other idea what the cause is.
 
Top