Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] jpa_helper_invalid_queryclass $Proxy34

I'm receiving the following error almost randomly, but once I receive
it, all subsequent calls using the em fail:

jpa_helper_invalid_queryclass $Proxy34 (There is no English
translation for this message.)

I use the following before each query:
Query query = em.createQuery(...);
JpaHelper.getDatabaseQuery(query).setRedirector(aggressiveCacheQueryRedirector);

I looked at the code inside JpaHelper.getDatabaseQuery() which is
where the exception is thrown and it reads:


        if (query instanceof JpaQuery) {
            return ((JpaQuery)query).getDatabaseQuery();
        }

        throw new
IllegalArgumentException(ExceptionLocalization.buildMessage("jpa_helper_invalid_query"
+ query.getClass()));



Any idea how to get around the proxy?

Thanks,
Zarar


Back to the top