makis_best Well-Known Member Licensed User Longtime User Oct 16, 2023 #1 Hello I try to compile my application and I get the error on log file saying B4X: Copy Logger connected to: samsung SM-N976N --------- beginning of main Copying updated assets files (2) *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create (first time) ** Error occurred on line: 23 (B4XMainPage) java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.keywords.Common.CallSubDebug2(Common.java:1087) at com.terrabytez.up.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:1068) at com.terrabytez.up.b4xpagesmanager._showpage(b4xpagesmanager.java:425) at com.terrabytez.up.b4xpagesmanager._addpage(b4xpagesmanager.java:245) at com.terrabytez.up.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:259) at com.terrabytez.up.b4xpagesmanager._initialize(b4xpagesmanager.java:165) at com.terrabytez.up.main._activity_create(main.java:415) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157) at com.terrabytez.up.main.afterFirstLayout(main.java:105) at com.terrabytez.up.main.access$000(main.java:17) at com.terrabytez.up.main$WaitForLayout.run(main.java:83) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6825) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:336) at anywheresoftware.b4a.debug.Debug.CallSubNew2(Debug.java:285) ... 24 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:318) ... 25 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException What can be the problem? The error come out when application trying to load the layout.
Hello I try to compile my application and I get the error on log file saying B4X: Copy Logger connected to: samsung SM-N976N --------- beginning of main Copying updated assets files (2) *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create (first time) ** Error occurred on line: 23 (B4XMainPage) java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.keywords.Common.CallSubDebug2(Common.java:1087) at com.terrabytez.up.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:1068) at com.terrabytez.up.b4xpagesmanager._showpage(b4xpagesmanager.java:425) at com.terrabytez.up.b4xpagesmanager._addpage(b4xpagesmanager.java:245) at com.terrabytez.up.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:259) at com.terrabytez.up.b4xpagesmanager._initialize(b4xpagesmanager.java:165) at com.terrabytez.up.main._activity_create(main.java:415) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157) at com.terrabytez.up.main.afterFirstLayout(main.java:105) at com.terrabytez.up.main.access$000(main.java:17) at com.terrabytez.up.main$WaitForLayout.run(main.java:83) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6825) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:336) at anywheresoftware.b4a.debug.Debug.CallSubNew2(Debug.java:285) ... 24 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:318) ... 25 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException What can be the problem? The error come out when application trying to load the layout.
DonManfred Expert Licensed User Longtime User Oct 16, 2023 #2 makis_best said: What can be the problem? Click to expand... That you didn´t upload a small project showing the issue. Upvote 0
makis_best said: What can be the problem? Click to expand... That you didn´t upload a small project showing the issue.
makis_best Well-Known Member Licensed User Longtime User Oct 16, 2023 #3 here is a small project Attachments Project.zip Project.zip 16.6 KB · Views: 377 Upvote 0
DonManfred Expert Licensed User Longtime User Oct 16, 2023 #4 makis_best said: here is a small project Click to expand... You DID NOT ADDED the additional resources! B4X: Copy #AdditionalRes: ..\Resource Add them (INCL the folder from the example) Your project works fine here after adding them.... Upvote 0
makis_best said: here is a small project Click to expand... You DID NOT ADDED the additional resources! B4X: Copy #AdditionalRes: ..\Resource Add them (INCL the folder from the example) Your project works fine here after adding them....
DonManfred Expert Licensed User Longtime User Oct 16, 2023 #5 See Screenshot Attachments WhatsApp Bild 2023-10-16 um 15.05.17_b2a909dc.jpg 63.7 KB · Views: 473 Upvote 0
makis_best Well-Known Member Licensed User Longtime User Oct 16, 2023 #6 DonManfred said: You DID NOT ADDED the additional resources! B4X: Copy #AdditionalRes: ..\Resource Add them (INCL the folder from the example) Your project works fine here after adding them.... Click to expand... Last edited: Oct 16, 2023 Upvote 0
DonManfred said: You DID NOT ADDED the additional resources! B4X: Copy #AdditionalRes: ..\Resource Add them (INCL the folder from the example) Your project works fine here after adding them.... Click to expand...
makis_best Well-Known Member Licensed User Longtime User Oct 16, 2023 #7 Everything working fine now @DonManfred Thank you. Upvote 0