Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » MismatchedTokenException(MismatchedTokenException)
MismatchedTokenException [message #1234238] Tue, 21 January 2014 14:11 Go to next message
Sendhil Kumar is currently offline Sendhil KumarFriend
Messages: 7
Registered: January 2014
Junior Member
Hi All,

Am new to eclipselink....

Am getting following error, when doing createQuery,

Query q = entityManager.createQuery(select appUser from com.csfb.csar.exman.shared.config.UserVo$AppUser appUser where appUser.userId='kumar');

java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing the query [select appUser from com.csfb.csar.exman.shared.config.UserVo$AppUser appUser where appUser.userId='kumar'], line 1, column 23: syntax error at [.].
Internal Exception: MismatchedTokenException(83!=78)


Any idea what is the issue?

Here AppUser is an inner class of UserVo class.

Whether inner class is supported with eclipse link?

Am trying to migrate to eclipselink from hibernate.

[Updated on: Tue, 21 January 2014 18:08]

Report message to a moderator

Re: MismatchedTokenException [message #1235155 is a reply to message #1234238] Thu, 23 January 2014 17:26 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
Registered: July 2009
Senior Member
You can only use the AppUser class if were an Entity, and in which case it will be queried on its entity name (AppUser by default), not the package full class name. But entities that are not top-level classes are not supported by the JPA specification, and I don't believe will work in EclipseLink.

Best Regards,
Chris


Previous Topic:Add entities programmatically
Next Topic:Problem with Bidirectional relationship and Cache
Goto Forum:
  


Current Time: Fri Apr 26 05:53:35 GMT 2024

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

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

Back to the top