pixel

Greater Vancouver's Oldest Listings

,

,

Lucee 4.5.3.020 Error (expression)
Message can't cast [] to date value
Stacktrace The Error Occurred in
C:\home\andrewsgroup.ca\wwwroot\top40.cfm: line 140
138: <div class="price">
139: <cfset listdate= #Left(get_top40.field_L_UpdateDate,10)#>
140: <cfset days = dateDiff("d", listdate, now()) />
141: <cfif #days# is 0>New Today</cfif>
142: <cfif #days# is 1>Listed Yesterday</cfif>

Java Stacktrace can't cast [] to date value
  at lucee.runtime.op.date.DateCaster.toDateAdvanced(DateCaster.java:82):82
  at lucee.runtime.op.Caster.toDate(Caster.java:2697):2697
  at top40_cfm$cf.call(C:\home\andrewsgroup.ca\wwwroot\top40.cfm:140):140
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:954):954
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:906):906
  at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:225):225
  at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:37):37
  at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2265):2265
  at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2228):2228
  at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:456):456
  at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:47):47
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729):729
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291):291
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239):239
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217):217
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106):106
  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502):502
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142):142
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79):79
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88):88
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518):518
  at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:844):844
  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673):673
  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500):1500
  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456):1456
  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
 
Timestamp 1/23/18 7:24:50 PM CST