• Post Reply Bookmark Topic Watch Topic
  • New Topic

ExceptionInInitializerError  RSS feed

 
Sarath Chandra
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Our application is throwing Exception and below is the stack trace,



Error is thrown in a static block while creating a new Object X with new operator.

But the object X file doesnt have any static blocks,nor the constructor has much do to do.It has empty constructor and some static final varible declarations.

The super class files of X doesnt have any static blocks.Even they have only static final variable declarations.

Some body please help me where to check and what to check for?

Thanks.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ExceptionInInitializerError means that something went wrong in a static initializer in the class.

Please show us your class X, if you can. It's very hard to give you a useful answer without seeing the source code.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!