• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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

 
Ranch Hand
Posts: 214
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.
 
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • 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: 214
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
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!