Uploaded image for project: 'Lucee Development'
  1. LDEV-883

Non-empty onSessionStart gives javax.servlet.http.HttpUpgradeHandler not found by lucee.core

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.252
    • Fix Version/s: 5.0.1.17
    • Labels:
      None
    • Environment:

      Using lucee jar with system java and tomcat.

      tomcat-7.0.54-2.el7_1.noarch
      tomcat-servlet-3.0-api-7.0.54-2.el7_1.noarch
      java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

      Description

      I updated my Lucee installation to 4.5 to 5 recently.

      The error pattern was that the first load of a page would produce the error javax.servlet.http.HttpUpgradeHandler not found by lucee.core.

      There was a mailing list suggestion that this was an upgrade problem, and replacing the tomcat-servlet-api.jar would make the problem go away.

      A fresh install of lucee demonstrated that the problem wasn't isolated to upgrade installs for me. So I replaced the system tomcat-servlet-api.jar with the one from the mailing list.

      This did not help my situation. The problem would always come back – once – every morning on my development machine.

      The backtrace showed a line in Application.cfc inside onSessionStart. The code was only checking a server variable and setting a session variable. Since this was trivial to work around, I removed it. My problem went away.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              aschmidt Alan Schmidt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: