On 8/21/06, iAbhishek@xxxxxxxxx <iAbhishek@xxxxxxxxx> wrote:
> It gets compiled well but when I run it I get this error:
> ExceptionInInitializerError:
> at GoogleFirst.main(GoogleFirst.java:14)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
>
> Line 14 is CalendarService myService = new
> CalendarService("smp-abhi-1");
Do you see a nested exception below the one above (i.e. another stack
trace that follows it, preceded by "Caused by:"?
Or, can you add the following to your exception handling:
}catch(Exception e){
e.printStackTrace();
if (e.getCause() != null) {
e.getCause().printStackTrace();
}
}
If I can get more information about the root exception that's causing
the ExceptionInInitializerError, I can diagnose the issue further.
Thanks!
-- Kyle
|