Android Question Stack Trace <> Error log

MitchBu

Well-Known Member
Licensed User
Longtime User
I am trying to implement the uncaught error reporting as described in https://www.b4x.com/android/forum/threads/59805/#content

As it stands, the log is pretty cryptic, since it does not contain any reference to the B4A source.

B4X:
Handler.handleCallback(Handler.java:790)
~e:     at android.os.Handler.dispatchMessage(Handler.java:99)
~e:     at android.os.Looper.loop(Looper.java:164)
~e:     at android.app.ActivityThread.main(ActivityThread.java:7000)
~e:     at java.lang.reflect.Method.invoke(Native Method)
~e:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
~e:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
~e:starter_application_error (java line: 149)
~e:java.lang.RuntimeException: Object should first be initialized (StringBuilder).
~e:     at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
~e:     at anywheresoftware.b4a.keywords.StringBuilderWrapper.Append(StringBuilderWrapper.java:53)
~e:     at com.bujardet.checkprinter.starter._application_error(starter.java:149)
~e:     at java.lang.reflect.Method.invoke(Native Method)
~e:     at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
~e:     at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1082)
~e:     at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:1045)
~e:     at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.handleUncaughtException(ServiceHelper.java:267)
~e:     at java.lang.reflect.Method.invoke(Native Method)
~e:     at anywheresoftware.b4a.BA.raiseEvent2(BA.java:239)
~e:     at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
~e:     at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
~e:     at anywheresoftware.b4a.objects.ViewWrapper$2.onLongClick(ViewWrapper.java:90)
~e:     at android.view.View.performLongClickInternal(View.java:7026)
~e:     at android.view.View.performLongClick(View.java:6974)
~e:     at android.view.View.performLongClick(View.java:6992)
~e:     at android.view.View$CheckForLongPress.run(View.java:26179)
~e:     at android.os.Handler.handleCallback(Handler.java:790)
~e:     at android.os.Handler.dispatchMessage(Handler.java:99)
~e:     at android.os.Looper.loop(Looper.java:164)
~e:     at android.app.ActivityThread.main(ActivityThread.java:7000)
~e:     at java.lang.reflect.Method.invoke(Native Method)
~e:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
~e:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
~i:*** Service (starter) Create ***
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst


Would it be possible instead to get the error as reported in the log pane of the IDE ?

Here, I see where the error occurred in my B4A code. THat is a whole lot easier to figure where the problem is:

B4X:
main_pnlcheck_longclick (java line: 10633)
java.lang.NumberFormatException: For input string: "trarara"
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
    at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
    at java.lang.Double.parseDouble(Double.java:539)
    at com.bujardet.checkprinter.main._pnlcheck_longclick(main.java:10633)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.objects.ViewWrapper$2.onLongClick(ViewWrapper.java:90)
    at android.view.View.performLongClickInternal(View.java:7026)
    at android.view.View.performLongClick(View.java:6974)
    at android.view.View.performLongClick(View.java:6992)
    at android.view.View$CheckForLongPress.run(View.java:26179)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:7000)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
 
Top