| To: | users@xxxxxxxxxx |
|---|---|
| Subject: | Fw: printStackTrace prints nothing |
| From: | lei.han@xxxxxxxxxxxxx |
| Date: | Tue, 22 Aug 2006 14:42:37 -0400 |
| Cc: | Minpu.Wei@xxxxxx |
| Delivered-to: | mailing list users@cinjug.org |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
|
I found a java bug report http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4966410 very similair like what I am experiencing. It even has an example there which you can run to test. But I don't quite get the solution given there. Does anyone know what "-XX:+FullSpeedJVMDI" and "-XX:-OmitStackTraceInFastThrow" does? How would those options fix this problem? Thanks! Lei Han || Home : (248) 6149056 Cell: (513)6074271 ----- Forwarded by Lei Han/CIMG/CVG on 08/22/2006 02:38 PM -----
My code has logic like java.io.StringWriter writer = new java.io.StringWriter(); e.printStackTrace(new java.io.PrintWriter(writer)); String stackTraceString = writer.toString(); buf.append(stackTraceString); LOG.error(buf); But in my log file I only see java.lang.NullPointerException There is no stack trace after it and also no print out like <<no stack trace available>> How come the stack trace of java.lang.NullPointerException has not been printed out? Thanks! Lei Han || Home : (248) 6149056 Cell: (513)6074271 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Vaiggra and Cailiis Offfers, Marta Brand |
|---|---|
| Next by Date: | Join Us for The Spring Experiene 2006 coming to Hollywood, Florida on December 7-10th (Special JUG Rate Available thru 9/8/06), Jay Zimmerman |
| Previous by Thread: | Cincinnati Java Developer Needed, james o |
| Next by Thread: | Re: [cinjug-users] Fw: printStackTrace prints nothing, L. Feldman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |