Bug? Error "VetoableListDecorator"

andrewmp

Member
Licensed User
Longtime User
Hello, I have a problem, I am running a jar prog in ubuntu and declaring all the modules [java.base, java.desktop, java.instrument, java.logging, java.management, java.management.rmi, java.naming, java.rmi, java.security.jgss, java.security.sasl, java.sql, java.transaction.xa, java.xml, javafx.base, javafx.controls, javafx.fxml, javafx.graphics, javafx.media, javafx.swing, java.scripting, jdk.unsupported, java.datatransfer, jdk.unsupported.desktop, jdk.jsobject, jdk.xml.dom]

An error comes up when I open a form using B4XPreferencesDialog, if I set a fieldin the json file with options to "Short Options" , then no errors , if I simply change to "Options" (the only change I make) I get this: "Caused by: java.lang.IllegalAccessException: class anywheresoftware.b4j.object.JavaObject cannot access class com.sun.javafx.collections.VetoableListDecorator (in module javafx.base) because module javafx.base does not export com.sun.javafx.collections to unnamed module @2d236ab3" and nothing shows up in the options list.

Java runtime in ubuntu is:

openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)

As a note the same jar prog. in Windows runs ok in both cases.

Seems like I am maybe missing a library in ubuntu, can someone give me some advice ? Thanks
 

andrewmp

Member
Licensed User
Longtime User
Thanks for the reply, ok installed specific version:

openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

Same error unfortunately:

ava.lang.RuntimeException: java.lang.IllegalAccessException: class anywheresoftware.b4j.object.JavaObject cannot access class com.sun.javafx.collections.VetoableListDecorator (in module javafx.base) because module javafx.base does not export com.sun.javafx.collections to unnamed module @6881e0bd
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1020)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalAccessException: class anywheresoftware.b4j.object.JavaObject cannot access class com.sun.javafx.collections.VetoableListDecorator (in module javafx.base) because module javafx.base does not export com.sun.javafx.collections to unnamed module @6881e0bd
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
at java.base/java.lang.reflect.Method.invoke(Method.java:558)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132)
at nw2000.ristogateway.b4jtextflow._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(b4jtextflow.java:72)
at nw2000.ristogateway.b4xsearchtemplate._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0(b4xsearchtemplate.java:115)
at nw2000.ristogateway.b4xsearchtemplate._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(b4xsearchtemplate.java:489)
at nw2000.ristogateway.b4xsearchtemplate$ResumableSub_Show.resume(b4xsearchtemplate.java:436)
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1018)
... 7 more

Any other ideas , seems a strange error...
 

andrewmp

Member
Licensed User
Longtime User
Thanks for the reply , but I am still getting the error even with 14 in ubuntu 18 :
openjdk version "14.0.1" 2020-04-14
OpenJDK Runtime Environment (build 14.0.1+7)
OpenJDK 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)

I am now using the example directly : https://www.b4x.com/android/forum/attachments/preferencesexample-b4j-zip.81852/ to further exclude any errors in my prog.

I am compiling with v. 11 , do I need to compile with v.14 ? if yes I presume I will need compiled javafx ver 14 for windows ? ( I can find only linux)
 

Attachments

  • err.jpg
    err.jpg
    381 KB · Views: 120
Top