users@glassfish.java.net

RE: Toplink exception parsing query

From: Shevland, Joe <joe.shevland_at_capgemini.com>
Date: Thu, 2 Aug 2007 09:43:29 +1000

> Hi Joe,
>
> this is strange. Your query looks ok. I'm just wondering
> about the error message. It says unexpected token
> SystemPrivilege at column 1. Meaning the query text passed to
> the query parser starts with SystemPrivilege (but the parser
> expects to find the token SELECT). I had such an error when I
> intended to create a named query, but I called em.createQuery
> (instead of em.createNamedQuery) and passed the query name as
> an argument.
>
> Regards Michael

Ah, sorry, you're completely right, checked the Eclipse local history.
Sorry for the noise.

Cheers
Joe

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.