So after nearly of a month of trying to troubleshoot this myself, I make some significant progress to reproduce the problem.
the below error happens when 2-3 concurrent request hit the same box and/or same page at the same time.
Error autowiring handlers.Main. Key [email.emailservice] doesn't exist in Map (java.util.concurrent.ConcurrentHashMap) keys are [referral.referralnoteservice]
at railo.runtime.tag.Throw._doStartTag(Throw.java:142):142
at railo.runtime.tag.Throw.doStartTag(Throw.java:131):131
at coldbox.system.frameworksupertype_cfc$cf.udfCall4(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/FrameworkSupertype.cfc:413):413](http://test.comarket.com/ROOT/coldbox/system/FrameworkSupertype.cfc:413):413)
at coldbox.system.frameworksupertype_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/FrameworkSupertype.cfc):-1](http://test.comarket.com/ROOT/coldbox/system/FrameworkSupertype.cfc):-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:376):376
at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:774):774
at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1459):1459
at coldbox.system.interceptors.autowire_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/interceptors/Autowire.cfc:140):140](http://test.comarket.com/ROOT/coldbox/system/interceptors/Autowire.cfc:140):140)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:738):738
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1444):1444
at coldbox.system.interceptors.autowire_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/interceptors/Autowire.cfc:91):91](http://test.comarket.com/ROOT/coldbox/system/interceptors/Autowire.cfc:91):91)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:376):376
at railo.runtime.ComponentImpl._call(ComponentImpl.java:610):610
at railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496
at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1809):1809
at railo.runtime.tag.Invoke.doComponent(Invoke.java:210):210
at railo.runtime.tag.Invoke.doEndTag(Invoke.java:183):183
at coldbox.system.web.context.interceptorstate_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/context/InterceptorState.cfc:139):139](http://test.comarket.com/ROOT/coldbox/system/web/context/InterceptorState.cfc:139):139)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:738):738
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1444):1444
at coldbox.system.web.context.interceptorstate_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/context/InterceptorState.cfc:86):86](http://test.comarket.com/ROOT/coldbox/system/web/context/InterceptorState.cfc:86):86)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609
at railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1444):1444
at coldbox.system.web.services.interceptorservice_cfc$cf.udfCall1(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/services/InterceptorService.cfc:114):114](http://test.comarket.com/ROOT/coldbox/system/web/services/InterceptorService.cfc:114):114)
at coldbox.system.web.services.interceptorservice_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/services/InterceptorService.cfc):-1](http://test.comarket.com/ROOT/coldbox/system/web/services/InterceptorService.cfc):-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609
at railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1444):1444
at coldbox.system.web.services.handlerservice_cfc$cf.udfCall1(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/services/HandlerService.cfc:84):84](http://test.comarket.com/ROOT/coldbox/system/web/services/HandlerService.cfc:84):84)
at coldbox.system.web.services.handlerservice_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/services/HandlerService.cfc):-1](http://test.comarket.com/ROOT/coldbox/system/web/services/HandlerService.cfc):-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:738):738
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1444):1444
at coldbox.system.web.services.handlerservice_cfc$cf.udfCall1(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/services/HandlerService.cfc:133):133](http://test.comarket.com/ROOT/coldbox/system/web/services/HandlerService.cfc:133):133)
at coldbox.system.web.services.handlerservice_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/services/HandlerService.cfc):-1](http://test.comarket.com/ROOT/coldbox/system/web/services/HandlerService.cfc):-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609
at railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1444):1444
at coldbox.system.web.controller_cfc$cf.udfCall5(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/Controller.cfc:485):485](http://test.comarket.com/ROOT/coldbox/system/web/Controller.cfc:485):485)
at coldbox.system.web.controller_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/web/Controller.cfc):-1](http://test.comarket.com/ROOT/coldbox/system/web/Controller.cfc):-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609
at railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1444):1444
at coldbox.system.coldbox_cfc$cf.udfCall1(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/Coldbox.cfc:230):230](http://test.comarket.com/ROOT/coldbox/system/Coldbox.cfc:230):230)
at coldbox.system.coldbox_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/coldbox/system/Coldbox.cfc):-1](http://test.comarket.com/ROOT/coldbox/system/Coldbox.cfc):-1)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:738):738
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1444):1444
at application_cfc$cf.udfCall(/usr/local/tomcat/[test.comarket.com/ROOT/Application.cfc:101):101](http://test.comarket.com/ROOT/Application.cfc:101):101)
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609
at railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794
at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:347):347
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:106):106
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:23):23
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1991):1991
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1958):1958
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:297):297
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722):722
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304):304
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224):224
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185):185
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151):151
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:405):405
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193):193
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515):515
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300):300
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886):886
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908):908
at java.lang.Thread.run(Thread.java:680):680
Ignore the exact auto-wire error as it changes from one of a dozen injected properties in one of my models. If I hit the website 1 time, it works fine, If it keep refreshing, it works fine. If I run apache benchmark or other benchmarking tool, it causes the above error to happen.
Now, it appears “to me” and I am really new to all of this stuff, that the data from one hashMap request is bleeding over to another request. Is that even possible?
I can reproduce the error over and over again if I increase the concurrent request. If I exceed 5 concurrent request, the site crashes for 60 seconds while the exclusive locks are released.
I’ve emailed ColdBox group and I’ve emailed Railo. But no one responds with an answer.
ANY help would be greatly appreciated.
You are welcome to try this yourself.
hit my test server at http://test.comarket.com - page loads just fine.
Then from mac or linux prompt, run ab -n 100 -c 1 http://test.comarket.com/ and refresh your browser, it will happen to you. You might have to refresh a few times to see the error.
If you increase the -c to 3 or even 5, it will crash the server for a minute or two.
Jeremy R. DeYoung
Phone:615.261.8201
RantsFromAMadMan.com