Results 1 to 5 of 5
  1. #1
    kenzo2009 is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default Exception in thread "main" java.lang Exception In InitializerError

    We are facing an issue while trying to connect stage server from a java class which is present in the jar file in unix box.


    Java class is working fine in our local system and it could access stage server.
    We created jar file with the java class and put into unix box,when we are trying to execute the java class from shell script we are getting the attached error.

    "Exception in thread "main" java.lang Exception In InitializerError"

    Any advise on this issue.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    cuzicouldyay is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Default

    Hi, I'm not the original poster, but I'm having the same exception:


    java -jar Shimeji.jar
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.group_finity.mascot.image.MascotImage.<init>(M ascotImage.java:26)
    at com.group_finity.mascot.image.ImagePairLoader.load (ImagePairLoader.java:28)
    at com.group_finity.mascot.config.AnimationBuilder.lo adPose(AnimationBuilder.java:49)
    at com.group_finity.mascot.config.AnimationBuilder.<i nit>(AnimationBuilder.java:33)
    at com.group_finity.mascot.config.ActionBuilder.<init >(ActionBuilder.java:51)
    at com.group_finity.mascot.config.Configuration.load( Configuration.java:40)
    at com.group_finity.mascot.Main.loadConfiguration(Mai n.java:90)
    at com.group_finity.mascot.Main.run(Main.java:69)
    at com.group_finity.mascot.Main.main(Main.java:63)
    Caused by: java.lang.NullPointerException
    at com.group_finity.mascot.generic.GenericEnvironment .tick(GenericEnvironment.java:18)
    at com.group_finity.mascot.environment.Environment.<i nit>(Environment.java:92)
    at com.group_finity.mascot.generic.GenericEnvironment .<init>(GenericEnvironment.java:11)
    at com.group_finity.mascot.generic.NativeFactoryImpl. <init>(NativeFactoryImpl.java:12)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at com.group_finity.mascot.NativeFactory.<clinit>(Nat iveFactory.java:30)
    ... 9 more

    I'm pretty much as new to Java as one can be, so...any help will be appreciated.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,679
    Blog Entries
    7
    Rep Power
    21

    Default

    This is straight from the API documentation:

    Quote Originally Posted by API docs
    Signals that an unexpected exception has occurred in a static initializer. An ExceptionInInitializerError is thrown to indicate that an exception occurred during evaluation of a static initializer or the initializer for a static variable.
    So when a class is loaded and initialized something fails; if you have a stack trace you are even notified of the line where the failure happened.

    kind regards,

    Jos

  5. #5
    cuzicouldyay is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Replies: 6
    Last Post: 07-16-2009, 04:30 PM
  2. Replies: 1
    Last Post: 07-16-2009, 11:35 AM
  3. Replies: 6
    Last Post: 08-18-2008, 07:44 AM
  4. Replies: 1
    Last Post: 08-07-2007, 08:10 AM
  5. Replies: 1
    Last Post: 07-25-2007, 11:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •