Skip to content

Incompatibility with OpenJFX 25 #242

@adangel

Description

@adangel

Describe the bug
Similar to #87. It still works with OpenJFX21.

To Reproduce
Steps to reproduce the behavior:

  1. Install OpenJFX 25 SDK from https://gluonhq.com/products/javafx/ and set env variable JAVAFX_HOME
  2. Launch the designer (pmd designer)
  3. See error

Expected behavior
No error on startup

Console output

$ pmd-bin-7.17.0/bin/pmd designer
Sept. 25, 2025 10:28:18 AM com.sun.javafx.application.PlatformImpl startup
WARNUNG: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @68837a77'
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.sun.glass.utils.NativeLibLoader in an unnamed module (file:/home/andreas/programs/openjdk/javafx-sdk-25/lib/javafx.graphics.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

PMD Rule Designer 7.10.0 (with PMD 7.17.0) initializing... 
Exception in Application start method
java.lang.RuntimeException: Exception in Application start method
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:899)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$0(LauncherImpl.java:202)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: javafx.fxml.LoadException: 
file:/home/andreas/PMD/binaries/pmd-bin-7.17.0/lib/pmd-designer-7.10.0.jar!/net/sourceforge/pmd/util/fxdesigner/fxml/editor.fxml:85
file:/home/andreas/PMD/binaries/pmd-bin-7.17.0/lib/pmd-designer-7.10.0.jar!/net/sourceforge/pmd/util/fxdesigner/fxml/designer.fxml:118

	at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2692)
	at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2670)
	at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2533)
	at javafx.fxml.FXMLLoader$IncludeElement.constructValue(FXMLLoader.java:1147)
	at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:746)
	at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2823)
	at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2619)
	at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2533)
	at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2503)
	at net.sourceforge.pmd.util.fxdesigner.Designer.start(Designer.java:111)
	at net.sourceforge.pmd.util.fxdesigner.Designer.start(Designer.java:64)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$4(LauncherImpl.java:845)
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$0(PlatformImpl.java:449)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$0(PlatformImpl.java:424)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
	at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$0(GtkApplication.java:240)
	... 1 more
Caused by: java.lang.RuntimeException: Cannot create instance of net.sourceforge.pmd.util.fxdesigner.util.controls.NodeEditionCodeArea with given set of properties: [stylesheets, designerRoot]
	at com.sun.javafx.fxml.builder.ProxyBuilder.build(ProxyBuilder.java:272)
	at javafx.fxml.FXMLLoader$ValueElement.processEndElement(FXMLLoader.java:763)
	at javafx.fxml.FXMLLoader.processEndElement(FXMLLoader.java:2939)
	at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2624)
	... 16 more

Desktop (please complete the following information):

  • OS: Linux
  • Java:
    • openjdk 25 2025-09-16
      OpenJDK Runtime Environment GraalVM CE 25+37.1 (build 25+37-jvmci-b01)
      OpenJDK 64-Bit Server VM GraalVM CE 25+37.1 (build 25+37-jvmci-b01, mixed mode, sharing)
    • openjdk 25 2025-09-16 LTS
      OpenJDK Runtime Environment Temurin-25+36 (build 25+36-LTS)
      OpenJDK 64-Bit Server VM Temurin-25+36 (build 25+36-LTS, mixed mode, sharing)

Additional context
Using released PMD 7.17.0 and the bundled designer 7.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions