I'm working now in Javafx in Maven and I'm using jfoenix dependency and it seems quite problematic. the NPE issue. I tried to research about it and I can't find a solution. I will provide the errors below..
java.lang.reflect.InaccessibleObjectException: Unable to make boolean java.lang.reflect.AccessibleObject.setAccessible0(boolean) accessible: module java.base does not "opens java.lang.reflect" to unnamed module @742b8504
java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Field.get(Object)" because "field" is null
Caused by: java.lang.NullPointerException: Cannot invoke "javafx.scene.Node.getLayoutBounds()" because "this.textNode" is null
I've seen a query related to this, [from this question][1]
that's it, I'm using JDK 16, JFX 17 and Netbeans IDE 12.5, Scene Builder 11 and Jfoenix 9.0.10
See this comment on a pull request for jfoenix, https://github.com/bisq-network/bisq/pull/5835:
So you are experiencing a known issue.
Yes.
Downgrade to JDK 15.
I assume it is just a JDK issue, because that is what the comment says, and an additional downgrade to JavaFX 15 in not required.
The asker tried a downgrade of just the JDK version and notes that it works in comments:
If you continue to experience issues such as this with jfoenix, contact the jfoenix project maintainers directly.