Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-3074

CFStoredProc Tags Using CachedWithin Throw Exception on 4.2.0.009

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.0.009
    • Fix Version/s: 4.3.0.000, 4.2.1.000
    • Labels:
      None
    • Environment:

      Reproduced on: Win 8.1 pro (64-bit)
      Reproduced on: Windows web 2008 R2

      Description

      Railo throws a NullPointer Exception if a <cfstoredproc> makes use of the cachedwithin attribute.

      This is my code:

      /testing/cachedwithin.cfm
      <cfstoredproc procedure="spweb_ZipCodes_LookupLatLon" datasource="#Application.DSN#" cachedwithin="#CreateTimeSpan(0,0,10,0)#">
          <cfprocparam cfsqltype="cf_sql_varchar" value="57103">
          <cfprocresult name="rsLatLon" resultset="1">
      </cfstoredproc>
      

      This was the exception stack trace:

      java.lang.NullPointerException
      	at railo.runtime.tag.StoredProc.doEndTag(StoredProc.java:506):506
      	at testing.cachedwithin_cfm$cf.call(/testing/cachedwithin.cfm:4):4
      	at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:884):884
      	at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:865):865
      	at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:206):206
      	at railo.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:84):84
      	at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2218):2218
      	at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2185):2185
      	at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:332):332
      	at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728):728
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51):51
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243):243
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502):502
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100):100
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408):408
      	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603):603
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145):1145
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615):615
      	at java.lang.Thread.run(Thread.java:744):744
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                awayken Miles Rausch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: