Hi,
I recently had a hard to track bug ( my compiler was outputting java 1.5
code for a 1.42 JVM)
I trap my errors using log4j, but what i really need it to get the console &
err channels into the logger as well.
because my try/catch sections completely missed the :
java.lang.NoSuchMethodError: java.math.BigDecimal.<init>(I)V
java.lang.NoSuchMethodError: java.math.BigDecimal.<init>(I)V
at
com.shipments.ShipmentsCard1.updatePendordrecord(ShipmentsCard1.java:1397)
at....
any idea /code to re-point ALL error systems to log4j?
load---class java.net.URLClassLoader
load---class sun.misc.Launcher$AppClassLoader
load---class sun.misc.Launcher$ExtClassLoader
We have exited the BootLoader
AppleGothic
AppleMyungjo
BiauKai
GB18030 Bitmap
Hiragino Kaku Gothic Pro
Hiragino Kaku Gothic Pro
Hiragino Kaku Gothic Std
Hiragino Maru Gothic Pro
Hiragino Mincho Pro
Hiragino Mincho Pro
#GungSeo
#PCMyungjo
Apple LiGothic
LiHei Pro
LiSong Pro
Apple LiSung
Osaka
Osaka
Fang Song
Hei
Kai
Song
STFangsong
STHeiti
STKaiti
STSong
STHeiti
dispatch watcher expired
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NoSuchMethodError: java.math.BigDecimal.<init>(I)V
java.lang.NoSuchMethodError: java.math.BigDecimal.<init>(I)V
at
com.shipments.ShipmentsCard1.updatePendordrecord(ShipmentsCard1.java:1397)
at
com.shipments.ShipmentsCard1.savecurrentscreentorecord(ShipmentsCard1.java:159
8)
at com.shipments.ShipmentsCard1.SaveCurrentEdits(ShipmentsCard1.java:878)
at com.shipments.ShipmentsCard1.addShipment(ShipmentsCard1.java:1080)
at com.shipments.ShipmentsCard1.actionPerformed(ShipmentsCard1.java:624)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
Larry - 21 Dec 2005 20:49 GMT
To get log4j logging messages to your console, make sure you add a
reference to the ConsoleAppender in you log4j configuration file:
log4j.appender.ROOT=org.apache.log4j.ConsoleAppender
You must also put log4j method calls in your "catch" blocks, but I
assume you are doing that already....hope this helps.