Thanks, Daryl. From your description, I would agree with your assessment. :-) Could you open a JIRA issue [1] with information from this posting? If you don't have JIRA access, let me know and I can create it for you.
Thanks, Kevin [1] https://issues.apache.org/jira/browse/OPENJPA On Tue, Sep 8, 2009 at 7:42 AM, Daryl Stultz <[email protected]> wrote: > Hi all, > I wrote this query here. > > select o from User as o > where o.id in ( > select valueInteger from UserPersistentParameter as o > ) > > but I got > <openjpa-1.2.1-r752877:753278 nonfatal user error> > org.apache.openjpa.persistence.ArgumentException: null > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:814) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:775) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:771) > > which isn't very helpful. I realized my error was in omitting the "o." > prior > to valueInteger. It should read like this: > > select o from User as o > where o.id in ( > select o.valueInteger from UserPersistentParameter as o > ) > > Perhaps the exception could be a bit more descriptive. > > -- > Daryl Stultz > _____________________________________ > 6 Degrees Software and Consulting, Inc. > http://www.6degrees.com > mailto:[email protected] >
