Clearly you've compiled against a Log4j version with trace(), but are running against an old version of Log4j that doesn't include trace(). Check your runtime classpath.

Jake

On Tue, 12 Feb 2008 13:57:41 -0800
 "Eric Kolotyluk" <[EMAIL PROTECTED]> wrote:
I have the following code:



     private static final Logger LOG =
Logger.getLogger(CalibrationWizardMediator.class);

     . . .

LOG.trace("windowClosed: our view has closed");



Which throws



Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
org.apache.log4j.Logger.trace(Ljava/lang/Object;)V

     at
com.kodak.kps.wizard.CalibrationWizardMediator$WindowListener.windowClos
ed(CalibrationWizardMediator.java:870)



The code compiles, so why doesn't it run?



I'm using jog4j 1.2.15



I've used trace before with log4j 1.3, but now I can't get it to work
with 1.3b8 either.



What's going on?



Cheers, Eric

Eric Kolotyluk | Software Developer, Enterprise Solutions | Graphic
Communications Group |
Kodak Graphics Communications Company, Canada | 4225 Kincaid Street |
Burnaby, BC V5G 4P5 | Canada |
+1.604.451.2700 x 6471 tel  |  +1.604.437.9891 fax  | +1.604.834.0129
mobile
www.graphics.kodak.com <http://www.graphics.kodak.com/>





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to