We're updating the issue view to help you get more done. 

CacheKeyExists mix of named / unnamed arguments throw lucee.transformer.bytecode.expression.var

Description

The mix of named and unnamed params for CacheKeyExists throws an unexpected error message.

1 writeDump(CacheIdExists("OPENED_PLAN_2801_91400_7468",cacheName="Redline"));

throws

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 lucee.runtime.exp.NativeException: lucee.transformer.bytecode.expression.var.Argument cannot be cast to lucee.transformer.bytecode.expression.var.NamedArgument at lucee.transformer.bytecode.expression.var.VariableImpl.toNamedArguments(VariableImpl.java:813) at lucee.transformer.bytecode.expression.var.VariableImpl._writeOutFirstBIF(VariableImpl.java:416) at lucee.transformer.bytecode.expression.var.VariableImpl._writeOutFirst(VariableImpl.java:391) at lucee.transformer.bytecode.expression.var.VariableImpl._writeOut(VariableImpl.java:244) at lucee.transformer.bytecode.expression.var.VariableImpl._writeOut(VariableImpl.java:222) at lucee.transformer.bytecode.expression.ExpressionBase.writeOut(ExpressionBase.java:51) at lucee.transformer.bytecode.expression.var.Argument._writeOut(Argument.java:69) at lucee.transformer.bytecode.expression.ExpressionBase.writeOut(ExpressionBase.java:51) at lucee.transformer.bytecode.util.ExpressionUtil.writeOutExpressionArray(ExpressionUtil.java:70) at lucee.transformer.bytecode.expression.var.VariableImpl._writeOutFirstBIF(VariableImpl.java:532) at lucee.transformer.bytecode.expression.var.VariableImpl._writeOutFirst(VariableImpl.java:391) at lucee.transformer.bytecode.expression.var.VariableImpl._writeOut(VariableImpl.java:244) at lucee.transformer.bytecode.expression.var.VariableImpl._writeOut(VariableImpl.java:222) at lucee.transformer.bytecode.expression.ExpressionBase.writeOut(ExpressionBase.java:51) at lucee.transformer.bytecode.statement.ExpressionAsStatement._writeOut(ExpressionAsStatement.java:60) at lucee.transformer.bytecode.statement.StatementBase.writeOut(StatementBase.java:82) at lucee.transformer.bytecode.util.ExpressionUtil.writeOut(ExpressionUtil.java:140) at lucee.transformer.bytecode.BodyBase.writeOut(BodyBase.java:199) at lucee.transformer.bytecode.BodyBase.writeOut(BodyBase.java:151) at lucee.transformer.bytecode.BodyBase._writeOut(BodyBase.java:144) at lucee.transformer.bytecode.FlowControlBody._writeOut(FlowControlBody.java:39) at lucee.transformer.bytecode.statement.StatementBase.writeOut(StatementBase.java:82) at lucee.transformer.bytecode.statement.tag.TagScript._writeOut(TagScript.java:42) at lucee.transformer.bytecode.statement.StatementBase.writeOut(StatementBase.java:82) at lucee.transformer.bytecode.util.ExpressionUtil.writeOut(ExpressionUtil.java:140) at lucee.transformer.bytecode.BodyBase.writeOut(BodyBase.java:199) at lucee.transformer.bytecode.BodyBase.writeOut(BodyBase.java:151) at lucee.transformer.bytecode.Page.writeOutCallBody(Page.java:1711) at lucee.transformer.bytecode.Page.writeOutCall(Page.java:1679) at lucee.transformer.bytecode.Page.execute(Page.java:665) at lucee.runtime.compiler.CFMLCompilerImpl._compile(CFMLCompilerImpl.java:131) at lucee.runtime.compiler.CFMLCompilerImpl.compile(CFMLCompilerImpl.java:74) at lucee.runtime.PageSourceImpl._compile(PageSourceImpl.java:400) at lucee.runtime.PageSourceImpl.compile(PageSourceImpl.java:368) at lucee.runtime.PageSourceImpl.loadPhysical(PageSourceImpl.java:309) at lucee.runtime.PageSourceImpl.loadPageThrowTemplateException(PageSourceImpl.java:218) at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:961) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:927) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823) at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:66) at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:45) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2464) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2454) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2427) at lucee.runtime.engine.Request.exe(Request.java:44) at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1090) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1038) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassCastException: lucee.transformer.bytecode.expression.var.Argument cannot be cast to lucee.transformer.bytecode.expression.var.NamedArgument ... 71 more

Environment

CentOS 7.5

Status

Assignee

Michael Offner

Reporter

adiedler@tecracer.de

Labels

None

Affects versions

5.2.9.31

Priority

Minor