cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malcolm Edgar" <malcolm.ed...@gmail.com>
Subject Re: java.lang.ClassFormatError
Date Mon, 14 Apr 2008 07:25:20 GMT
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 <andreas.bobek@gmx.net>
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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message