coldbox-modules / autodeploy Goto Github PK
View Code? Open in Web Editor NEWA module that detects new deploys and auto-restarts a ColdBox application with some added pizzazz
A module that detects new deploys and auto-restarts a ColdBox application with some added pizzazz
I'm getting the following exception during the postProcess phase of the final request of a deploy cycle (the request that detects a new deploy).
lucee.runtime.exp.ExpressionException: variable [THISINTERCEPTOR] doesn't exist at lucee.runtime.type.scope.UndefinedImpl.get(UndefinedImpl.java:233) at coldbox.system.web.context.interceptorstate_cfc$cf.udfCall1(/home/deploy/mergernetwork.regional/production/coldbox/system/web/context/InterceptorStat e.cfc:253) at coldbox.system.web.context.interceptorstate_cfc$cf.udfCall(/home/deploy/mergernetwork.regional/production/coldbox/system/web/context/InterceptorState .cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:105) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:337) at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:210) at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:779) at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:793) at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1585) at coldbox.system.web.context.interceptorstate_cfc$cf.udfCall1(/home/deploy/mergernetwork.regional/production/coldbox/system/web/context/InterceptorStat e.cfc:121) at coldbox.system.web.context.interceptorstate_cfc$cf.udfCall(/home/deploy/mergernetwork.regional/production/coldbox/system/web/context/InterceptorState .cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:105) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:337) at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:210) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580) at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1920) at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:793) at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1585) at coldbox.system.web.services.interceptorservice_cfc$cf.udfCall1(/home/deploy/mergernetwork.regional/production/coldbox/system/web/services/Interceptor Service.cfc:139) at coldbox.system.web.services.interceptorservice_cfc$cf.udfCall(/home/deploy/mergernetwork.regional/production/coldbox/system/web/services/InterceptorS ervice.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:105) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:337) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:224) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1903) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:752) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1575) at coldbox.system.bootstrap_cfc$cf.udfCall1(/home/deploy/mergernetwork.regional/production/coldbox/system/Bootstrap.cfc:280) at coldbox.system.bootstrap_cfc$cf.udfCall(/home/deploy/mergernetwork.regional/production/coldbox/system/Bootstrap.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:105) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:337) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:224) at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:770) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:752) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1575) at coldbox.system.bootstrap_cfc$cf.udfCall1(/home/deploy/mergernetwork.regional/production/coldbox/system/Bootstrap.cfc:353) at coldbox.system.bootstrap_cfc$cf.udfCall(/home/deploy/mergernetwork.regional/production/coldbox/system/Bootstrap.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:105) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:337) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:224) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1903) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:752) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1575) at application_cfc$cf.udfCall(/home/deploy/mergernetwork.regional/production/Application.cfc:53) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:105) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:337) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:224) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1903) at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:422) at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:134) at lucee.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:103) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2255) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2247) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2215) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:881) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at com.intergral.fusionreactor.filter.FusionReactorFilter.b(FusionReactorFilter.java:376) at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:254) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:676) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) 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)
My best guess at the moment is that some other interceptor in the chain also has a postProcess to fire but no longer exists due to the applicationStop() in this module's postProcess interception.
Would the correct way to fix this be to return true from this postProcess when a deploy is detected (stopping the interception chain)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.