Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 45602 invoked from network); 14 Apr 2008 07:25:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Apr 2008 07:25:52 -0000 Received: (qmail 95793 invoked by uid 500); 14 Apr 2008 07:25:52 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 95560 invoked by uid 500); 14 Apr 2008 07:25:52 -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 95551 invoked by uid 99); 14 Apr 2008 07:25:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2008 00:25:52 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of malcolm.edgar@gmail.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2008 07:25:10 +0000 Received: by wa-out-1112.google.com with SMTP id k22so2069432waf.0 for ; Mon, 14 Apr 2008 00:25:23 -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:to:subject:in-reply-to:mime-version:content-type:references; bh=+50wLWn8U7vB9e/L+9OmOSfTD/dUUzoS0vxrEfWo6S0=; b=RsLJSHAuPnJc7vc27pFPdnCAyhkKmJFoE/LmE3ni4lMKzZ86yZuPG8CS2j01SJ02Wi2PG3YWwbWc8zfVNqrhpd7E+BQvLk0jG8j9eHH4pqGogFENOjP3pI5hbV7kYAnBxcsyR91TRHAqokVyafjyzt1bP0PuDm8psJkhFPtii48= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=SiTz2Nd5lEN7Kv4Voe27ErJ2fSBySuHLQ0LZ920KANLdNLC2dkYOCSuIZlfqi3L+fIJMX1n1kU0cllOl3FmigE8+InRzDPMBsgs+xyO3HL8kevctMbTZlm4+y3ZZDechLTzqfG3Zh9IY/mgkCZWh+gLAH2rNlA18BB9xD7LqPlY= Received: by 10.114.158.1 with SMTP id g1mr6489338wae.111.1208157920770; Mon, 14 Apr 2008 00:25:20 -0700 (PDT) Received: by 10.114.39.19 with HTTP; Mon, 14 Apr 2008 00:25:20 -0700 (PDT) Message-ID: <525d8e10804140025q25a276ebj7b222340915cb0b6@mail.gmail.com> Date: Mon, 14 Apr 2008 17:25:20 +1000 From: "Malcolm Edgar" To: user@cayenne.apache.org Subject: Re: java.lang.ClassFormatError In-Reply-To: <001101c89de0$7b211560$6401a8c0@pinguin> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_992_5368549.1208157920762" References: <001101c89de0$7b211560$6401a8c0@pinguin> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_992_5368549.1208157920762 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I would recommend including a stracktrace of the error, to help debug this. regards Malcolm Edgar On Mon, Apr 14, 2008 at 1:34 PM, Andreas Bobek wrote: > Hello, > > I use cayenne 2.0.4, tomcat 5.5 and jdk 1.5. > I generated (cgen) a superclass (_Basket) and a subclass (Basket) with no > problem and use them in a standard servlet. I even can create instances > and > commit changes to the database. It all works fine. > > But in certain circumstandes I get a java.lang.ClassFormatError (at most > "Invalid SourceFile attribute at constant pool index 63") in one of the > three classes depending on where I first of all access a java.util.List > via > get(...). > > For example in _Basket this would crash: > > getObjectId().getIdSnapshot().get("foo") > > or in my servlet: > > List baskets = DataContext.createDataContext().performQuery(query); > Basket basket = (Basket) baskets.get(0); > > I spent the last two days on that problem and meanwhile tested it at three > different machines (win2000, xp, suse). It's always the same. > > Can somebody give me a hint? What I not tested yet is instead of using > cayenne.jar using the lighter version and put the dependencies on my own. > But could that really be the problem? > > Thanks for helping, Andreas Bobek. > > ------=_Part_992_5368549.1208157920762--