Article View: borland.public.jbuilder.java.language
Article #395Re: StackOverflowException with a logging class
From: scott
Date: Fri, 27 May 2005 20:48
Date: Fri, 27 May 2005 20:48
57 lines
2543 bytes
2543 bytes
Alexey,
How do I do a dummy print?
Scott
"Alexey N. Solofnenko" <trelony@mail.ru> wrote:
>Dummy prints usually help. Another suggestion would be disabling
>(commenting out) some functionality until the program starts working.
>
>- Alexey.
>
>scott wrote:
>> 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/
>>
>>
>
>--
>Alexey N. Solofnenko {trelony at gmail.com}
>home: http://trelony.cjb.net/
Technical Details
Message-ID:
<42978788$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42977f0e$1@newsgroups.borland.com> <42978135$1@newsgroups.borland.com> <42978357@newsgroups.borland.com> <429785da@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> <42978357@newsgroups.borland.com> <429785da@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42978788$1@newsgroups.borland.com> Date: 27 May 2005 13:48:08 -0700 X-Trace: newsgroups.borland.com 1117226888 207.105.83.66 (27 May 2005 13:48:08 -0700) Lines: 58 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail