org.hibernate.exception.SQLGrammarException: could not extract ResultSet

Stack Overflow | shekar | 3 months ago
  1. 0

    I want to perform stored procedure call using Hibernate query language and tried doing this as pe

    Stack Overflow | 3 months ago | shekar
    org.hibernate.exception.SQLGrammarException: could not extract ResultSet
  2. 0

    Failed to execute hibernate query

    Stack Overflow | 2 years ago
    org.hibernate.exception.SQLGrammarException: could not extract ResultSet
  3. 0

    Exception in Hibernate Query- java.lang.IllegalArgumentException

    Stack Overflow | 10 months ago | arch
    org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 26#244895977

    GitHub | 3 months ago | marcodelucia
    org.hibernate.exception.SQLGrammarException: could not extract ResultSet
  6. 0

    GitHub comment 26#244043610

    GitHub | 3 months ago | marcodelucia
    org.hibernate.exception.SQLGrammarException: could not extract ResultSet

  1. Kialandei 1 times, last 2 weeks ago
  2. davidvanlaatum 8 times, last 2 months ago
  3. AndrewProg 2 times, last 3 months ago
  4. kuldeep 2 times, last 3 months ago
  5. tvrmsmith 1 times, last 4 months ago
27 more registered users
64 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException

    PROCEDURE demo.fetchCustomers does not exist

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  3. MySQL jdbc
    PreparedStatement.executeQuery
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    2. com.mysql.jdbc.Util.getInstance(Util.java:381)
    3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
    4. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
    5. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
    6. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
    7. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
    8. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
    9. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
    10. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
    11. com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2228)
    11 frames
  4. Hibernate
    SQLQueryImpl.list
    1. org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:82)
    2. org.hibernate.loader.Loader.getResultSet(Loader.java:2066)
    3. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1863)
    4. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1839)
    5. org.hibernate.loader.Loader.doQuery(Loader.java:910)
    6. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355)
    7. org.hibernate.loader.Loader.doList(Loader.java:2554)
    8. org.hibernate.loader.Loader.doList(Loader.java:2540)
    9. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2370)
    10. org.hibernate.loader.Loader.list(Loader.java:2365)
    11. org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:353)
    12. org.hibernate.internal.SessionImpl.listCustomQuery(SessionImpl.java:1873)
    13. org.hibernate.internal.AbstractSessionImpl.list(AbstractSessionImpl.java:311)
    14. org.hibernate.internal.SQLQueryImpl.list(SQLQueryImpl.java:141)
    14 frames
  5. org.jnit.main
    HQLMain.main
    1. org.jnit.main.HQLMain.usingStoredProcedure(HQLMain.java:31)
    2. org.jnit.main.HQLMain.main(HQLMain.java:37)
    2 frames