Hello.
Kathey Marsden commented on DERBY-273:
--------------------------------------
So are you saying that you start the server with the NetworkServerControl method
public void start(PrintWriter consoleWriter) throws Exception
Yes and No.
A little confused ....
I try to explain.
I started NetworkServerControl calling start method with subclass of
PrintWriter
which is possible to alter the desitination stream to print messages.
And then, I added code to alter destination stream before and after
shutting down network server, not to printed to console.
However I found that problematic message was generated yet after
modification.
Working some more, I found next two problem.
problem-1: There were overlooked part of test code where shutdown was done.
problem-2: I found that I don't know how the problematic message was
printed to streams exactly.
About problem-1, I found overlooked part, and work for them.
I think there are no room to be lost about this problem. Just find and
fix overlooked part.
About problem-2, I'm thinking to use System.setOut and System.setErr to
restrain problematic message.
However I'm not convinced about problem-2 exactly ....
This problem may be just a false image caused by problem-1 ...
Is it difficult to believe that message is printed to other than
PrintStream passed via start method of NetworkServerControl ?
At least, I could not read to comprehend the code around the logWriter
of NetworkServerControl ...
Best regards.
Kathey Marsden (JIRA) wrote:
[ http://issues.apache.org/jira/browse/DERBY-273?page=comments#action_12367048 ]
Kathey Marsden commented on DERBY-273:
--------------------------------------
So are you saying that you start the server with the NetworkServerControl method
public void start(PrintWriter consoleWriter) throws Exception
but messages are still going to System.out and System.err?
The derbynet/dataSourcePermissions_net.java test fails intermittently
---------------------------------------------------------------------
Key: DERBY-273
URL: http://issues.apache.org/jira/browse/DERBY-273
Project: Derby
Type: Bug
Components: Network Server, Regression Test Failure
Environment: 1.4.2 JVM (both Sun and IBM)
1.5.0_02 JVM (sun)
Reporter: Jack Klebanoff
Assignee: Tomohito Nakayama
Attachments: DERBY-273.patch
The test fails in the derbyall/derbynetclientmats/derbynetmats suite stack with
the following diff:
*** Start: dataSourcePermissions_net jdk1.4.2 DerbyNetClient
derbynetmats:derbynetmats 2005-05-11 04:24:11 ***
17a18,19
org.apache.derby.iapi.services.context.ShutdownException:
agentThread[DRDAConnThread_2,5,derby.daemons]
Test Failed.
--
/*
Tomohito Nakayama
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Naka
http://www5.ocn.ne.jp/~tomohito/TopPage.html
*/