Article View: borland.public.jbuilder.java.language
Article #396Re: StackOverflowException with a logging class
From: Alexey N. Solofnenko
Date: Fri, 27 May 2005 20:40
Date: Fri, 27 May 2005 20:40
49 lines
2476 bytes
2476 bytes
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:
<429785da@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>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,1362cbd94d530932 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 27 May 2005 13:40:59 -0700 From: "Alexey N. Solofnenko" <trelony@mail.ru> User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050527) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: StackOverflowException with a logging class References: <42977f0e$1@newsgroups.borland.com> <42978135$1@newsgroups.borland.com> <42978357@newsgroups.borland.com> In-Reply-To: <42978357@newsgroups.borland.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 208.200.221.5 Message-ID: <429785da@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1117226458 208.200.221.5 (27 May 2005 13:40:58 -0700) Lines: 49 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