openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
Subject Unhelpful exception message
Date Tue, 08 Sep 2009 12:42:04 GMT
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:daryl@6degrees.com

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