javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query

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

,
Expert tip

If you're not using yet, consider using the SQLServerDataSource to set your server configurations. Also, check if the server is accepting TCP/IP connections and if there's no firewall blocking the connections.

Solutions on the web

via openxava by sagartandel
, 1 year ago
org.hibernate.exception.GenericJDBCException: could not execute query
via openxava by juanjovega
, 1 year ago
org.hibernate.exception.SQLGrammarException: could not execute query
via openxava by blassito
, 1 year ago
org.hibernate.exception.SQLGrammarException: could not execute query
via openxava by juanjovega
, 1 year ago
org.hibernate.exception.SQLGrammarException: could not execute query
via Stack Overflow by Bart van Heukelom
, 2 years ago
org.hibernate.exception.GenericJDBCException: could not execute query
via spagoworld.org by Unknown author, 1 year ago
org.hibernate.exception.SQLGrammarException: could not execute query
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setterGetParam(SQLServerPreparedStatement.java:714)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setValue(SQLServerPreparedStatement.java:723)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setInt(SQLServerPreparedStatement.java:884)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:117)
at org.hibernate.loader.Loader.bindLimitParameters(Loader.java:1810)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1719)
at org.hibernate.loader.Loader.doQuery(Loader.java:801)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
at org.hibernate.loader.Loader.doList(Loader.java:2542)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
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.openxava.tab.impl.JPATabProvider.nextBlock(JPATabProvider.java:170)
at org.openxava.tab.impl.JPATabProvider.nextChunk(JPATabProvider.java:139)
at org.openxava.tab.impl.EntityTabDataProvider.nextChunk(EntityTabDataProvider.java:32)
at org.openxava.tab.impl.EntityTab.nextChunk(EntityTab.java:254)
at org.openxava.tab.impl.TableModelBean.getRow(TableModelBean.java:121)
at org.openxava.tab.impl.TableModelBean.getValueAt(TableModelBean.java:172)
at org.openxava.tab.impl.XTableModelDecoratorBase.getValueAt(XTableModelDecoratorBase.java:63)
at org.openxava.tab.impl.HiddenXTableModel.getValueAt(HiddenXTableModel.java:70)
at org.openxava.web.servlets.GenerateReportServlet$TableModelDecorator.getValueWithoutWebEditorsFormat(GenerateReportServlet.java:100)
at org.openxava.web.servlets.GenerateReportServlet$TableModelDecorator.getValueAt(GenerateReportServlet.java:96)
at org.openxava.util.TableModels.toCSV(TableModels.java:32)
at org.openxava.web.servlets.GenerateReportServlet.doGet(GenerateReportServlet.java:220)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Once, 1 month ago
6 times, 3 months ago
4 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago

Write tip

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