fuseless icon indicating copy to clipboard operation
fuseless copied to clipboard

The Lucee dialect is disabled invoking fuselessEvent

Open chapmandu opened this issue 3 years ago • 0 comments

Invoking fuselessEvent with Handler: com.foundeo.fuseless.EventLambdaHandler::handleRequest results in the The Lucee dialect is disabled, exception below.

lucee.runtime.exp.ApplicationException: The Lucee dialect is disabled, to enable the dialect set the environment variable or system property "lucee.enable.dialect" to "true" or set the attribute "allow-lucee-dialect" to "true" with the "compiler" tag inside the lucee-server.xml.: java.io.IOException
java.io.IOException: lucee.runtime.exp.ApplicationException: The Lucee dialect is disabled, to enable the dialect set the environment variable or system property "lucee.enable.dialect" to "true" or set the attribute "allow-lucee-dialect" to "true" with the "compiler" tag inside the lucee-server.xml.
        at com.foundeo.fuseless.EventLambdaHandler.handleRequest(EventLambdaHandler.java:66)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
Caused by: lucee.runtime.exp.ApplicationException: The Lucee dialect is disabled, to enable the dialect set the environment variable or system property "lucee.enable.dialect" to "true" or set the attribute "allow-lucee-dialect" to "true" with the "compiler" tag inside the lucee-server.xml.
        at lucee.runtime.PageContextImpl.notSupported(PageContextImpl.java:1068)
        at lucee.runtime.component.ComponentLoader._search(ComponentLoader.java:159)
        at lucee.runtime.component.ComponentLoader._search(ComponentLoader.java:143)
        at lucee.runtime.component.ComponentLoader.searchComponent(ComponentLoader.java:82)
        at lucee.runtime.PageContextImpl.loadComponent(PageContextImpl.java:3262)
        at lucee.runtime.op.CreationImpl.createComponentFromName(CreationImpl.java:298)
        at lucee.runtime.op.CreationImpl.createComponentFromPath(CreationImpl.java:313)
        at com.foundeo.fuseless.EventLambdaHandler.handleRequest(EventLambdaHandler.java:60)
        ... 4 more
{
  "errorType": "java.io.IOException",
  "errorMessage": "lucee.runtime.exp.ApplicationException: The Lucee dialect is disabled, to enable the dialect set the environment variable or system property \"lucee.enable.dialect\" to \"true\" or set the attribute \"allow-lucee-dialect\" to \"true\" with the \"compiler\" tag inside the lucee-server.xml.",
  "stackTrace": [
    "com.foundeo.fuseless.EventLambdaHandler.handleRequest(EventLambdaHandler.java:66)",
    "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
    "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)",
    "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)",
    "java.base/java.lang.reflect.Method.invoke(Unknown Source)"
  ],
  "cause": {
    "errorType": "lucee.runtime.exp.ApplicationException",
    "errorMessage": "The Lucee dialect is disabled, to enable the dialect set the environment variable or system property \"lucee.enable.dialect\" to \"true\" or set the attribute \"allow-lucee-dialect\" to \"true\" with the \"compiler\" tag inside the lucee-server.xml.",
    "stackTrace": [
      "lucee.runtime.PageContextImpl.notSupported(PageContextImpl.java:1068)",
      "lucee.runtime.component.ComponentLoader._search(ComponentLoader.java:159)",
      "lucee.runtime.component.ComponentLoader._search(ComponentLoader.java:143)",
      "lucee.runtime.component.ComponentLoader.searchComponent(ComponentLoader.java:82)",
      "lucee.runtime.PageContextImpl.loadComponent(PageContextImpl.java:3262)",
      "lucee.runtime.op.CreationImpl.createComponentFromName(CreationImpl.java:298)",
      "lucee.runtime.op.CreationImpl.createComponentFromPath(CreationImpl.java:313)",
      "com.foundeo.fuseless.EventLambdaHandler.handleRequest(EventLambdaHandler.java:60)",
      "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
      "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)",
      "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)",
      "java.base/java.lang.reflect.Method.invoke(Unknown Source)"
    ]
  }
}

Using LUCEE_VERSION=5.3.9.141

I can work around it by adding

Environment:
        Variables:
          LUCEE_ENABLE_DIALECT: true

but feels like a hack.. or should at least be added to the template.yml.

Thanks for this great project!

chapmandu avatar Jul 17 '22 01:07 chapmandu