Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in opening connection

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using swing with hibernate. My application was working fine. But suddenly this exception is thrown in every classes which connects with database(either for insert or retrieval)

Can any one explain me the reason behind this?


 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have committed a blunder. I have create Configuration , SessionFactory, session and Transaction object in every method(each method runs a different SQL query) of 6 DAO classes.

Is that the reason for this Exception? Please Explain
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No reply
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The XE version has some restrictions on the number of processes.
Log into the database as SYS and run the command
where SomeValue is something higher than 100, try 200.
You'd need to restart the database after running that command.
And yes, don't repeat yourself in the code. Create reusable classes/methods.

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks E Armitage for your suggestions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic