wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes java.lang.ExceptionInInitializerError 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 » Java » Beginning Java
Bookmark "java.lang.ExceptionInInitializerError" Watch "java.lang.ExceptionInInitializerError" New topic
Author

java.lang.ExceptionInInitializerError

Sanket L Shah
Ranch Hand

Joined: May 08, 2009
Posts: 49

Hi All,

I'm developing one application in wich I am using Hibernate....

It gives me exception like ...


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


Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)

Thanks all....
doruk turkoglu
Greenhorn

Joined: May 22, 2009
Posts: 4
if i wasnt wrong i come up with this problem because of VISTA security things :
try to open(give access to) port of your database
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
Have you got permission problems?

Have you read the API documentation for that Error? Have you seen what it says? Have you looked at where it occurs? What happens there?
Sanket L Shah
Ranch Hand

Joined: May 08, 2009
Posts: 49
Campbell Ritchie wrote:Have you got permission problems?

Have you read the API documentation for that Error? Have you seen what it says? Have you looked at where it occurs? What happens there?



Thanks for your reply Ritchie....
I have got solved my prob. solved...

Thanks a lot
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
Well done

Please tell us how you got it solved, so as to help others who have a similar problem in the future.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.ExceptionInInitializerError
 
Similar Threads
help
Migration of Hibernate 2.0 to 3.0
ExceptionInInitializerError
hibernate.cfg.xml not found
Error in Running Servlet online