Unable to load groovy plugin
Hi All,
I am having an issue with loading the Groovy plugin in both Gate 9.0.1 and the 9.1 Snapshot.
Here is the beginning of the error
- Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private java.io.File(java.lang.String,java.io.File) accessible: module java.base does not "opens java.io" to unnamed module @2a8105f1
Hi All,
I am having an issue with loading the Groovy plugin in both Gate 9.0.1 and the 9.1 Snapshot.
Here is the beginning of the error
- Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private java.io.File(java.lang.String,java.io.File) accessible: module java.base does not "opens java.io" to unnamed module @2a8105f1
I can provide more of it if needed.Best,Huw
Hi Huw,
From a quick test I can confirm that it's the java version that's at issue. This is related to the stricter encapsulation of the core java modules that's now being enforced. I do have a way of opening all the modules to avoid the initial error, unfortunately it seems that the version of groovy used in the plugin still won't work with Java 19. It also seems not to work with Java 17 either.
I'm not sure what the last version of Java is that it will work with, but it seems to work reliably with Java 11. It also works with an early access install of Java 14 that I still have installed on my laptop, but I don't know if that is true for the Java 14 final release.
I did try simply updating the version of groovy used by the plugin but that seemed to cause other issues (I couldn't even build the plugin) so other than dropping back down to an earlier Java version I don't currently have an easy solution I'm afraid.
I've opened an issue so there is somewhere we can keep a note of this (https://github.com/GateNLP/gateplugin-Groovy/issues/4) but not sure when we'll get time to have a proper look at it, sorry,
Mark
Hi Mark,
Java 19.0.1
Best,Huw