Lucee 5 - javax.servlet.http.HttpUpgradeHandler issue w/ ugprade from 4.5

371 views
Skip to first unread message

JF Robichaud

unread,
Apr 18, 2016, 5:05:16 PM4/18/16
to Lucee
Ran into some issues while testing a site on RC2 (upgrade from 4.5.1.022)

An error is thrown on the following call to getQueryString():

            currentRequest = GetPageContext().GetRequest();
            originalQueryString =  currentRequest.getQueryString(); //this fails.

lucee.runtime.exp.NativeException: javax.servlet.http.HttpUpgradeHandler not found by lucee.core [62]
  at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1558)
  at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
  at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1998)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  at java.lang.Class.getDeclaredMethods0(Native Method)
  at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
  at java.lang.Class.privateGetPublicMethods(Class.java:2733)
  at java.lang.Class.getMethods(Class.java:1472)
...


To isolate I've tested with a fresh install using the new RC2 installer and didn't encounter the issue.  I narrowed it down to a newer version of server-api.jar in /tomcat/lib which is included in the installer version.  I copied the new jar to my 4.5 upgrade, restarted and so far no issues.

I've attached both jars for reference if it can help anyone.  Not sure if this was expected coming from an upgrade or not? At first glance many files are different in the new installer version.
servlet-api_from4.5.jar
servlet-api_frominstaller.jar

Joel Stobart

unread,
May 31, 2016, 4:29:16 AM5/31/16
to Lucee
Hi, 

I get the same error - but I'm just using the production version from the website. 

I have only got the lucee.war file installed

Any thoughts? 

regards,
Joel

thorste...@googlemail.com

unread,
May 31, 2016, 4:58:54 AM5/31/16
to Lucee
Hi Joel,

I have the same issue with the jar file.

More info here:


Regards
Thorsten

Michael Offner

unread,
Jun 1, 2016, 1:24:26 AM6/1/16
to lucee

Can you please raise a ticket, problem us that a couple class from Jee us expected that is not around. Most likely because the Jee is to old. Sadly I cannot find out which code is using this, because the stack trace is to short. So I need the complete stack trace.

Micha

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/c2aa783c-a2f2-4050-a07b-1b6d1d2b273f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

thorste...@googlemail.com

unread,
Jun 1, 2016, 2:20:23 AM6/1/16
to Lucee
Java Stacktrace
Hi Micha,
here is the stack trace. Hope it helps.
Thorsten

lucee.runtime.exp.NativeException: javax.servlet.http.HttpUpgradeHandler not found by lucee.core [64]
  at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1558)
  at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
  at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1998)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.Class.getDeclaredMethods0(Native Method)
  at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
  at java.lang.Class.privateGetPublicMethods(Unknown Source)
  at java.lang.Class.getMethods(Unknown Source)
  at lucee.runtime.reflection.storage.SoftMethodStorage.store(SoftMethodStorage.java:68)
  at lucee.runtime.reflection.storage.SoftMethodStorage.getMethods(SoftMethodStorage.java:50)
  at lucee.runtime.reflection.Reflector.getMethodInstanceEL(Reflector.java:483)
  at lucee.runtime.reflection.Reflector.callMethod(Reflector.java:845)
  at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:774)
  at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1570)
  at wheels.global.internal_cfm$cf.udfCall1(D:\websites\mysite.de\wheels\global\internal.cfm:268)
  at wheels.global.internal_cfm$cf.udfCall(D:\websites\mysite.de\wheels\global\internal.cfm)
  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:1570)
  at wheels.events.onapplicationstart_cfm$cf.udfCall(D:\websites\mysite.de\wheels\events\onapplicationstart.cfm:46)
  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:204)
  at lucee.runtime.tag.Invoke.doFunction(Invoke.java:235)
  at lucee.runtime.tag.Invoke.doEndTag(Invoke.java:202)
  at wheels.global.cfml_cfm$cf.udfCall1(D:\websites\mysite.de\wheels\global\cfml.cfm:35)
  at wheels.global.cfml_cfm$cf.udfCall(D:\websites\mysite.de\wheels\global\cfml.cfm)
  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:1580)
  at wheels.events.onsessionstart_cfm$cf.udfCall(D:\websites\mysite.de\wheels\events\onsessionstart.cfm:9)
  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:1902)
  at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:422)
  at lucee.runtime.listener.ModernAppListener.onSessionStart(ModernAppListener.java:329)
  at lucee.runtime.PageContextImpl.initApplicationContext(PageContextImpl.java:2838)
  at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:121)
  at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43)
  at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2250)
  at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2242)
  at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2210)
  at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:848)
  at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:103)
  at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler not found by lucee.core [64]
  ... 70 more

thorste...@googlemail.com

unread,
Jun 1, 2016, 11:15:01 AM6/1/16
to Lucee
FYI
I replaced the servlet-api.jar in railo/tomcat/lib with the above newer version and bingo it works.

Thanks
Thorsten

Juan Aguilar

unread,
Jul 18, 2016, 10:32:26 AM7/18/16
to Lucee
Not quite sure how to re-open a ticket (https://luceeserver.atlassian.net/browse/LDEV-883):

I'm running:

Version Lucee 5.0.1.28-SNAPSHOT
Servlet Container Apache Tomcat/7.0.70
Java 1.8.0_91 (Oracle Corporation) 64bit

The following code:

<cfscript>
try {
  tmpURL = getPageContext().getRequest().getRequestURL();
writeDump(tmpURL); }
catch (Any excpt)
{ writeDump(excpt); }
</cfscript>


Throws the following error:

Message: javax.servlet.http.HttpUpgradeHandler
additional.cause: java.lang.ClassNotFoundException
StackTrace: lucee.runtime.exp.NativeException: javax.servlet.http.HttpUpgradeHandler at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:1010) at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1579) at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1509) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1998) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetPublicMethods(Class.java:2902) at java.lang.Class.getMethods(Class.java:1615) at lucee.runtime.reflection.storage.SoftMethodStorage.store(SoftMethodStorage.java:68) at lucee.runtime.reflection.storage.SoftMethodStorage.getMethods(SoftMethodStorage.java:50) at lucee.runtime.reflection.Reflector.getMethodInstanceEL(Reflector.java:483) at lucee.runtime.reflection.Reflector.callMethod(Reflector.java:845) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:774) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1576) [...]
Reply all
Reply to author
Forward
0 new messages