Error: could not Extract Resultset

Asked

Viewed 1,328 times

2

I have this method:

public List<AvaCriterio> getList(){
        List<AvaCriterio> lista = null;
        try{
           Session session = HibernateUtil.getSessionFactory().openSession();
           session.beginTransaction();
           lista = (List<AvaCriterio>)session.createQuery("from ava_criterio").list();
           session.getTransaction().commit();

        }catch(Exception e)
        {System.out.println("Erro: "+e.getMessage());}

        return lista;
    }

Gives this error when executing:

Feb 07, 2017 5:16:46 pm org.hibernate.engine.jdbc.spi.Sqlexceptionhelper logExceptions WARN: SQL Error: 936, Sqlstate: 42000 Error: could not Extract Resultset

Where is the error?

  • Which database are you using? How is your Hibernate configuration file?

  • Oracle, Good. He’s saving and changing.

  • 1

    I resolved with the answer of this question

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.