OFBiz
  1. OFBiz
  2. OFBIZ-4289

Login out on a cluster handled by DeltaManager causes a NPE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: Release Branch 4.0, Release Branch 09.04, Release Branch 10.04, Release Branch 11.04, SVN trunk
    • Component/s: framework
    • Labels:
    • Environment:

      Ubuntu

      Description

      It works locally but not on clusters. You simply get a NPE.

      Problem

      • When we logout we cross an issue due to Tomcat sessions persistence.
      • Because we set distributable to true, to allow sessions failover,
      • and use and DeltaManager for replication.
      • Delegator and other main Classes (notably Dispatcher) are not serialized in OFBiz. This is the origin of the problem

      Tried solutions

      By default DeltaManager save active sessions on disk. It uses a private String variable pathname for that (default to "SESSIONS.ser"). You can set it to null, to avoid session persistence, using a context.xml file in the WEB-INF folder with content like below. But I tried it in webtools app on staging qs001 (only) and it did not work (with distributable set to false). And we have no other means to set it from OFBiz (OOTB).

          <Context>
           <Manager className="org.apache.catalina.session.DeltatManager" pathname="">
           </Manager>
          </Context>
      

        Activity

        Jacques Le Roux made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jacques Le Roux made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s Release Branch 12.04 [ 12321265 ]
        Fix Version/s Release Branch 10.04 [ 12314832 ]
        Fix Version/s Release Branch 11.04 [ 12316420 ]
        Resolution Fixed [ 1 ]
        Jacopo Cappellato made changes -
        Assignee Jacopo Cappellato [ jacopoc ] Jacques Le Roux [ jacques.le.roux ]
        Jacopo Cappellato made changes -
        Assignee Jacques Le Roux [ jacques.le.roux ] Jacopo Cappellato [ jacopoc ]
        Jacques Le Roux made changes -
        Attachment ofbiz.log [ 12533312 ]
        Jacques Le Roux made changes -
        Status Patch Available [ 10002 ] In Progress [ 3 ]
        Jacques Le Roux made changes -
        Status Reopened [ 4 ] Patch Available [ 10002 ]
        Jacques Le Roux made changes -
        Resolution Later [ 7 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Jacques Le Roux made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Later [ 7 ]
        Jacques Le Roux made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Jacques Le Roux made changes -
        Status Patch Available [ 10002 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Jacques Le Roux made changes -
        Status Reopened [ 4 ] Patch Available [ 10002 ]
        Jacques Le Roux made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Jacques Le Roux made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s Release Branch 09.04 [ 12313602 ]
        Resolution Fixed [ 1 ]
        Jacques Le Roux made changes -
        Attachment OFBIZ-4289 Login out on a cluster handled by DeltaManager causes a NPE.patch [ 12479989 ]
        Jacques Le Roux made changes -
        Attachment OFBIZ-4289 Login out on a cluster handled by DeltaManager causes a NPE.patch [ 12479989 ]
        Jacques Le Roux made changes -
        Field Original Value New Value
        Attachment changeset_2510.diff [ 12479988 ]
        Jacques Le Roux created issue -

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Jacques Le Roux
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development