Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 76995 invoked from network); 26 May 2010 04:51:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 May 2010 04:51:18 -0000 Received: (qmail 1846 invoked by uid 500); 26 May 2010 04:51:18 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 1773 invoked by uid 500); 26 May 2010 04:51:18 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 1766 invoked by uid 99); 26 May 2010 04:51:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 04:51:17 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bpendleton.derby@gmail.com designates 74.125.83.172 as permitted sender) Received: from [74.125.83.172] (HELO mail-pv0-f172.google.com) (74.125.83.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 04:51:08 +0000 Received: by pva18 with SMTP id 18so1774484pva.31 for ; Tue, 25 May 2010 21:50:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=X9UJuUm59zI1DyKVxMfxj+nPBOPZpYFSiChQIK/yasg=; b=KrbQhvA4Jzb8bR39lXef4qAmvjgmL1DDHbwsGHjHufCm2n7CIcfxG0v3a0y/o3djVC 3Zjh97f35wVQSYJNJ6WQkuoDDOfAFZUm8j8O+r0aDKYvsOZoNI6coqZTnp3K84jSHOnl n+ZZ1IunlUXz3mhrSYgsP6081RIFDnOHSz61Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=LdEGP4yupI6SYERGrDpIq7YE34vZ60+NMvEZ9Mb/iFtireEyTmnI6QmhxUkoxvFVDX ZdZwxSQ6eljcyBzo0gPx5PY65sFWNKk89sT58fl9B6PLXW7v3ljP6ZXOJdSJfkGMOmRq Ma5Nes2ItPfyR2lNaIktNDD+i7mSBs9XjL1Q8= Received: by 10.142.117.27 with SMTP id p27mr5230658wfc.252.1274849447523; Tue, 25 May 2010 21:50:47 -0700 (PDT) Received: from [192.168.0.103] (c-67-170-231-73.hsd1.ca.comcast.net [67.170.231.73]) by mx.google.com with ESMTPS id d14sm4838514rva.6.2010.05.25.21.50.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 May 2010 21:50:46 -0700 (PDT) Message-ID: <4BFCA8A5.2060500@gmail.com> Date: Tue, 25 May 2010 21:50:45 -0700 From: Bryan Pendleton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Derby Discussion Subject: Re: JPA 2.0 and Derby 10.6.1.1 ERROR XCL13 References: <035F2F80-9D74-4C47-809B-7B2F23FF2D54@jpl.nasa.gov> <4BFC8813.1000702@gmail.com> <8BAC5EC7-BC66-482F-BE95-8E35D3C88CE7@jpl.nasa.gov> In-Reply-To: <8BAC5EC7-BC66-482F-BE95-8E35D3C88CE7@jpl.nasa.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org This part: > where product0_.lid=? and product0_.userVersion=? fetch first 2 rows seems to match this part: > cq.where(cb.and(cb.equal(lidAttr, lid), cb.equal(userVersionAttr, userVersion))); pretty closely, so it's hard to imagine why your O/R tool thought it needed to set 3 parameters in the query. Unless it somehow thought it was trying to set the "first 2 rows" part? That is, did it think it had prepared "fetch first ? rows" and was trying to set the 2? You may need to ask in a forum that covers your O/R tool, to get some suggestions about how to understand its query generation behaviors. Did you say you were using Hibernate? Regarding whether Derby is processing the statement twice, I think that the log is just a bit hard to read: the statement is listed twice, but once is a "begin compiling" trace, and once is an "end compiling" trace. So, I'm afraid I don't have any breakthrough answers for you, but hopefully you're armed with more information to ask a more specific question to the providers of the O/R tool. thanks, bryan