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

Regression: sessionInvalidate() causes java.lang.ClassCastException

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.5.4.015
    • Fix Version/s: 5.1.1.37
    • Labels:
      None
    • Environment:

      Reproduced on

      • Mac OS X (10.11.5)
      • CentOS (centos-release-7-1.1503.el7.centos.2.8.x86_64), Tomcat 8.0.28, Java 1.8.0_66

      J2EE sessions ON

      Description

      Calling sessionInvalidate() produces java.lang.ClassCastException

      This appears to be a regression of LDEV-914 Deployed .

      The stack trace produced is identical to that shown in LDEV-914 Deployed .

      This bug was resolved in Lucee 4 and 5, but I have not tested whether the regression I'm seeing in 4.5.015 has also occurred in the v5 branch.

      I cannot pinpoint which specific release introduces the problem because not every intermediate point release had been applied to the servers in question; it could be any release greater than 4.5.4.007 and less than or equal to 4.5.4.015.

      For completeness, the stack trace is reproduced below:

      lucee.runtime.type.scope.JSession cannot be cast to lucee.runtime.type.scope.storage.StorageScope at
      lucee.runtime.type.scope.ScopeContext.getCFSessionScope(ScopeContext.java:563):563 at
      lucee.runtime.type.scope.ScopeContext.removeSessionScope(ScopeContext.java:577):577 at
      lucee.runtime.type.scope.ScopeContext.invalidateUserScope(ScopeContext.java:964):964 at
      lucee.runtime.PageContextImpl.invalidateUserScopes(PageContextImpl.java:1318):1318 at
      lucee.runtime.functions.system.SessionInvalidate.call(SessionInvalidate.java:31):31 at
      application_cfc$cf.udfCall4(/Path/To/Application.cfc:nnn):nnn at...

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                ksr Ken Redler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: