javax.persistence.PersistenceException

org.hibernate.exception.SQLGrammarException: could not execute query

Samebug tips1

Check your annotations to use the proper table and column names.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web181

  • via openxava by juanjovega
    ,
  • via openxava by juanjovega
    ,
  • Stack trace

    • javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1389) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1317) at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:255) 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:249) at org.openxava.tab.impl.TableModelBean.getRow(TableModelBean.java:121) at org.openxava.tab.impl.TableModelBean.getValueAt(TableModelBean.java:171) at org.openxava.tab.impl.XTableModelDecoratorBase.getValueAt(XTableModelDecoratorBase.java:62) at org.openxava.tab.impl.HiddenXTableModel.getValueAt(HiddenXTableModel.java:69) at org.openxava.tab.Tab.createTableModel(Tab.java:367) at org.openxava.tab.Tab.getTableModel(Tab.java:339) at org.apache.jsp.xava.editors.listEditor_jsp._jspService(listEditor_jsp.java:990) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    13 more bugmates