This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes NonRegisteringDriver.connect(NonRegisteringDriver.java:282) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "NonRegisteringDriver.connect(NonRegisteringDriver.java:282)" Watch "NonRegisteringDriver.connect(NonRegisteringDriver.java:282)" New topic
Author

NonRegisteringDriver.connect(NonRegisteringDriver.java:282)

Sanket L Shah
Ranch Hand

Joined: May 08, 2009
Posts: 49
Hi All,

I am developing one application in which i am using Hibernate....
When I am trying to do anything with database it throws exception like...


ava.lang.ExceptionInInitializerError
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)

at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)



Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)


Please help me...
Thank you...
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

"Mca Sanket Shah",
Please check your private messages. I had also requested the same of you in this thread


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38025
    
  22
Question more suited to the JDBC forum. Moving.
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874



I guess your driver jar is corrupted. Which driver is it ? try to extract and see. Or download the driver again.
 
 
subject: NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
 
Similar Threads
Connect to MySql with JDBC
Too many connections
How to put JDBC driver in applet jar?
java.net.ConnectException: Connection refused: connect
applet Mysql connection