You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kathey Marsden (JIRA)" <de...@db.apache.org> on 2006/08/11 00:44:16 UTC

[jira] Closed: (DERBY-1466) Network Server should flush the PrintWriter after console output

     [ http://issues.apache.org/jira/browse/DERBY-1466?page=all ]

Kathey Marsden closed DERBY-1466.
---------------------------------


t

> Network Server should flush the PrintWriter after console output
> ----------------------------------------------------------------
>
>                 Key: DERBY-1466
>                 URL: http://issues.apache.org/jira/browse/DERBY-1466
>             Project: Derby
>          Issue Type: Improvement
>          Components: Network Server
>    Affects Versions: 10.1.2.1
>            Reporter: Kathey Marsden
>         Assigned To: Sunitha Kambhampati
>             Fix For: 10.1.3.2
>
>         Attachments: derby1466.diff.txt, derby1466.stat.txt
>
>
> If Network Server is started with a PrintWriter specified for console output it will not automatically flush output such as  starting the server.  This can be confusing as the console output shows no activity.
> Users currently need to specify the PrintWriter to autoflush  e.g.
>  starterWriter = new PrintWriter(new FileOutputStream(new File(SERVER_START_LOG)),true); 
> derbyServer = new NetworkServerControl();
>  derbyServer.start(starterWriter); 
> For repro see:
> http://www.nabble.com/Questions-about-Network-Server-API-Behavior-p5055814.html
> And change the following line in the program to not autoflush as follows:
> starterWriter = new PrintWriter(new FileOutputStream(new File(SERVER_START_LOG)),false); 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira