[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    RE: java.lang.NoSuchFieldError: level
From:       <andrei.lenkei () ubs ! com>
Date:       2007-03-21 12:33:46
Message-ID: C213DAA0A52E7C42A2AA3AFCE63041A0050FDA99 () NZURC101PEX1 ! ubsw ! net
[Download RAW message or body]

Hello,

Yes, the category is set to info.

I cleaned up my classpath, removing several un-needed jar:s and that
fixed the problem.
I'm guessing one of the jar:s contained log4j classes.

Regards,
Andrei

-----Original Message-----
From: Ruben Gonzalez [mailto:ruben.gonzalez.quintero@gmail.com] 
Sent: Wednesday, March 21, 2007 08:34
To: Log4J Users List
Subject: Re: java.lang.NoSuchFieldError: level

Hi,

Did you set the following information in your log4j.properties?

      log4j.rootCategory=[DEBUG, INFO, WARN, ...]


2007/3/20, andrei.lenkei@ubs.com <andrei.lenkei@ubs.com>:
>
> Hi,
>
> I'm using the following:
>
> Windows XP
> WindRiver Workbench 2.5
> JDK_1.5.0_6
> Log4j-1.2.13.jar
>
> I have an application that uses log4j together with a multitude of 
> proprietary and third-party packages.
> Everything compiles fine but I try to run I get an error during the 
> initialzation of the static Logger member (code and excpetion provided
> below)
>
> I can see in the debugger that, indeed, "this" does not seem to have a

> memebr "level". It does show the "this.name" that it inherits from 
> Category class but not the level.
>
> Any help would be greatly appreciated.
>
> Code and exception:
>
> public class SpreadClient
> {
> private static Logger logger = Logger.getLogger("Main");
>
> java.lang.NoSuchFieldError: level
>        at org.apache.log4j.spi.RootLogger.setLevel(RootLogger.java:65)
>        at org.apache.log4j.spi.RootLogger.<init>(RootLogger.java:44)
>        at org.apache.log4j.LogManager.<clinit>(LogManager.java:78)
>        at org.apache.log4j.Logger.getLogger(Logger.java:104)
>        at
> com.ubsib.mrit.spreaddb.SpreadClient.<clinit>(SpreadClient.java:22)
>
> Best regards,
> Andrei
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please notify

> the sender immediately by e-mail if you have received this e-mail by 
> mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free as

> information could be intercepted, corrupted, lost, destroyed, arrive 
> late or incomplete, or contain viruses.  The sender therefore does not

> accept liability for any errors or omissions in the contents of this 
> message which arise as a result of e-mail transmission.  If 
> verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities or 
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic