org.hibernate.QueryException: unexpected char: ';' [select s from mapping.ScaleData s, mapping.ScalesMappingData sm, mapping.AgencyRatingData ar, mapping.AgencyData a where s.scaleid=sm.scale.scaleid and sm.agencyrating.ratingid=ar.ratingid and ar.agency.agencyid=a.agencyid and a.agencyname=: param1 and ar.rating= :param2;]

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 Hibernate JIRA by Damir Isanbirdin, 1 year ago
unexpected char: ';' [select s from mapping.ScaleData s, mapping.ScalesMappingData sm, mapping.AgencyRatingData ar, mapping.AgencyData a where s.scaleid=sm.scale.scaleid and sm.agencyrating.ratingid=ar.ratingid and ar.agency.agencyid=a.agencyid and a.agencyname=: param1 and ar.rating= :param2;]
via Hibernate JIRA by Damir Isanbirdin, 1 year ago
unexpected char: ';' [select s from mapping.ScaleData s, mapping.ScalesMappingData sm, mapping.AgencyRatingData ar, mapping.AgencyData a where s.scaleid=sm.scale.scaleid and sm.agencyrating.ratingid=ar.ratingid and ar.agency.agencyid=a.agencyid and a.agencyname=: param1 and ar.rating= :param2;]
via Coderanch by madhuri kunchala, 11 months ago
unexpected char: ';' [from testdb.User where id between 1 and 5; from User; ]
via javacodegeeks.com by Unknown author, 1 year ago
unexpected char: '~' [select p from com.model.Person p where p.name ~* :name]
via Stack Overflow by blue-sky
, 2 years ago
unexpected char: '"' [Event where eventName like "test" and startingDate >= "2011-01-19" and endingDate <= "2011-01-31" ]
org.hibernate.QueryException: unexpected char: ';' [select s from mapping.ScaleData s, mapping.ScalesMappingData sm, mapping.AgencyRatingData ar, mapping.AgencyData a where s.scaleid=sm.scale.scaleid and sm.agencyrating.ratingid=ar.ratingid and ar.agency.agencyid=a.agencyid and a.agencyname=: param1 and ar.rating= :param2;]
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:203)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:110)
at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
at org.hibernate.console.HQLQueryPage.setSession(HQLQueryPage.java:77)
at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:292)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.executeHQLQuery(ConsoleConfiguration.java:287)
at org.hibernate.eclipse.console.actions.ExecuteHQLAction.execute(ExecuteHQLAction.java:134)
at org.hibernate.eclipse.console.actions.ExecuteHQLAction$2.run(ExecuteHQLAction.java:104)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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