Anyone else having trouble on Tomcat 8?

42 views
Skip to first unread message

Adam Tuttle

unread,
Jul 20, 2015, 9:51:09 PM7/20/15
to taffy...@googlegroups.com
Here's an issue from someone saying Taffy may not be working correctly on Tomcat 8.


Unfortunately I don't have time to install Tomcat 8 and dig into it right now, but I was wondering if any other experienced Taffy devs out there have tried it and can chime in with your experiences. Any luck? Any trouble?

Thanks
-Adam

Tony Junkes

unread,
Jul 22, 2015, 3:20:55 AM7/22/15
to Taffy Users
I tried testing with just the initial quick start example in the docs and get the same initial error. My env was Windows 8.1 / Lucee 4.5.2 / Tomcat 8 / Java 1.8_51 / Nginx

This appears to only happen with Lucee (not sure about Railo). Tested on ACF 11, no issue. I don't believe this is an issue with Tomcat 8.

This line of code is what generates the underlying error even when not using Taffy. This appears to possibly be an issue that the Lucee guys need to look into.

writeDump( createObject("java", "coldfusion.server.ServiceFactory").getRuntimeService().getMappings() );


Here's the initial stack...

    StackTrace 
        string key [_TAFFY] doesn't exist
	at lucee.runtime.type.util.StructSupport.invalidKey(StructSupport.java:66):66
	at lucee.runtime.type.StructImpl.get(StructImpl.java:120):120
	at taffy.core.api_cfc$cf.udfCall1(C:\websites\test\taffy\core\api.cfc:116):116
	at taffy.core.api_cfc$cf.udfCall(C:\websites\test\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:641):641
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1760):1760
	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:2268):2268
	at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2224):2224
	at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:456):456
	at lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1
	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:219):219
	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:668):668
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521):1521
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478):1478
	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


Here's the underlying issue when I just dump out the exception caught by onError()...

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:234):234 at lucee.runtime.java.JavaObject.call(JavaObject.java:256):256 at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742 at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1589):1589 at taffy.core.api_cfc$cf.udfCall3(C:\websites\test\taffy\core\api.cfc:940):940 at taffy.core.api_cfc$cf.udfCall(C:\websites\test\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:1589):1589 at taffy.core.api_cfc$cf.udfCall3(C:\websites\test\taffy\core\api.cfc:958):958 at taffy.core.api_cfc$cf.udfCall(C:\websites\test\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:1589):1589 at taffy.core.api_cfc$cf.udfCall1(C:\websites\test\taffy\core\api.cfc:533):533 at taffy.core.api_cfc$cf.udfCall(C:\websites\test\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:1589):1589 at taffy.core.api_cfc$cf.udfCall1(C:\websites\test\taffy\core\api.cfc:39):39 at taffy.core.api_cfc$cf.udfCall(C:\websites\test\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:641):641 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524 at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1760):1760 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:2837):2837 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:2257):2257 at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2224):2224 at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:456):456 at lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1 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:219):219 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:668):668 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521):1521 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478):1478 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

Adam Tuttle

unread,
Jul 22, 2015, 9:03:47 AM7/22/15
to Taffy Users
Thanks for putting in so much effort, Tony!

I left some notes in the bug about it. https://github.com/atuttle/Taffy/issues/283

I don't have time to file a bug with Lucee for this but that does seem like the best course of action, right?

This seems so familiar. I feel like someone may have already brought this issue (the missing service factory class) to light and filed a bug for it...

--
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.

Tom Chiverton

unread,
Jul 22, 2015, 9:26:41 AM7/22/15
to Taffy Users
I know there is a whole bunch of stuff available via

getPageContext().getConfig()

we use

...getConfigServer(password).getConfigWebs()

to list all the contexts ( and then applications ) running on an instance.

Tom

Tony Junkes

unread,
Jul 22, 2015, 1:18:22 PM7/22/15
to Taffy Users
I couldn't find a bug reported but, for now, I'm going to inquire on the Lucee mailing list and go from there.

One way to get something similar with Lucee right now is to use the <cfadmin> tag to read the mappings from a query result. To do this without a password on every request, you need to switch read access to "open" in the security - access tab of the Lucee Admin. A bit overkill in comparison.

<cfadmin action="getMappings" type="web" returnVariable="myMappings">
Reply all
Reply to author
Forward
0 new messages