Results 1 to 5 of 5
- 08-19-2009, 10:18 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 1
- Rep Power
- 0
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.
- 08-20-2009, 04:46 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can you post the complete error message here to see?
- 10-25-2010, 07:28 PM #3
Member
- Join Date
- Oct 2010
- Posts
- 2
- Rep Power
- 0
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.
- 10-25-2010, 07:36 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,401
- Blog Entries
- 7
- Rep Power
- 17
This is straight from the API documentation:
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.
Originally Posted by API docs
kind regards,
Jos
- 10-25-2010, 07:42 PM #5
Member
- Join Date
- Oct 2010
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Exception in thread "main" java.lang.NullPointerException at LinkedList.main(Link
By kavitha_0821 in forum New To JavaReplies: 6Last Post: 07-16-2009, 03:30 PM -
Exception in thread "main" java.lang.NullPointerException at LinkedList.main(Link
By kavitha_0821 in forum New To JavaReplies: 1Last Post: 07-16-2009, 10:35 AM -
Exception in thread "main" java.lang.NoClassDefFoundError: client Help
By b000m in forum New To JavaReplies: 6Last Post: 08-18-2008, 06:44 AM -
ERROR: Exception in thread "main" java.lang.NoSuchMethodError: main
By barney in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:10 AM -
Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
By romina in forum New To JavaReplies: 1Last Post: 07-25-2007, 10:55 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks