Seemingly random but regular lucee.runtime.exp.TemplateException: lucee.transformer.library.tag.TagLibException popping up

Description

Using ColdBox, I regularly get a Lucee compiler exception (I think that's what it is):

lucee.runtime.exp.TemplateException: lucee.transformer.library.tag.TagLibException

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:

to 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.

Environment

Linux
Java 11
Tested with latest 5.3.4 and 5.3.6
This is a development setup

Activity

Show:
Ionut Ivan
November 27, 2020, 5:48 PM

hi
today I tried with the Lucee version lucee@5.3.8-SNAPSHOT+112

and I get the same error. Here you can find the complete stacktrace:

https://gistpreview.github.io/?896f19c4cc8491cacbd6aa29d1c910d4

I do not know how to avoid this error...
let me know if you need more information!

Michael Offner
November 28, 2020, 3:48 AM

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

Michael Offner
November 28, 2020, 3:56 AM

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

Michael Offner
November 28, 2020, 4:10 AM

can you please give that build a try.

Ionut Ivan
December 7, 2020, 8:21 AM

hi ,
I have been using lucee@5.3.8-SNAPSHOT+117 version for several days and until now I have not had any problems

Fixed

Assignee

Michael Offner

Reporter

Kai Koenig

Priority

New

Labels

Fix versions

Sprint

5.3.8 Sprint 3

Affects versions