openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski" <>
Subject Re: Named query created in error
Date Thu, 19 Apr 2007 14:14:35 GMT
On 4/19/07, Phill Moran <> wrote:
> I am using MySQL version 5
> The stack trace only shows because  have wrapped this in a try/catch. The
> exception becomes NPE due to  OpenJPA trying to make a Person object form more
> than just Person Object data, it fails to do this (silently) and the object it
> was to be assigned to become an NP

Could you make sure that the entity behind is really an
entity? Is it annotated with @Entity?

> Nothing in the persistence.xml except class names (all persistable classes
> represented in here) and OpenJPA settings.
> Interesting questions on why the duplicate query exception suddenly showing up,

It's because you use <class> and no <exclude-unlisted-classes> in
persistence.xml. You should either remove the <class> elements or add
<exclude-unlisted-classes> and the Ignoring. warning message should go


Jacek Laskowski

View raw message