Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

grabbing errors

Thread view: 
steve - 20 Dec 2005 10:25 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.