Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 42425 invoked from network); 15 Oct 2010 23:14:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Oct 2010 23:14:54 -0000 Received: (qmail 4521 invoked by uid 500); 15 Oct 2010 23:14:54 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 4443 invoked by uid 500); 15 Oct 2010 23:14:54 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 4436 invoked by uid 99); 15 Oct 2010 23:14:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 23:14:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 23:14:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9FNEXJg011955 for ; Fri, 15 Oct 2010 23:14:33 GMT Message-ID: <30921400.172481287184473591.JavaMail.jira@thor> Date: Fri, 15 Oct 2010 19:14:33 -0400 (EDT) From: "Andrew Robinson (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Resolved: (TRINIDAD-1939) SessionChangeManager should restore attribute lock after session failover In-Reply-To: <7455047.85701286838932819.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TRINIDAD-1939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Robinson resolved TRINIDAD-1939. --------------------------------------- Resolution: Fixed Fix Version/s: 1.2.15-core 2.0.0.3-core > SessionChangeManager should restore attribute lock after session failover > ------------------------------------------------------------------------- > > Key: TRINIDAD-1939 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1939 > Project: MyFaces Trinidad > Issue Type: Bug > Components: Components > Affects Versions: 1.2.12-core > Reporter: Yuan Gao > Fix For: 2.0.0.3-core, 1.2.15-core > > Attachments: cm-serialproxy.patch.1.2.12.3, cm-serialproxy.patch.1.2.x, cm-serialproxy.patch.trunk > > > The issue is in SessionChangeManager, we have an attribute lock, as this: > private transient final Object _attrRebuildLock = new Object(); > And we synchronize on this object when we want to modify the changes arrays. When failover happens, this field becomes null. And future synchronization will fail since it's null. The fix is to implement the readObject() method, and re-initialize the _attrRebuildLock field to be new Object(); > private void readObject(java.io.ObjectInputStream in) > throws IOException, ClassNotFoundException > { > in.defaultReadObject(); > _attrRebuildLock = new Object(); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.