Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 52540 invoked from network); 11 Sep 2006 20:49:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Sep 2006 20:49:35 -0000 Received: (qmail 12881 invoked by uid 500); 11 Sep 2006 20:49:34 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 12870 invoked by uid 500); 11 Sep 2006 20:49:34 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 12861 invoked by uid 99); 11 Sep 2006 20:49:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 13:49:34 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mkienenb@gmail.com designates 64.233.162.194 as permitted sender) Received: from [64.233.162.194] (HELO nz-out-0102.google.com) (64.233.162.194) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 13:49:33 -0700 Received: by nz-out-0102.google.com with SMTP id v1so702099nzb for ; Mon, 11 Sep 2006 13:49:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M9Kj2oMnDXjwrWh4StLGZ8U3OlbTDITxc+j8C+HnwesvCBjSG50ydNGTzyjrlbV7K4Hv8TBaemEbgVhnsAKaYDDQ/d88VOK6n6InLI31ANGiRdm9De26azJxPEiPz8HQLImFtKryulMrkYt1ANSd/8VGXVOjDYMUcNteC28CO68= Received: by 10.65.240.17 with SMTP id s17mr2551217qbr; Mon, 11 Sep 2006 13:49:12 -0700 (PDT) Received: by 10.65.253.14 with HTTP; Mon, 11 Sep 2006 13:49:12 -0700 (PDT) Message-ID: <8f985b960609111349i75e37cb8wde3f3842383d9e88@mail.gmail.com> Date: Mon, 11 Sep 2006 16:49:12 -0400 From: "Mike Kienenberger" To: cayenne-user@incubator.apache.org Subject: Re: Exception with Tomcat's session restore capability In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8f985b960609111053r2084d91cq74ac932a32d47000@mail.gmail.com> <8f985b960609111103g5e172494s84733ce58a5ad775@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N No, I wouldn't try changing the transient nature. It does seem kinda odd, though. I know that I'm saving serialized objects two different ways -- by individual DataObject for one read-only context, and by DataContext for a modified set of objects. I don't think I have seen this particular problem. Are you serializing the DataContext directly? On 9/11/06, Dave Dombrosky wrote: > I downloaded the 1.2.1 source and added some code to figure out what > is going on. It appears that context.getChannel() from > ObjectStore.java line 945 is returning null. I am guessing that this > is because of DataContext line 182 which declares the channel to be > transient. Transient properties are not serialized, which is how > tomcat saves the session, so it is reverting back to it's default > value (null). > > I tried removing the "transient" part of the variable declaration, but > then Tomcat complains on a different piece of code. I'm not even sure > if that's the best way to fix it so I don't think I'll explore that > any further yet. Is this issue something that I should add to JIRA? > > -Dave > > On 9/11/06, Mike Kienenberger wrote: > > My suggestion would be to look at the 1.2.1 source and see what's > > going on at ObjectStore.java, line 945. > > > > On 9/11/06, Dave Dombrosky wrote: > > > Problem still occurs on 1.2.1 > > > > > > On 9/11/06, Mike Kienenberger wrote: > > > > Maybe http://issues.apache.org/cayenne/browse/CAY-614 ? > > > > > > > > This was fixed for 1.2.1. It might be related. > > > > > > > > On 9/11/06, Dave Dombrosky wrote: > > > > > I am currently having problems when trying to use Cayenne 1.2 along > > > > > with Tomcat's (v5.0.28) session restore capability. That is to say, > > > > > if I deploy new code and restart tomcat, it saves the session data > > > > > instead of starting with all new sessions when it starts up. > > > > > > > > > > My problem is that I used to be able to restart and stay logged in > > > > > using version 1.1. Version 1.2 seems to have problems with trying to > > > > > look up data after I have restarted Tomcat, and I get this stack trace > > > > > caused by a NullPointerException: > > > > > > > > > > org.objectstyle.cayenne.access.ObjectStore.resolveHollow(ObjectStore.java:945) > > > > > org.objectstyle.cayenne.access.DataContext.prepareForAccess(DataContext.java:1842) > > > > > org.objectstyle.cayenne.CayenneDataObject.readProperty(CayenneDataObject.java:238) > > > > > > > > > > I couldn't find anyone else with this problem, so I assume I am doing > > > > > something wrong and it's not a bug. Any ideas? > > > > > > > > > > -Dave > > > > > > > > > > > > > > >