--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
I am having exact same error with lucee + taffy (both most recent stable releases). Any thoughts on what is happening?
An unhandled exception occurred: <pre> ERROR WHEN LOGGING EXCEPTION Catch additional Struct Detail string ErrNumber number 0 ErrorCode string 0 Extended_Info string ExtendedInfo string Message string key [_TAFFY] doesn't exist (existing keys:applicationname) StackTrace string key [_TAFFY] doesn't exist (existing keys:applicationname) at lucee.commons.collection.AbstractMapPro.invalidKey(AbstractMapPro.java:753):753 at lucee.commons.collection.concurrent.ConcurrentHashMapPro$Segment.getE(ConcurrentHashMapPro.java:392):392 at lucee.commons.collection.concurrent.ConcurrentHashMapPro.g(ConcurrentHashMapPro.java:891):891 at lucee.runtime.type.StructImpl.get(StructImpl.java:116):116 at taffy.core.api_cfc$cf.udfCall1(/var/www/html/taffy/core/api.cfc:116):116 at taffy.core.api_cfc$cf.udfCall(/var/www/html/taffy/core/api.cfc):-1 at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:642):642 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524 at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1761):1761 at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:405):405 at lucee.runtime.listener.ModernAppListener.onError(ModernAppListener.java:392):392 at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2273):2273 at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2225):2225 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.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091):1091 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 TagContext Array 1 Struct codePrintHTML string 114: </cfif><br> 115: <br> <b>116: <cfset logger = createObject("component", application._taffy.settings.exceptionLogAdapter).init(</b><br> 117: application._taffy.settings.exceptionLogAdapterConfig<br> 118: ) /><br> codePrintPlain string 114: </cfif> 115: 116: <cfset logger = createObject("component", application._taffy.settings.exceptionLogAdapter).init( 117: application._taffy.settings.exceptionLogAdapterConfig 118: ) />
(STUFF IN MIDDLE DELETED)
StackTrace string the service [RuntimeService] is currently missing. At the moment you can use cfadmin tag instead at coldfusion.server.ServiceFactory.missingService(ServiceFactory.java:106):106 at coldfusion.server.ServiceFactory.getRuntimeService(ServiceFactory.java:57):57 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method):-2 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62):62 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43):43 at java.lang.reflect.Method.invoke(Method.java:497):497 at lucee.runtime.reflection.pairs.MethodInstance.invoke(MethodInstance.java:55):55 at lucee.runtime.java.JavaObject.call(JavaObject.java:237):237 at lucee.runtime.java.JavaObject.call(JavaObject.java:259):259 at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742 at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590 at taffy.core.api_cfc$cf.udfCall3(/var/www/html/taffy/core/api.cfc:930):930 at taffy.core.api_cfc$cf.udfCall(/var/www/html/taffy/core/api.cfc):-1 at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766 at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742 at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590 at taffy.core.api_cfc$cf.udfCall3(/var/www/html/taffy/core/api.cfc:948):948 at taffy.core.api_cfc$cf.udfCall(/var/www/html/taffy/core/api.cfc):-1 at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766 at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742 at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590 at taffy.core.api_cfc$cf.udfCall1(/var/www/html/taffy/core/api.cfc:530):530 at taffy.core.api_cfc$cf.udfCall(/var/www/html/taffy/core/api.cfc):-1 at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766 at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742 at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590 at taffy.core.api_cfc$cf.udfCall1(/var/www/html/taffy/core/api.cfc:39):39 at taffy.core.api_cfc$cf.udfCall(/var/www/html/taffy/core/api.cfc):-1 at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:642):642 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:532):532 at lucee.runtime.SuperComponent.call(SuperComponent.java:80):80 at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742 at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590 at taffy.examples.api.application_cfc$cf.udfCall(/var/www/html/taffy/examples/api/Application.cfc:14):14 at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:642):642 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524 at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1761):1761 at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:405):405 at lucee.runtime.listener.ModernAppListener.onApplicationStart(ModernAppListener.java:283):283 at lucee.runtime.PageContextImpl.initApplicationContext(PageContextImpl.java:2842):2842 at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:118):118 at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:35):35 at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2262):2262 at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2225):2225 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.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091):1091 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 TagContext Array 1 Struct codePrintHTML string 928: <cfelse><br> 929: <!--- check if a server-level mapping exists ---><br> <b>930: <cfset local.serverMappings = createObject("java", "coldfusion.server.ServiceFactory").getRuntimeService().getMappings() /></b><br> 931: <cfif structKeyExists(local.serverMappings, "/resources")><br> 932: <cfreturn "/resources" /><br> codePrintPlain string 928: <cfelse> 929: <!--- check if a server-level mapping exists ---> 930: <cfset local.serverMappings = createObject("java", "coldfusion.server.ServiceFactory").getRuntimeService().getMappings() /> 931: <cfif structKeyExists(local.serverMappings, "/resources")> 932: <cfreturn "/resources" /> column number 0 id string ?? line number 930 Raw_Trace string taffy.core.api_cfc$cf.udfCall3(/var/www/html/taffy/core/api.cfc:930) template string /var/www/html/taffy/core/api.cfc type string cfml 2 Struct codePrintHTML string 946: <br> 947: <cffunction name="guessResourcesFullPath" access="private" output="false" returntype="string"><br> <b>948: <cfreturn expandPath(guessResourcesPath()) /></b><br> 949: </cffunction><br> 950: <br> codePrintPlain string 946: 947: <cffunction name="guessResourcesFullPath" access="private" output="false" returntype="string"> 948: <cfreturn expandPath(guessResourcesPath()) /> 949: </cffunction> 950: column number 0 id string ?? line number 948 Raw_Trace string taffy.core.api_cfc$cf.udfCall3(/var/www/html/taffy/core/api.cfc:948) template string /var/www/html/taffy/core/api.cfc type string cfml 3 Struct codePrintHTML string 528: /><br> 529: <!--- if resources folder exists, use internal bean factory ---><br> <b>530: <cfset local.resourcePath = guessResourcesFullPath() /></b><br> 531: <cfset local.noResources = false /><br> 532: <cfif directoryExists(local.resourcePath)><br> codePrintPlain string 528: /> 529: <!--- if resources folder exists, use internal bean factory ---> 530: <cfset local.resourcePath = guessResourcesFullPath() /> 531: <cfset local.noResources = false /> 532: <cfif directoryExists(local.resourcePath)> column number 0 id string ?? line number 530 Raw_Trace string taffy.core.api_cfc$cf.udfCall1(/var/www/html/taffy/core/api.cfc:530) template string /var/www/html/taffy/core/api.cfc type string cfml 4 Struct codePrintHTML string 37: <cfset var before = getTickCount() /><br> 38: <cfset var after = 0 /><br> <b>39: <cfset setupFramework() /></b><br> 40: <cfset after = getTickCount() /><br> 41: <cfheader name="X-TIME-TO-RELOAD" value="#(after-before)#" /><br> codePrintPlain string 37: <cfset var before = getTickCount() /> 38: <cfset var after = 0 /> 39: <cfset setupFramework() /> 40: <cfset after = getTickCount() /> 41: <cfheader name="X-TIME-TO-RELOAD" value="#(after-before)#" /> column number 0 id string ?? line number 39 Raw_Trace string taffy.core.api_cfc$cf.udfCall1(/var/www/html/taffy/core/api.cfc:39) template string /var/www/html/taffy/core/api.cfc type string cfml 5 Struct codePrintHTML string 12: <br> 13: function onApplicationStart(){<br> <b>14: return super.onApplicationStart();</b><br> 15: }<br> 16: <br> codePrintPlain string 12: 13: function onApplicationStart(){ 14: return super.onApplicationStart(); 15: } 16: column number 0 id string ?? line number 14 Raw_Trace string taffy.examples.api.application_cfc$cf.udfCall(/var/www/html/taffy/examples/api/Application.cfc:14) template string /var/www/html/taffy/examples/api/Application.cfc type string cfml type string application </pre>
--
The top exception is something you should ignore in this case. It's there to help debug issues getting your exception logger working; but we know that it's not working because Taffy can't initialize.
All that matters in this case is the bottom exception.
<cfelse> 929: <!--- check if a server-level mapping exists ---> 930: <cfset local.serverMappings = createObject("java", "coldfusion.server.ServiceFactory").getRuntimeService().getMappings() /> 931: <cfif structKeyExists(local.serverMappings, "/resources")> 932: <cfreturn "/resources" />
It's saying "[some condition] else use coldfusion.server.ServiceFactory" which if I try to use createObject("java", "coldfusion.server.ServiceFactory").getRuntimeService().getMappings() on a page by itself I get the same error you have. I'm thinking the "else" part is something like "if mapping exists in application.cfc use it otherwise use the service factory". I'm thinking if you map /resources and /taffy in application.cfc like below it'll work.
//the name can be anything you like
this.name = 'test2';
this.mappings['/resources'] = expandPath('./resources');
this.mappings['/taffy'] = expandPath('./taffy');
/var/www/html/taffy/examples/api_LogToEmail/resources
, in which you should place your Resource CFC's."