JBoss Community

unable to reconnect to DB in Hibernate after database server restarted

created by Padmanabha Mishra in Beginner's Corner - View the full discussion

I have implemented hibernate in my web application to access oracle 10g database.

When my application is in running state I restarted my database service(Oracle).

 

Then my application is throwing exception   given below:

     java.sql.SQLException: No more data to read from socket

 

But my SessionFactory object still exist.

calling openSession() on sessionfactory is also fine.

This exception is coming while i m retriving a record from a table (example query.uniqresult())

I think its unable to reconnect to database.

 

please give me a solution.

 

Thanks,

Padmanabha.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community