net.sf.hibernate.QueryException

unexpected token: in [from Person in class com.vcdeals.db2.Person]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web43

  • via Hibernate JIRA by Neil Katin, 1 year ago
    unexpected token: in [from Person in class com.vcdeals.db2.Person]
  • via Hibernate JIRA by Neil Katin, 1 year ago
    unexpected token: in [from Person in class com.vcdeals.db2.Person]
  • unexpected token: html [from inode in class com.dotmarketing.portlets.htmlpages.model.HTMLPage html, com.dotmarketing.portlets.htmlpages.model.HTMLPageVersionInfo vv where type='htmlpage' and identifier=vv.identifier and vv.live_inode=inode and vv.deleted=0]
  • Stack trace

    • net.sf.hibernate.QueryException: unexpected token: in [from Person in class com.vcdeals.db2.Person] at net.sf.hibernate.hql.FromParser.token(FromParser.java:89) at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87) at net.sf.hibernate.hql.PreprocessingParser.token(PreprocessingParser.java:123) at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:29) at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:149) at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:138) at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:293) at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1530) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1501) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1491) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1483) at com.vcdeals.db2.PersonFinder.findAll(PersonFinder.java:47) at com.vcdeals.servlet.AdminServlet.ensureAdminUser(AdminServlet.java:127) at com.vcdeals.servlet.AdminServlet.init(AdminServlet.java:108) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3948) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4271)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.