org.hibernate.QueryException: addEntity() or addScalar() must be called on a sql query before executing the query. [from com.marsh.cansys.clt.services.client.business.ClientAddressUsageBO c where c.cltNo = 747776 and c.cltOfcNo=3 and c.cltAddType='PRI' and c.cltAddKey=262050]

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 chaitanya sanjay karmarakr, 1 year ago
addEntity() or addScalar() must be called on a sql query before executing the query. [from com.marsh.cansys.clt.services.client.business.ClientAddressUsageBO c where c.cltNo = 747776 and c.cltOfcNo=3 and c.cltAddType='PRI' and c.cltAddKey=262050]
via Hibernate JIRA by chaitanya sanjay karmarakr, 1 year ago
addEntity() or addScalar() must be called on a sql query before executing the query. [from com.marsh.cansys.clt.services.client.business.ClientAddressUsageBO c where c.cltNo = 747776 and c.cltOfcNo=3 and c.cltAddType='PRI' and c.cltAddKey=262050]
org.hibernate.QueryException: addEntity() or addScalar() must be called on a sql query before executing the query. [from com.marsh.cansys.clt.services.client.business.ClientAddressUsageBO c where c.cltNo = 747776 and c.cltOfcNo=3 and c.cltAddType='PRI' and c.cltAddKey=262050]
at org.hibernate.impl.SQLQueryImpl.verifyParameters(SQLQueryImpl.java:169)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:140)
at com.marsh.cansys.ams.address.DAO.AddressDAO.getClientAddress(AddressDAO.java:44)
at com.marsh.cansys.clt.services.client.controller.AddressControllerImpl.getClientAddress(AddressControllerImpl.java:32)
at com.marsh.cansys.clt.services.client.controller.AddressControllerImpl.main(AddressControllerImpl.java:25)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

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