org.hibernate.hql.ast.QuerySyntaxError: unexpected token: ( near line 1, column 49 [FROM Message AS msg GROUP BY month(msg.datecreated)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via genuitec.com by Unknown author, 1 year ago
expecting IDENT, found ‘.’ near line 1, column 56 [from com.movilogic.hibernate.mappings.Planes p where p..codigo_servicio = ’12’ ]
via Coderanch by Chris Boldon, 11 months ago
unexpected token: new near line 1, column 64 [select projectOrganization, count(projectOrganization) as inc, new PortfolioCountImpl(portfolio,inc) from com.x.pmo.vo.ProjectImpl group by projectOrganization as organization]
via Stack Overflow by Asuthosh Sharma
, 11 months ago
unexpected token: ON near line 1, column 41 [FROM com.admin.A as a LEFT JOIN B as b on a.Id=b.Id LEFT JOIN C as c onb.type=c.type]
via hibernate.org by Unknown author, 1 year ago
expecting "all", found 'join' near line 4, column 78 [ from org.openehr.rm.common.archetyped.Archetyped as at fetch join org.openehr.rm.support.identification.ArchetypeID as aId where aId.value = ? ]
org.hibernate.hql.ast.QuerySyntaxError: unexpected token: ( near line 1, column 49 [FROM Message AS msg GROUP BY month(msg.datecreated)
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:74)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:214)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:127)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:414)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:814)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:773)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.