Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink-6112 : Fetch group cannot be set on report query(Eclipse link throwing exception while executing JPA query)
icon4.gif  EclipseLink-6112 : Fetch group cannot be set on report query [message #1633021] Tue, 24 February 2015 16:29
Onkar Dhuri is currently offline Onkar DhuriFriend
Messages: 1
Registered: February 2015
Junior Member
Hi,

I am receiving following exeception in eclipselink -

javax.persistence.PersistenceException: Exception [EclipseLink-6112] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.QueryException
Exception Description: Fetch group cannot be set on report query.
Query: ReportQuery(referenceClass=CD_DC_CATALOG sql="...."
FetchGroup(){NAME}

Below is the JPA Query that is generated -

SELECT
t0."CATALOG_ID",
t0."AUTHOR"
FROM
"CD_CATALOG" t0,
"CD_DC_CATALOG" t1
WHERE
(
(
(
(
t1."CATALOG_ID" = '0Zoj2'
)
AND (
t1."CATALOG_ITEM_ID" = 'babed'
)
)
)
AND (
t0."CATALOG_ID" = t1."CATALOG_ID"
)
)


When the same query is executed through JDBC, it returns the expected result.

Any insight about why the exception is being thrown and how to workaround with it ??

Thanks,
Onkar
Previous Topic:JoinFetchType.INNER with spring data paging gives classcastexception
Next Topic:Manage Bi-temporal Data
Goto Forum:
  


Current Time: Fri Apr 19 15:31:52 GMT 2024

Powered by FUDForum. Page generated in 0.01977 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top