B4J Question [Solved] Can' t find the bug reported in standalone version

Schakalaka

Active Member
Licensed User
Longtime User
Hello,
I have create a little Ui program.
It works in release come when i compile it, but it doesn't start if I double click on jar file.

I have also try to create the standAlone package. It create successfull, but this is the bug report:

(for login, press "login"

Debug errors
B4X:
java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at b4j/anywheresoftware.b4a.DynamicBuilder.build(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
        at b4j/com.clickadnclaim.top.main$ResumableSub_AppStart.resume(Unknown Source)
        at b4j/com.clickadnclaim.top.main._appstart(Unknown Source)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
        at b4j/anywheresoftware.b4a.BA.raiseEvent(Unknown Source)
        at b4j/com.clickadnclaim.top.main.start(Unknown Source)
        at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(Unknown Source)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
        at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
        at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 25: jrt:/b4j/Files/sekesplash (8).png
        at java.base/java.net.URI.create(Unknown Source)
        at java.base/jdk.internal.module.SystemModuleFinders$SystemModuleReader.find(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.findResource(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.findResource(Unknown Source)
        at java.base/java.lang.Class.getResource(Unknown Source)
        at b4j/anywheresoftware.b4a.objects.streams.File.GetUri(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.NodeWrapper.getImageUri(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.NodeWrapper.buildDrawable(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.NodeWrapper.build(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.ImageViewWrapper.build(Unknown Source)
        ... 27 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 25: jrt:/b4j/Files/sekesplash (8).png
        at java.base/java.net.URI$Parser.fail(Unknown Source)
        at java.base/java.net.URI$Parser.checkChars(Unknown Source)
        at java.base/java.net.URI$Parser.parseHierarchical(Unknown Source)
        at java.base/java.net.URI$Parser.parse(Unknown Source)
        at java.base/java.net.URI.<init>(Unknown Source)
        ... 37 more
main$ResumableSub_AppStart.resume (java line: -1)
java.lang.RuntimeException: Object should first be initialized (ImageView).
        at b4j/anywheresoftware.b4a.AbsObjectWrapper.getObject(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.NodeWrapper.innerInitialize(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.ImageViewWrapper.innerInitialize(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
        at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
        at b4j/com.clickadnclaim.top.main$ResumableSub_AppStart.resume(Unknown Source)
        at b4j/com.clickadnclaim.top.main._appstart(Unknown Source)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
        at b4j/anywheresoftware.b4a.BA.raiseEvent(Unknown Source)
        at b4j/com.clickadnclaim.top.main.start(Unknown Source)
        at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(Unknown Source)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
        at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
        at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
 
Last edited:

Sandman

Expert
Licensed User
Longtime User
Please don't post logs as images, post as text instead.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Run the debug.bat from an opened commandline.
Check the files in assets. rename the files with ( or ) in their name.
 
Upvote 0

Schakalaka

Active Member
Licensed User
Longtime User
Thank.
Renamed the img files without the "()" and reconnect it with imageview.
Now there aren' t errors
 
Upvote 0
Top