Article View: borland.public.jbuilder.java.language
Article #394Re: StackOverflowException with a logging class
From: scott
Date: Fri, 27 May 2005 20:30
Date: Fri, 27 May 2005 20:30
37 lines
1930 bytes
1930 bytes
Alexei,
Thanks for the suggestion.
I've commented out all of the logger calls and the app runs
without getting the Stack Overflow.
So let's say the problem is in the logger.
There are 4000+ requirements and probably 32,000 total calls to
the logger methods. It could take a lot of "step over" clicks
to wait for the logger to blow up.
Dummy print statements seem problematic since that's basically
what the logger does: writes to System.out.
Can you suggest anything else?
Could you see the hashtables growing large enough that they're
causing the problem?
I think stack overflows are typically recursion related, but I don't really see any chance for that in this code. Maybe I'm missing something.
Scott
"Alexey N. Solofnenko" <trelony@mail.ru> wrote:
>Please try running the program in debugger or add dummy print statements
>through out your code to see where stack overflow happens.
>
>- Alexey.
>
>--
>Alexey N. Solofnenko {trelony at gmail.com}
>home: http://trelony.cjb.net/
Technical Details
Message-ID:
<42978357@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<42977f0e$1@newsgroups.borland.com> <42978135$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,1362cbd94d530932 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "scott" <spowell@rpsweb.com> Sender: "scott" <spowell@rpsweb.com> Reply-To: "scott" <spowell@rpsweb.com> Subject: Re: StackOverflowException with a logging class Newsgroups: borland.public.jbuilder.java.language X-User-Info: 64.80.153.236 References: <42977f0e$1@newsgroups.borland.com> <42978135$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42978357@newsgroups.borland.com> Date: 27 May 2005 13:30:15 -0700 X-Trace: newsgroups.borland.com 1117225815 207.105.83.66 (27 May 2005 13:30:15 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail