java fx error: java.lang.instrument ASSERTION FAILED ***: “!errorOutstanding“ with message transform
Problem description
Errors encountered in Java FX
In fxml, the controller is bound by fx:controller.
FXMLLoader.load is used in the controller of control to get the fxml file
An error is reported
java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at JPLISAgent
Cause analysis:
The reason for the error is that there is a cycle, similar to the cycle dependency problem
as a result of:
a.fxml depends on the controller AController.java
But AController.java will load this fxml again
Solution:
Remove FXMLLoader.load from the controller or remove fx:controller from fxml