Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3915C9B53 for ; Wed, 8 Feb 2012 16:18:51 +0000 (UTC) Received: (qmail 87131 invoked by uid 500); 8 Feb 2012 16:18:51 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 87092 invoked by uid 500); 8 Feb 2012 16:18:50 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 87084 invoked by uid 99); 8 Feb 2012 16:18:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 16:18:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mkienenb@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-ww0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 16:18:42 +0000 Received: by wgbdt11 with SMTP id dt11so5214444wgb.4 for ; Wed, 08 Feb 2012 08:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=4glYauZRH4Dkgvcm4cI16WGxKs+0Kk64WAYZBFKWQdg=; b=lidBY8uSOR4bsRJxhFfyMBzpqeNKi0ANmlxthj0kZSpmyBiie+Lr+xUjeXTosm9nMw WV/1QXdiDrlsR5RktAMV087EzPH43739KyMWL9ueIfs/o3EXHNUVjK3VVdTV+R6FQAVX m2lCFiAqwi60w8mOaoAoB5Lav5QyuqHPvr54k= Received: by 10.180.86.105 with SMTP id o9mr41985310wiz.4.1328717902267; Wed, 08 Feb 2012 08:18:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.79.67 with HTTP; Wed, 8 Feb 2012 08:18:01 -0800 (PST) In-Reply-To: References: <1CAF0260-43A3-409E-9833-3A551EC5208A@earthlink.net> <605526E6-72CF-4B2D-97A7-76766A951E74@earthlink.net> <858FBC75-700C-46A6-8471-357EEF122265@earthlink.net> <3A20F2B5-4E0D-4AD6-A539-CB11611CA7E3@objectstyle.org> <822D6D6A-C017-452F-A667-D9EAD60FCD37@earthlink.net> From: Mike Kienenberger Date: Wed, 8 Feb 2012 11:18:01 -0500 Message-ID: Subject: Re: Odd error To: user@cayenne.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Oops. Didn't finish. And your next step is to determine how the sort orderings are different (by looking at the log results), determine why a certain sort causes a problem, and then subclass the sorter to insure it sorts in a consistently-valid manner each time. On Wed, Feb 8, 2012 at 11:15 AM, Mike Kienenberger wro= te: > I think what Michael is saying is that the ashwood sorter isn't > guaranteed to return the same results for the same commit operation on > the next run after the application is restarted. =A0 So setting the > logging wasn't what caused the change -- it was restarting the app. > > On Wed, Feb 8, 2012 at 11:02 AM, Joe Baldwin wr= ote: >> Well, if it is not "insane", then what should I do? =A0I mean if the app= only works correctly when logging is set to DEBUG then I would think that = indicates a problems. =A0I could run the app with DEBUG on all the time, bu= t that would just be covering up what I would assume is a serious problem. = =A0What should I do next to debug this problem? >> >> More info: >> Each time I update my project jar file, I do a recursive "touch" (which = I have found forces tomcat to recompile all the jsp's and recognize the new= jar file). =A0After this, I restart tomcat. =A0There was a problem with th= e webhost's configuration of tomcat caching static variables from the previ= ous jar file into jsp static non-variables. =A0 I would *presume* this woul= d clear out everything, but maybe not. >> >> On Feb 8, 2012, at 9:14 AM, Michael Gentry wrote: >> >>> On Tue, Feb 7, 2012 at 6:03 PM, Joe Baldwin w= rote: >>>> 2. So I found their log4j.properties file and inserted "log4j.logger.o= rg.apache.cayenne.access.QueryLogger=3DDEBUG" =A0(I hope this is what you w= ere thinking of) >>> >>> I actually think you want INFO instead of DEBUG. >>> >>> >>>> 4. Rod Serling moment: when I tried to add the Product entity - for th= e first time it did not fail >>>> =A0 =A0 =A0 =A0- detail: it added the Product, there was no Exception >>>> =A0 =A0 =A0 =A0- I verified the Product by listing all of my products >>>> >>>> So, is this 1. Insane, or 2. totally Insane? >>> >>> I've seen AshwoodEntitySorter produce different insert orderings >>> before from different starts. =A0Since you shutdown the application, AE= S >>> would have to produce a new dependency graph on startup. =A0I'm not >>> saying this is responsible, but it is a possibility. =A0So: 0. Maybe no= t >>> insane. =A0:-) >>> >>> mrg >>