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

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.

Hi Joel,

I have the same issue with the jar file.

More info here:

https://groups.google.com/forum/#!topic/lucee/QOAqY6Mfrk8

Regards
ThorstenAm Dienstag, 31. Mai 2016 10:29:16 UTC+2 schrieb Joel Stobart:

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

On Monday, April 18, 2016 at 10:05:16 PM UTC+1, JF Robichaud wrote:

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.

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,
JoelOn Monday, April 18, 2016 at 10:05:16 PM UTC+1, JF Robichaud wrote:

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.

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
Am 31.05.2016 10:58 vorm. schrieb “thorsteneilers via Lucee” <
lucee@googlegroups.com>:> Hi Joel,

I have the same issue with the jar file.

More info here:

https://groups.google.com/forum/#!topic/lucee/QOAqY6Mfrk8

Regards
Thorsten

Am Dienstag, 31. Mai 2016 10:29:16 UTC+2 schrieb Joel Stobart:

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

On Monday, April 18, 2016 at 10:05:16 PM UTC+1, JF Robichaud wrote:

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.


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+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/c2aa783c-a2f2-4050-a07b-1b6d1d2b273f%40googlegroups.com
https://groups.google.com/d/msgid/lucee/c2aa783c-a2f2-4050-a07b-1b6d1d2b273f%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

FYI
I replaced the servlet-api.jar in railo/tomcat/lib with the above newer
version and bingo it works.

Thanks
Thorsten

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:

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

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)
[…]On Wednesday, June 1, 2016 at 1:24:26 AM UTC-4, Micha wrote:

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