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 7B1249E96 for ; Sat, 10 Dec 2011 05:40:21 +0000 (UTC) Received: (qmail 66249 invoked by uid 500); 10 Dec 2011 05:40:21 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 66217 invoked by uid 500); 10 Dec 2011 05:40:20 -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 66209 invoked by uid 99); 10 Dec 2011 05:40:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Dec 2011 05:40:20 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [205.172.16.71] (HELO leka2.oceanic.com) (205.172.16.71) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Dec 2011 05:40:12 +0000 Received: from leka2.oceanic.com (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 2C504E2106D for ; Fri, 9 Dec 2011 19:26:52 -1000 (HST) Received: from [192.168.1.100] (otwbsc02.oceanic.net [205.172.16.103]) by leka2.oceanic.com (Postfix) with ESMTP id D33A2E2106B for ; Fri, 9 Dec 2011 19:26:51 -1000 (HST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Deadlock with Derby and CreateIfNoSchemaStrategy From: Andrus Adamchik In-Reply-To: Date: Fri, 9 Dec 2011 19:39:50 -1000 Content-Transfer-Encoding: quoted-printable Message-Id: <371CCF5D-168F-40A6-9CED-4F94A9FA5B0C@objectstyle.org> References: To: user@cayenne.apache.org X-Mailer: Apple Mail (2.1084) X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.12.10.52714 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' SUPERLONG_LINE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_800_899 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MIME_VERSION_APPLEMAIL 0, __MSGID_APPLEMAIL 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT_APPLEMAIL 0, __X_MAILER_APPLEMAIL 0' Could be a bug (in Derby?). Probably worth opening a bug report at = https://issues.apache.org/jira/browse/CAY ... Also would be helpful if = you could take a thread dump when the app is frozen to see what the app = is doing at this moment. IIRC we had people using = CreateIfNoSchemaStrategy with Derby, so there may be a special case = causing this condition. Andrus On Dec 8, 2011, at 10:04 PM, Mathias Clerc wrote: > I am using an embedded Derby DB together with Cayenne > CreateIfNoSchemaStrategy feature. >=20 > If I start with an empty DB, on the first query the DB is created but > at the moment of actually running the query, Derby freezes waiting for > a lock. > If I use JDBC to manually create the table before the first connection > (manually injecting a copy/paste of the debug output of cayenne), then > the query works perfectly. >=20 > Any idea ? >=20