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

Samebug tips

  1. ,
    Expert tip

    Check if you're not creating unused SQL entities, as it might cause this exception.

Solutions on the web

via Hibernate JIRA by Martin Striz, 1 year ago
org.hibernate.exception.GenericJDBCException: could not execute query
via Hibernate JIRA by Martin Striz, 2 years ago
org.hibernate.exception.GenericJDBCException: could not execute query
via atlassian.net by Unknown author, 2 years ago
org.hibernate.exception.GenericJDBCException: could not execute query
via hibernate.org by Unknown author, 2 years ago
org.hibernate.exception.SQLGrammarException: could not execute query
via Stack Overflow by Clinton Bosch
, 2 years ago
org.hibernate.exception.JDBCConnectionException: could not execute query
via hibernate.org by Unknown author, 2 years ago
org.hibernate.exception.SQLGrammarException: could not execute query
org.h2.jdbc.JdbcSQLException: Parameter "#1" is not set; SQL statement:
select picture0_.id as id1_ from Picture picture0_ where picture0_.id=? [90012-143]	at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)	at org.h2.message.DbException.get(DbException.java:167)	at org.h2.message.DbException.get(DbException.java:144)	at org.h2.expression.Parameter.checkSet(Parameter.java:73)	at org.h2.command.Prepared.checkParameters(Prepared.java:161)	at org.h2.command.CommandContainer.query(CommandContainer.java:79)	at org.h2.command.Command.executeQuery(Command.java:132)	at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)	at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)	at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)	at org.hibernate.loader.Loader.doQuery(Loader.java:802)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)	at org.hibernate.loader.Loader.doList(Loader.java:2533)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)	at org.hibernate.loader.Loader.list(Loader.java:2271)	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452)	at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)	at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)	at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:246)	at issue.OneToOneIssueMain.query2(OneToOneIssueMain.java:83)	at issue.OneToOneIssueMain.run(OneToOneIssueMain.java:29)	at issue.OneToOneIssueMain.main(OneToOneIssueMain.java:19)