B4J Question [SOLVED] Error when upgrading to OpenJDK 19

javiers

Active Member
Licensed User
Longtime User
Hello everyone, in an application I have updated the jGoogMaps v2.00 library following the steps indicated in https://www.b4x.com/android/forum/threads/jgooglemaps-library.56744/
I have followed the steps indicated (it is compiled with OpenJDK 19), the map shows it, but an error occurs and the program closes:

22/08/2023 16:35:34.988 ERROR APP ERROR: java.lang.Exception: java.lang.NoSuchMethodError: 'java.util.Iterator javafx.stage.Window.impl_getWindows()'

main._gmap_ready (java line: -1)
java.lang.NoSuchMethodError: 'java.util.Iterator javafx.stage.Window.impl_getWindows()'
at b4j/org.controlsfx.tools.Utils.getWindow(Unknown Source)
at b4j/org.controlsfx.control.Notifications$NotificationPopupHandler.show(Unknown Source)
at b4j/org.controlsfx.control.Notifications.show(Unknown Source)
at b4j/org.controlsfx.control.Notifications.showInformation(Unknown Source)
at b4j/anywheresoftware.b4j.objects.ControlsUtils.ShowNotification3(Unknown Source)
at b4j/anywheresoftware.b4j.objects.ControlsUtils.ShowNotification2(Unknown Source)
at b4j/anywheresoftware.b4j.objects.ControlsUtils.ShowNotification(Unknown Source)
at b4j/jsouto.ics.sitac.main._gmap_ready(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.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/anywheresoftware.b4j.googlemaps.GoogleMapWrapper$1.mapInitialized(Unknown Source)
at b4j/com.lynden.gmapsfx.GoogleMapView.fireMapInitializedListeners(Unknown Source)
at b4j/com.lynden.gmapsfx.GoogleMapView$MapLibraryLoadBridge.mapLibraryLoaded(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.reflect.Trampoline.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at javafx.base/com.sun.javafx.reflect.MethodUtil.invoke(Unknown Source)
at javafx.web/com.sun.webkit.MethodHelper.invoke(Unknown Source)
at javafx.web/com.sun.webkit.Utilities.lambda$fwkInvokeWithContext$1(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.web/com.sun.webkit.Utilities.fwkInvokeWithContext(Unknown Source)
at javafx.web/com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
at javafx.web/com.sun.webkit.Timer.fireTimerEvent(Unknown Source)
at javafx.web/com.sun.webkit.Timer.notifyTick(Unknown Source)
at javafx.web/javafx.scene.web.WebEngine$PulseTimer.lambda$static$0(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
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)


If I comment out the line:
Notification.ShowNotification(" Attention !", "The water intakes have been successfully loaded", Notification.ICON_INFORMATION)
the program works.
 
Top