Android Question Reading error log

Devv

Active Member
Licensed User
** Service (phoner) Create **


** Service (phoner) Start **


** Service (internet) Create **
** Service (internet) Start **


** Service (httputils2service) Create **


** Service (httputils2service) Start **


internet_jobdone (java line: 590)


java.lang.ArrayIndexOutOfBoundsException: length=2; index=2


at Project.alpha.internet._jobdone(internet.java:590)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:962)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:965)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:962)
... 10 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
at Project.alpha.internet._jobdone(internet.java:590)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
... 11 more
i dont understand and i dont care about all of the above
what is the line in my code that made the crash ?
 

Jeffrey Cameron

Well-Known Member
Licensed User
If you don't care, and you don't understand, how do ever expect to solve the problem? It's hard to tell what the exact error is without some context of what your program was attempting to do at the time. If I had to make a guess (which I do, given the little information you have provided):

java.lang.ArrayIndexOutOfBoundsException: length=2; index=2

at Project.alpha.internet._jobdone(internet.java:590)
In looks like your "jobdone" event handler tried to access position 3 of a two-position array. For example:
B4X:
  Dim MyVar(2) as Int
  MyVar(0) = 1   ' OK
  MyVar(1) = 2   ' OK
  MyVar(2) = 3   ' ERROR
 
Last edited:

Devv

Active Member
Licensed User
If you don't care, and you don't understand, how do ever expect to solve the problem? It's hard to tell what the exact error is without some context of what your program was attempting to do at the time. If I had to make a guess (which I do, given the little information you have provided):



In looks like your "jobdone" event handler tried to access position 3 of a two-position array. For example:
B4X:
  Dim MyVar(2) as Int
  MyVar(0) = 1   ' OK
  MyVar(1) = 2   ' OK
  MyVar(2) = 3   ' ERROR

i hate the way that the ide log errors in java stuff
if i know java i wont come here !
i just need from the ide the number of the line that made the error, i dont care about what made the error in java
anyway thank you mr jeffrey
 
Top