Using ColdBox, I regularly get a Lucee compiler exception (I think that's what it is):
The typical use case is making a change to a handler CFC, saving the file, re-running a call to the API endpoint attached to that handler and all of a sudden getting the above exception.
A recent example is changing from this:
The file is syntactically correct in both cases, it worked fine before the change. The I made the change, getting the exception and the endpoint breaks obviously. Even changing it back to the previous code, re-initing ColdBox won't do anything. All the other endpoints in my system will continue to work fine and the only way to fix the broken one is to restart the Lucee server.
ColdBox error stack:
Here is the top part of the stack.
Attached the full Java stack trace as a text file.
Tested with latest 5.3.4 and 5.3.6
This is a development setup
today I tried with the Lucee version firstname.lastname@example.org-SNAPSHOT+112
and I get the same error. Here you can find the complete stacktrace:
I do not know how to avoid this error...
let me know if you need more information!
stacktrace has given more details, thanks for it
really strange, i assume it is related to the JVM version, maybe a felix update is necessary
i think this is the explanation
Startup parameter atlassian.org.osgi.framework.bootdelegation has been defined, which overrides Jira's defaults. This parameter is missing jdk.internal.reflect and jdk.internal.reflect.*, which is required for Atlassian OSGi plugins to load correctly on Java 11 and above.
But of course felix itself should not fail on this, so i assume a update of felix is necessary, but i will aslso add “jdk.internal.reflect“ to bootdelegation
can you please give that build a try.
I have been using email@example.com-SNAPSHOT+117 version for several days and until now I have not had any problems