1 Reply Latest reply on Jun 29, 2015 5:31 AM by angelosc79357396

    incorrect TemplateNotFoundException on coldfusion 11 win2012x64

    angelosc79357396

      Hi everyone, We have recently upgraded our website infrastructure from Win2003 Coldfusion 9 to Win2012R2x64 with Coldfusion 11.

      We sorted everything out except one error that keeps coming up.

       

      From time to time, Coldfusion throws a TemplateNotFoundException for some cfm files which exist on the filesystem. These files they have high hit ratio and coldfusion serves them correctly 99% of the time, but once in a while (maybe 10 times every 50000 requests) they throw the templateNotFoundException to the user.

      In coldfusion-error.log I can see the following error "org.apache.coyote.ajp.AjpProcessor getRealPathFromServer SEVERE: Error in getRealPathFromConn java.io.IOException: Socket read failed" which lead me to believe this is an IIS connector issue (I'm not 100% sure)

       

      I have tried to optimize the IIS connector using the parameters found on the following article but didn't help

      http://blogs.coldfusion.com/post.cfm/coldfusion-11-iis-connector-tuning

       

      Our IIS server (8.5) has only 1 site and I configured it using the individual site option of wsconfig (64bit). Later I changed the following parameters:

      in worker.properties

      worker.cfusion.max_reuse_connections=270

      worker.cfusion.connection_pool_size=800

      worker.cfusion.connection_pool_timeout=60

       

      and in servers.xml

      <Connector ... maxThreads="800" connectionTimeout ="60000"> </Connector>

       

      Following are the details of our setup, the coldfusion exception, and the exception in coldfusion-error.log . I would appreciate if anyone could help, as this is driving me crazy for over a week now.

       

      Thanks in advance!

      Angelos Constantinou

       

       

       

      Server OS version

      --------------

      Windows 2012x64 bit R2 Standard 4GB Ram

      IIS Version 8.5.9600.16384

       

       

      Coldfusion /connector/java version

      ------------------

      Coldfusion version: 11,0,05,293506

      isap_redirect.dll version : 1.2.40.0

      Tomcat version  : 7.0.54.0

      Java Version 1.7.0_55

      Java VM Version 24.55-b03 

      Fusion reactor: FusionReactor STD Edition v.5

       

       

      Coldfusion exception stacktrace:

      =========================

      File not found: /myfiles/index.cfm

       

      coldfusion.runtime.TemplateNotFoundException: File not found: /myfiles/index.cfm at coldfusion.filter.PathFilter.invoke(PathFilter.java:145) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:97) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorR equestHandler.java:472) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest( FusionReactorRequestHandler.java:312) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(Fusio nReactorRequestHandler.java:192) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorR equestHandler.java:507) at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCor eFilter.java:36) at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:79) at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactor StaticFilter.java:53) at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChai nPointCut.java:41) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source)

       

       

      =============================================================================

      Exception in coldfusion-error.log

       

      Jun 25, 2015 8:36:19 AM org.apache.coyote.ajp.AjpProcessor getRealPathFromServer

      SEVERE: Error in getRealPathFromConn

      java.io.IOException: Socket read failed

        at org.apache.coyote.ajp.AjpProcessor.read(AjpProcessor.java:325)

        at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:447)

        at org.apache.coyote.ajp.AjpProcessor.readString(AjpProcessor.java:427)

        at org.apache.coyote.ajp.AjpProcessor.getRealPathFromServer(AjpProcessor.java:409)

        at org.apache.coyote.ajp.AbstractAjpProcessor.getRealPath(AbstractAjpProcessor.java:1292)

        at org.apache.naming.resources.FileDirContext.doGetRealPath(FileDirContext.java:202)

        at org.apache.naming.resources.BaseDirContext.getRealPath(BaseDirContext.java:424)

        at org.apache.catalina.core.StandardContext.getRealPath(StandardContext.java:4660)

        at org.apache.catalina.core.ApplicationContext.getRealPath(ApplicationContext.java:440)

        at org.apache.catalina.core.ApplicationContextFacade.getRealPath(ApplicationContextFacade.ja va:333)

        at coldfusion.runtime.ServletContextWrapper.doGetRealPath(ServletContextWrapper.java:179)

        at coldfusion.runtime.ServletContextWrapper._doGetRealPath(ServletContextWrapper.java:116)

        at coldfusion.runtime.ServletContextWrapper.getRealPath(ServletContextWrapper.java:98)

        at coldfusion.filter.PathFilter.resolveApplicationScope(PathFilter.java:188)

        at coldfusion.filter.PathFilter.invoke(PathFilter.java:125)

        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)

        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)

        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)

        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58)

        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

        at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)

        at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151)

        at coldfusion.CfmServlet.service(CfmServlet.java:219)

        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )

        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

        at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:97)

        at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorR equestHandler.java:472)

        at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest( FusionReactorRequestHandler.java:312)

        at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(Fusio nReactorRequestHandler.java:192)

        at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorR equestHandler.java:507)

        at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCor eFilter.java:36)

        at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterCha in.java:79)

        at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactor StaticFilter.java:53)

        at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChai nPointCut.java:41)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)

        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199)

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)

        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Unknown Source)