Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Lucee dialect is disabled invoking fuselessEvent #4

Open
chapmandu opened this issue Jul 17, 2022 · 0 comments
Open

The Lucee dialect is disabled invoking fuselessEvent #4

chapmandu opened this issue Jul 17, 2022 · 0 comments

Comments

@chapmandu
Copy link

chapmandu commented Jul 17, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant