Error key doesn't exist

Got this strange error now while code runs without any issue on CF11

Messagestringkey [DEFAULTLANG] doesn’t existStackTracestringkey
[DEFAULTLANG] doesn’t exist at
lucee.runtime.type.util.StructSupport.invalidKey(Unknown Source):-1 at
lucee.runtime.type.StructImpl.get(Unknown Source):-1 at
app.core_cfc$cf.udfCall1(C:\lucee\tomcat\webapps\ROOT\app\core.cfc:202):202
at app.core_cfc$cf.udfCall(C:\lucee\tomcat\webapps\ROOT\app\core.cfc):-1 at
lucee.runtime.type.UDFImpl.implementation(Unknown Source):-1 at
lucee.runtime.type.UDFImpl._call(Unknown Source):-1 at
lucee.runtime.type.UDFImpl.call(Unknown Source):-1 at
lucee.runtime.ComponentImpl._call(Unknown Source):-1 at
lucee.runtime.ComponentImpl._call(Unknown Source):-1 at
lucee.runtime.ComponentImpl.call(Unknown Source):-1 at
lucee.runtime.listener.ModernAppListener.call(Unknown Source):-1 at
lucee.runtime.listener.ModernAppListener._onRequest(Unknown Source):-1 at
lucee.runtime.listener.MixedAppListener.onRequest(Unknown Source):-1 at
lucee.runtime.PageContextImpl.execute(Unknown Source):-1 at
lucee.runtime.PageContextImpl.execute(Unknown Source):-1 at
lucee.runtime.engine.CFMLEngineImpl.serviceCFML(Unknown Source):-1 at
lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727):727 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303):303
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241):241
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220):220
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122):122
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504):504
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170):170
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103):103
at mod_cfml.core.invoke(core.java:132):132 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950):950
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116):116
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421):421
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074):1074
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611):611
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314):314
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142):1142
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617):617
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
at java.lang.Thread.run(Thread.java:745):745
Lice 202 is called onRequestStart

if( !structKeyExists( request, “lang” ) ) {

    request.lang = application.defaultLang;

}

I’m using framework one here and initialising the application. This
variable is defaulted higher using on public void function
setupApplication()

param name = “application.defaultLang” default=“fr”;

So the variable should here have a default param and not throwing such
error.

I’ve even setting in setupapplication

  application.defaultLang="fr"

And still getting the error?

The issue is solved if I set the param in onRequestStart.

It’s like I’m unable to fetch default application variable.

This worked fine ON CF11 while lucee is throwing this error and tried my
best to track it. Seem default param can’t be used onRequestStart.

Any one faced this before?

Haven’t seen/used setupApplication - is that something added in ACF11? If
so, you might add a customized onApplicationStart for lucee:

public function onApplicationStart() {
if (!isNull(server.lucee)) {
setupApplication();
}
}

Or more simply, just rename your setupApplication to onApplicationStart…On Thursday, April 23, 2015 at 12:45:12 PM UTC-5, Mehdi B wrote:

Got this strange error now while code runs without any issue on CF11

Messagestringkey [DEFAULTLANG] doesn’t existStackTracestringkey
[DEFAULTLANG] doesn’t exist at
lucee.runtime.type.util.StructSupport.invalidKey(Unknown Source):-1 at
lucee.runtime.type.StructImpl.get(Unknown Source):-1 at
app.core_cfc$cf.udfCall1(C:\lucee\tomcat\webapps\ROOT\app\core.cfc:202):202
at app.core_cfc$cf.udfCall(C:\lucee\tomcat\webapps\ROOT\app\core.cfc):-1 at
lucee.runtime.type.UDFImpl.implementation(Unknown Source):-1 at
lucee.runtime.type.UDFImpl._call(Unknown Source):-1 at
lucee.runtime.type.UDFImpl.call(Unknown Source):-1 at
lucee.runtime.ComponentImpl._call(Unknown Source):-1 at
lucee.runtime.ComponentImpl._call(Unknown Source):-1 at
lucee.runtime.ComponentImpl.call(Unknown Source):-1 at
lucee.runtime.listener.ModernAppListener.call(Unknown Source):-1 at
lucee.runtime.listener.ModernAppListener._onRequest(Unknown Source):-1 at
lucee.runtime.listener.MixedAppListener.onRequest(Unknown Source):-1 at
lucee.runtime.PageContextImpl.execute(Unknown Source):-1 at
lucee.runtime.PageContextImpl.execute(Unknown Source):-1 at
lucee.runtime.engine.CFMLEngineImpl.serviceCFML(Unknown Source):-1 at
lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727):727 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303):303
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241):241
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220):220
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122):122
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504):504
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170):170
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103):103
at mod_cfml.core.invoke(core.java:132):132 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950):950
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116):116
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421):421
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074):1074
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611):611
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314):314
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142):1142
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617):617
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
at java.lang.Thread.run(Thread.java:745):745
Lice 202 is called onRequestStart

if( !structKeyExists( request, “lang” ) ) {

    request.lang = application.defaultLang;

}

I’m using framework one here and initialising the application. This
variable is defaulted higher using on public void function
setupApplication()

param name = “application.defaultLang” default=“fr”;

So the variable should here have a default param and not throwing such
error.

I’ve even setting in setupapplication

  application.defaultLang="fr"

And still getting the error?

The issue is solved if I set the param in onRequestStart.

It’s like I’m unable to fetch default application variable.

This worked fine ON CF11 while lucee is throwing this error and tried my
best to track it. Seem default param can’t be used onRequestStart.

Any one faced this before?

I’m using FW/1 here and it’s in core.cfc framework startup.

Nope works fine in ACF10 and 11 so now mainly issue when running the same
code. I ended up blaming the code there for default not run.On Thursday, April 23, 2015 at 8:06:36 PM UTC+2, Jesse Shaffer wrote:

Haven’t seen/used setupApplication - is that something added in ACF11? If
so, you might add a customized onApplicationStart for lucee:

public function onApplicationStart() {
if (!isNull(server.lucee)) {
setupApplication();
}
}

Or more simply, just rename your setupApplication to onApplicationStart…

On Thursday, April 23, 2015 at 12:45:12 PM UTC-5, Mehdi B wrote:

Got this strange error now while code runs without any issue on CF11

Messagestringkey [DEFAULTLANG] doesn’t existStackTracestringkey
[DEFAULTLANG] doesn’t exist at
lucee.runtime.type.util.StructSupport.invalidKey(Unknown Source):-1 at
lucee.runtime.type.StructImpl.get(Unknown Source):-1 at
app.core_cfc$cf.udfCall1(C:\lucee\tomcat\webapps\ROOT\app\core.cfc:202):202
at app.core_cfc$cf.udfCall(C:\lucee\tomcat\webapps\ROOT\app\core.cfc):-1 at
lucee.runtime.type.UDFImpl.implementation(Unknown Source):-1 at
lucee.runtime.type.UDFImpl._call(Unknown Source):-1 at
lucee.runtime.type.UDFImpl.call(Unknown Source):-1 at
lucee.runtime.ComponentImpl._call(Unknown Source):-1 at
lucee.runtime.ComponentImpl._call(Unknown Source):-1 at
lucee.runtime.ComponentImpl.call(Unknown Source):-1 at
lucee.runtime.listener.ModernAppListener.call(Unknown Source):-1 at
lucee.runtime.listener.ModernAppListener._onRequest(Unknown Source):-1 at
lucee.runtime.listener.MixedAppListener.onRequest(Unknown Source):-1 at
lucee.runtime.PageContextImpl.execute(Unknown Source):-1 at
lucee.runtime.PageContextImpl.execute(Unknown Source):-1 at
lucee.runtime.engine.CFMLEngineImpl.serviceCFML(Unknown Source):-1 at
lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727):727 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303):303
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241):241
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220):220
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122):122
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504):504
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170):170
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103):103
at mod_cfml.core.invoke(core.java:132):132 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950):950
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116):116
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421):421
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074):1074
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611):611
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314):314
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142):1142
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617):617
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
at java.lang.Thread.run(Thread.java:745):745
Lice 202 is called onRequestStart

if( !structKeyExists( request, “lang” ) ) {

    request.lang = application.defaultLang;

}

I’m using framework one here and initialising the application. This
variable is defaulted higher using on public void function
setupApplication()

param name = “application.defaultLang” default=“fr”;

So the variable should here have a default param and not throwing such
error.

I’ve even setting in setupapplication

  application.defaultLang="fr"

And still getting the error?

The issue is solved if I set the param in onRequestStart.

It’s like I’m unable to fetch default application variable.

This worked fine ON CF11 while lucee is throwing this error and tried my
best to track it. Seem default param can’t be used onRequestStart.

Any one faced this before?