Re: ExceptionInInitializerError: NullPointerException
- From: "Shin" <bxin@xxxxxxx>
- Date: 7 Oct 2005 09:03:46 -0700
Roedy Green wrote:
> On 1 Oct 2005 12:03:05 -0700, "Shin" <bxin@xxxxxxx> wrote or quoted :
>
> >If the class it tries to load has an eagerly initialized static field
> >which depends on another class's lazily initialized field.
>
> Can you explain the mechanism of the problem is a little more depth?
>
> I could see a big problem if class A used class B's lazily initialised
> static that did not initialise until a B object was created, but that
> would be a bug always, not just when RMI were involved.
It doesn't depend on allocating objects of B. But, if the
initialization of B's static field depends on executing from "main"
method (normally, it's the case), you got the same effect.
-Shin
.
- References:
- Re: ExceptionInInitializerError: NullPointerException
- From: Roedy Green
- Re: ExceptionInInitializerError: NullPointerException
- Prev by Date: Re: ExceptionInInitializerError: NullPointerException
- Next by Date: Re: extended JTable... trying to add a row....
- Previous by thread: Re: ExceptionInInitializerError: NullPointerException
- Next by thread: Re: [Struts] Nested beans and getting the selected item value in a drop down form
- Index(es):
Relevant Pages
|
Loading