Add JVM-argument --add-opens to fix Reload Configurations classloading issue #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix 1 is needed if you click at
Reload Configurations
in the console. Without it, the-add-opens
parameters are not correctly pass through the classloaders who are trying to load the classes in the Configurations used. The first load of configurations works fine, but reloads are failing with:2024-03-13 10:52:02,045 ERROR [http-nio-80-exec-9] {} lifecycle.ApplicationMessageEvent - Application [MyFirstFrank] an exception occurred while loading configuration [IAF_Util] java.lang.NullPointerException: Cannot invoke "String.hashCode()" because "<local2>" is null
With the default examples inside
frank-runner
I did not get this reproduced. But with the Academy project../MyFirstFrank
it happened.Adding this
jvmargs
fixes the below class loading issue and the previous strange NPE is gone as well.Here is the used configuration (renamed, because GitHub refuses .xml files):
Configuration.xml.txt
Part of the stacktrace which is solved by this PR: