openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sutter <>
Subject Re: Error in Select JPQL
Date Fri, 13 Jul 2012 21:30:43 GMT
The first thought I had is that maybe the prepared query cache is not
processing the queries correctly.  There have been some issues with "in"
clauses and the prepared query cache [2].  Try disabling that cache and see
if the problem goes away:

<property name="openjpa.jdbc.QuerySQLCache" value="false">

To have your parameters printed out, try using this property [1].

<property name="openjpa.Log" value="SQL=TRACE"/>
<property name="openjpa.ConnectionFactoryProperties"

Hope this helps.  Since you are a WebSphere customer, I would also suggest
opening a PMR to get your problem addressed.  Good luck!


On Fri, Jul 13, 2012 at 3:16 PM, Jude <> wrote:

> I have a select statement that looks like the following:
> "select qd from UiQtrlyRptUnitDtl qd where qd.emprAcctId = :emprAcctId and
> qd.ccyyqId in (:ccyyqList) and qd.emprUnitId in (:emprUnitList) and qd.ssn
> in (:ssnList)"
> I am passing in the same parameters but getting different results while
> executing the query in succession. The first execution returns all the
> values correctly but the second and the rest of the executions give a
> subset
> of first resultset. The issue is consistent both in Web app and standalone
> JUnit testing. I tried entityManager.clear() and OpenJPA's
> StoredCache.evitAll(), evictAll(Object..) etc. with no results. I am using
> Spring transaction management. Any help on this is much appreciated. Please
> let me know if any further information is required. I know, it looks very
> silly to post an issue like this but I am not able to get around teh
> problem. I get inconsistent results throughout my application for other
> similar queries as well and I am using Websphere. Can you also help me with
> the property to set to print query parameters? openjpa.Query is not
> working.
> --
> View this message in context:
> Sent from the OpenJPA Developers mailing list archive at

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