class lucee.transformer.bytecode.statement.ExpressionAsStatement cannot be cast to class lucee.transformer.bytecode.statement.tag.TagComponent (lucee.transformer.bytecode.statement.ExpressionAsStatement and lucee.transformer.bytecode.statement.tag.TagCom

Lucee 5.4.6.9 Error (java.lang.ClassCastException)
Message class lucee.transformer.bytecode.statement.ExpressionAsStatement cannot be cast to class lucee.transformer.bytecode.statement.tag.TagComponent (lucee.transformer.bytecode.statement.ExpressionAsStatement and lucee.transformer.bytecode.statement.tag.TagComponent are in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @31133b6e)

Please write at least a little context and the code that generates this error.
Thanks.

2 Likes

Post your code, your platform you are trying to run it on so we can help

2 Likes

Only thing I can see from your exception is that you are using some sort of java library and not passing the variables correctly to that library. As @Roberto_Marzialetti and @Terry_Whitney already said, without any context or code we won’t be able to help any further.

1 Like

Consider also answering:

  1. Has this same request run before (on this Lucee install)?
  2. Has any cfm page run on this Lucee install? If so what’s changed?
  3. How did you install or run Lucee?
  4. Can you get to the Lucee admin?