Lucee 5.3.5.92 Error (expression)
Message invalid call of the function formatWalkingTime, second Argument (max) is of invalid type, can't cast String [] to a value of type [numeric]
Detail the function is located at [/var/www/vhosts/trampernz/public_html/custom/viewhelpers/trackviewhelper.cfc]
Stacktrace The Error Occurred in
/var/www/vhosts/trampernz/public_html/custom/views/object/elements/track-icons.cfm: line 9
7: <div class="key-data-block-notes">
8: <li><tag:icon name="directions_walk" class="material-icons" title="Walking time"><span class="track-keys-value">
9: <cfset walkingTime = vh.formatWalkingTime(attributes.viewModel.richRecord.walkingTime_min, attributes.viewModel.richRecord.walkingTime_max)>
10: <cfoutput>
11: <cfif

called from /var/www/vhosts/trampernz/public_html/whio/framework/controller.cfc: line 230
called from /var/www/vhosts/trampernz/public_html/custom/controllers/object.cfc: line 181
called from /var/www/vhosts/trampernz/public_html/whio/framework/frontcontroller.cfc: line 41
called from /var/www/vhosts/trampernz/public_html/whio/framework/frontcontroller.cfc: line 94
called from /var/www/vhosts/trampernz/public_html/index.cfm: line 14
Java Stacktrace lucee.runtime.exp.UDFCasterException: invalid call of the function formatWalkingTime, second Argument (max) is of invalid type, can't cast String [] to a value of type [numeric]
  at lucee.runtime.type.UDFImpl.castToAndClone(UDFImpl.java:114)
  at lucee.runtime.type.UDFImpl.defineArguments(UDFImpl.java:130)
  at lucee.runtime.type.UDFImpl._call(UDFImpl.java:341)
  at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217)
  at lucee.runtime.ComponentImpl._call(ComponentImpl.java:646)
  at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
  at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1898)
  at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
  at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1709)
  at custom.views.object.elements.track_icons_cfm270$cf.call(/custom/views/object/elements/track-icons.cfm:9)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:913)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:836)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:829)
  at lucee.runtime.tag.CFTag.doInclude(CFTag.java:319)
  at lucee.runtime.tag.CFTag.cfmlStartTag(CFTag.java:245)
  at lucee.runtime.tag.CFTag.doStartTag(CFTag.java:179)
  at whio.framework.controller_cfc$cf.udfCall2(/whio/framework/controller.cfc:230)
  at whio.framework.controller_cfc$cf.udfCall(/whio/framework/controller.cfc)
  at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
  at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
  at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217)
  at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:779)
  at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
  at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1709)
  at custom.controllers.object_cfc$cf.udfCall(/custom/controllers/object.cfc:181)
  at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
  at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
  at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:207)
  at lucee.runtime.ComponentImpl._call(ComponentImpl.java:647)
  at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
  at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1917)
  at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:898)
  at lucee.runtime.functions.dynamicEvaluation.Invoke.call(Invoke.java:49)
  at whio.framework.frontcontroller_cfc$cf.udfCall(/whio/framework/frontcontroller.cfc:41)
  at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
  at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
  at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217)
  at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:779)
  at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
  at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1709)
  at whio.framework.frontcontroller_cfc$cf.udfCall(/whio/framework/frontcontroller.cfc:94)
  at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
  at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
  at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217)
  at lucee.runtime.ComponentImpl._call(ComponentImpl.java:646)
  at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
  at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1898)
  at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
  at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1709)
  at index_cfm$cf$1js.call(/index.cfm:14)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:913)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:836)
  at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:216)
  at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:42)
  at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2415)
  at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2405)
  at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2380)
  at lucee.runtime.engine.Request.exe(Request.java:43)
  at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1126)
  at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1072)
  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:742)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  at java.lang.Thread.run(Thread.java:748)
 
Timestamp 19/06/24 11:07:38 PM