🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #523

Re: Printwriter outside JBuilder

#523
From: Magnus
Date: Thu, 16 Jun 2005 01:25
46 lines
2493 bytes
Everything is on my WinXP PC (I have multiple partitions) and I have 
about 100GB left.

The program stopped and I even tried to print a one line logg when 
clicking on a button. Nothing was printed in the log until I put the 
absolute path ...

Alexey N. Solofnenko wrote:

> PrintWriter masks all exceptions, so maybe your program is still 
> running, but the logging has stopped. It can happen, if your local hard 
> drive is out of space, but disk F: has plenty of space.
> 
> - Alexey.
> 
> Magnus wrote:
> 
>> Hi,
>>
>> Within JBuilder developing and testing I had the following:
>>
>> logFile = new PrintWriter(new FileWriter("./logs/"+filename,true));
>>
>> This worked great and all logs were created and all in my "logs" 
>> directory.
>>
>> Now, copy my jar, db files, etc. to a new directory (test-dir) and my 
>> app sometimes just hang ... I noticed it when trying to read the 
>> serial port since I log what I read. I could not figure it out until I 
>> tested to print a log before and after my init of the reading process. 
>> Nothing is printed.
>>
>> Just to test I change the line to:
>>
>> logFile = new PrintWriter(new 
>> FileWriter("F:/MyTestDir/TesData/"+filename,true));
>>
>> And now it works like a charm ...
>>
>> Why would I need an absolute path outside JBUilder but not within?
>>
>> As always, I'm grateful for any and all help.
>>
>> Magnus
>>
> 
Technical Details
Message-ID: <42b0d515@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42b0a92b@newsgroups.borland.com> <42b0ad74$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,ad9f2eda78c91665
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 15 Jun 2005 21:25:50 -0400
From: Magnus <magnus_bjorkman@iwon.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en, sv
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Printwriter outside JBuilder
References: <42b0a92b@newsgroups.borland.com> <42b0ad74$1@newsgroups.borland.com>
In-Reply-To: <42b0ad74$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.0.99.227
Message-ID: <42b0d515@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118885141 71.0.99.227 (15 Jun 2005 18:25:41 -0700)
Lines: 46
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail