Today I opening an old B4J App using B4J version 9.30
And running it, immediately showing Stub Error message:
While app running, Menubar object become "Error JSON Parsing" , and some buttons are missing.
Designer Look, Menubar showing normal
Menubar content JSON :
Libraries used:
What might wrong ?
Please advice.
And running it, immediately showing Stub Error message:
Error Stub Error:
Waiting for debugger to connect...
Program started.
java.lang.RuntimeException: Stub!
at org.json.JSONTokener.<init>(JSONTokener.java:24)
at anywheresoftware.b4j.objects.collections.JSONParser.Initialize(JSONParser.java:58)
at anywheresoftware.b4j.objects.MenuItemWrapper$MenuBarWrapper.parseMenusJson(MenuItemWrapper.java:275)
at anywheresoftware.b4j.objects.MenuItemWrapper$MenuBarWrapper.build(MenuItemWrapper.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:33)
at anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(LayoutBuilder.java:142)
at anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(LayoutBuilder.java:228)
at anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(LayoutBuilder.java:101)
at anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(PaneWrapper.java:101)
at gtc.qzaclient.main._appstart(main.java:450)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:629)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:237)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:109)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:96)
at gtc.qzaclient.main.start(main.java:38)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Thread.java:750)
OS Name : Windows 11
OS Architecture : amd64
OS Version : 10.0
JVM Name : Java HotSpot(TM) 64-Bit Server VM
While app running, Menubar object become "Error JSON Parsing" , and some buttons are missing.
Designer Look, Menubar showing normal
Menubar content JSON :
Menubar JSON:
[
{Text: "Database", Children:
[
{Text: "Audio Input", Tag: "audioinputform"},
{Text: "Audio Output", Tag: "audiooutputform"},
{Text: "Zone Grouping", Tag: "zonegroupform"},
{Text: "User Account", Tag: "accountform"}
]
},
{Text: "Functions", Children:
[
{Text: "Music Broadcast", Tag: "bgmform"},
{Text: "Timer", Tag: "timerform"},
{Text: "PC Paging", Tag: "pagingform"},
{Text: "Recording / Monitoring", Tag: "recordform"},
{Text: "Pre Recording Files", Tag: "prerecord"},
{Text: "External Audio Controller", Tag: "externalinput"}
]
},
{Text: "Configuration", Children:
[
{Text: "Clear All Data", Tag: "configclear"},
{Text: "Volume Control", Tag: "volcontrol"},
//{Text: "Adjust Delay", Tag: "adjustdelay"},
{Text: "Broadcast Setting", Tag: "broadcastsetting"}
//{Text: "Get From Server", Tag: "configget"},
//{Text: "Set To Server", Tag: "configset"},
//{Text: "Export To File", Tag: "configexport"},
//{Text: "Import From File", Tag: "configimport"}
]
},
{Text: "Other", Children:
[
{Text: "App Version", Tag: "appversion"},
{Text: "Show Data Path", Tag: "datapath"},
{Text: "Log", Tag: "logform"}
]
}
]
Libraries used:
What might wrong ?
Please advice.