• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.exception.JDBCConnectionException: Cannot open connection facing

 
Rd Dari
Ranch Hand
Posts: 212
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an Excel sheet having three sheets.


In first sheet 380 records are there , in second sheet 1596 and in third sheet 5998 records are there but at the insertion time first and second sheet data is inserting successfully but in third sheet the data is varying at the insertion time means some times its inserting 2000 something , sometimes 3000 something and throwing the exception below:-


my code is :




can any one tell me the solution.

Thanks in advanced.
 
K. Tsang
Bartender
Posts: 3348
12
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java code seems to be okay. From the stack trace, the db connection is already opened or in use.

Are you using connection pool? What do the configuration files look like?

 
Rd Dari
Ranch Hand
Posts: 212
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank K. TSang for reply
I am using this datasource:

DataSource.xml



cxf.xml



and Hibernate.xml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic