db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-1466) Network Server should flush the PrintWriter after console output
Date Thu, 29 Jun 2006 13:25:30 GMT
Network Server should flush the PrintWriter after console output

         Key: DERBY-1466
         URL: http://issues.apache.org/jira/browse/DERBY-1466
     Project: Derby
        Type: Improvement

  Components: Network Server  
    Reporter: Kathey Marsden

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();

For repro see:

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:
For more information on JIRA, see:

View raw message