Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9313

Re: ExceptionInInitializerError

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: ExceptionInInitializerError
Date Sun, 30 Oct 2011 10:07:30 -0400
Organization The Wasteland
Lines 40
Message-ID <nospam-7ED1EB.10073030102011@news.aioe.org> (permalink)
References <Xns9F8E6573E3F9Fjpnasty@94.75.214.39>
NNTP-Posting-Host LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
X-Notice Filtered by postfilter v. 0.8.2
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9313

Show key headers only | View raw


In article <Xns9F8E6573E3F9Fjpnasty@94.75.214.39>,
 Novice <novice@example..com> wrote:

> I'm getting an unexpected runtime error when I execute my applet on a 
> webpage from a jar. I should note that I do NOT get this same error when I 
> run this same applet in Eclipse, either as an applet or as application 
> using Roedy Green's "Hybrid/switchhitter" technique.
> 
> This is the line that it doesn't like: 
> 
>        switch(FooConstants.DESIRED_FORMAT) {
> 
> The relevant line of FooConstants is: 
> 
>     public static final Formats DESIRED_FORMAT = Formats.PARAGRAPH_FORMAT;
> 
> And Format is defined as follows:
> 
> public enum Formats {
> 
>     /** Bulleted list. */ 
>     LIST_FORMAT, 
>     
>     /** Paragraph. */
>     PARAGRAPH_FORMAT
> }
> 
> 
> Can anyone tell me why I'm getting this error? Also, I'm curious to know 
> why this error doesn't occur when I run the applet in Eclipse.

As suggested here, you may have re-factored FooConstants or Formats 
since the last full build:

<https://groups.google.com/forum/#!msg/comp.lang.java.programmer/NrVbkOkDBsg/BtW0CQeuhDUJ>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ExceptionInInitializerError Novice <novice@example..com> - 2011-10-30 13:57 +0000
  Re: ExceptionInInitializerError "John B. Matthews" <nospam@nospam.invalid> - 2011-10-30 10:07 -0400
    Re: ExceptionInInitializerError Novice <novice@example..com> - 2011-10-30 15:14 +0000
      Re: ExceptionInInitializerError Stanimir Stamenkov <s7an10@netscape.net> - 2011-10-30 17:52 +0200
      Re: ExceptionInInitializerError Lew <lewbloch@gmail.com> - 2011-10-30 08:45 -0700
      Re: ExceptionInInitializerError Roedy Green <see_website@mindprod.com.invalid> - 2011-10-30 23:57 -0700
      Re: ExceptionInInitializerError Roedy Green <see_website@mindprod.com.invalid> - 2011-10-31 01:28 -0700

csiph-web