wood burning stoves
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 Building Microservices this week in the Design 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: 44048
    
  33
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: 44048
    
  33
Well done

Please tell us how you got it solved, so as to help others who have a similar problem in the future.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: java.lang.ExceptionInInitializerError
 
It's not a secret anymore!