-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: getting java.lang.ExceptionInInitializerError
PostPosted: Tue Feb 03, 2004 5:15 am 
Newbie

Joined: Tue Feb 03, 2004 5:10 am
Posts: 1
when am compiling ths code i get this error

cfg = new Configuration().addClass(persistenceClass).setProperties(properties);

i get java.lang.ExceptionInInitializerError.

Can any body tell me why ths happends..

am using jdk1.4.1_03

reg Senthil kumar


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 5:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Really impossible to tell without a proper stack trace,


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 5:00 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
This can sometimes be related to Log4J.

Google for "ExceptionInInitializerError" -- it is almost always some kind of classloading problem (a static initializer throwing a classloading exception).

The problem is that it's hard to *get* a proper stack trace out of an ExceptionInInitializerError....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.