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 "Øystein Grøvlen (JIRA)" <de...@db.apache.org> on 2005/05/20 11:58:53 UTC

[jira] Created: (DERBY-303) derbynet/testconnection.java fails

derbynet/testconnection.java fails
----------------------------------

         Key: DERBY-303
         URL: http://issues.apache.org/jira/browse/DERBY-303
     Project: Derby
        Type: Bug
  Components: Test  
    Versions: 10.1.0.0    
 Environment: Seem to occur on several platforms
    Reporter: Øystein Grøvlen


When I run the testsuite, derbynet/testconnection.java fails.
testconnection.tmp contains the following:

Testing testconnection
org.apache.derby.drda.NetworkServerControl ping 
Could not connect to Derby Network Server on host localhost, port 1527.
java.lang.IllegalThreadStateException: process hasn't exited
        at java.lang.UNIXProcess.exitValue(UNIXProcess.java:116)
        at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
        at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
        at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.main(Unknown Source) 

-- 
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


[jira] Closed: (DERBY-303) derbynet/testconnection.java fails

Posted by "Samuel Andrew McIntyre (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-303?page=all ]
     
Samuel Andrew McIntyre closed DERBY-303:
----------------------------------------


Confirmed as fixed by Øystein.

> derbynet/testconnection.java fails
> ----------------------------------
>
>          Key: DERBY-303
>          URL: http://issues.apache.org/jira/browse/DERBY-303
>      Project: Derby
>         Type: Bug
>   Components: Test
>     Versions: 10.1.0.0
>  Environment: Seem to occur on several platforms
>     Reporter: Øystein Grøvlen
>     Assignee: David Van Couvering
>  Attachments: DERBY-303.diff
>
> When I run the testsuite, derbynet/testconnection.java fails.
> testconnection.tmp contains the following:
> Testing testconnection
> org.apache.derby.drda.NetworkServerControl ping 
> Could not connect to Derby Network Server on host localhost, port 1527.
> java.lang.IllegalThreadStateException: process hasn't exited
>         at java.lang.UNIXProcess.exitValue(UNIXProcess.java:116)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.main(Unknown Source) 

-- 
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


Re: [jira] Updated: (DERBY-303) derbynet/testconnection.java fails

Posted by Øystein Grøvlen <Oy...@Sun.COM>.
>>>>> "DVC(" == David Van Couvering (JIRA) <de...@db.apache.org> writes:

    DVC(> I am missing a call to Process.waitFor() The attached patch adds this call; Oystein, can you 
    DVC(> see if this fixes it for you on your Solaris 10 x86 box?

This fixed the bug.  
-- 
Øystein


[jira] Updated: (DERBY-303) derbynet/testconnection.java fails

Posted by "David Van Couvering (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-303?page=all ]

David Van Couvering updated DERBY-303:
--------------------------------------

    Attachment: DERBY-303.diff

Looking at the very helpful test results from Ole, it appears this bug only occurs on Solaris 10x86. 
I can't reproduce on any platforms I have available.    However, a code inspection shows that
I am missing a call to Process.waitFor() The attached patch adds this call; Oystein, can you 
see if this fixes it for you on your Solaris 10 x86 box?

> derbynet/testconnection.java fails
> ----------------------------------
>
>          Key: DERBY-303
>          URL: http://issues.apache.org/jira/browse/DERBY-303
>      Project: Derby
>         Type: Bug
>   Components: Test
>     Versions: 10.1.0.0
>  Environment: Seem to occur on several platforms
>     Reporter: Øystein Grøvlen
>     Assignee: David Van Couvering
>  Attachments: DERBY-303.diff
>
> When I run the testsuite, derbynet/testconnection.java fails.
> testconnection.tmp contains the following:
> Testing testconnection
> org.apache.derby.drda.NetworkServerControl ping 
> Could not connect to Derby Network Server on host localhost, port 1527.
> java.lang.IllegalThreadStateException: process hasn't exited
>         at java.lang.UNIXProcess.exitValue(UNIXProcess.java:116)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.main(Unknown Source) 

-- 
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


[jira] Assigned: (DERBY-303) derbynet/testconnection.java fails

Posted by "David Van Couvering (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-303?page=all ]

David Van Couvering reassigned DERBY-303:
-----------------------------------------

    Assign To: David Van Couvering

> derbynet/testconnection.java fails
> ----------------------------------
>
>          Key: DERBY-303
>          URL: http://issues.apache.org/jira/browse/DERBY-303
>      Project: Derby
>         Type: Bug
>   Components: Test
>     Versions: 10.1.0.0
>  Environment: Seem to occur on several platforms
>     Reporter: Øystein Grøvlen
>     Assignee: David Van Couvering

>
> When I run the testsuite, derbynet/testconnection.java fails.
> testconnection.tmp contains the following:
> Testing testconnection
> org.apache.derby.drda.NetworkServerControl ping 
> Could not connect to Derby Network Server on host localhost, port 1527.
> java.lang.IllegalThreadStateException: process hasn't exited
>         at java.lang.UNIXProcess.exitValue(UNIXProcess.java:116)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.main(Unknown Source) 

-- 
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


[jira] Commented: (DERBY-303) derbynet/testconnection.java fails

Posted by "Øystein Grøvlen (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-303?page=comments#action_65847 ]
     
Øystein Grøvlen commented on DERBY-303:
---------------------------------------

This seems to be a regression from DERBY-214.
The call to exitValue that fails was added in DERBY-214.

It may seem like the preceeding calls to ProcessStreamResult.Wait() does not guarantee that the process has terminated.


> derbynet/testconnection.java fails
> ----------------------------------
>
>          Key: DERBY-303
>          URL: http://issues.apache.org/jira/browse/DERBY-303
>      Project: Derby
>         Type: Bug
>   Components: Test
>     Versions: 10.1.0.0
>  Environment: Seem to occur on several platforms
>     Reporter: Øystein Grøvlen

>
> When I run the testsuite, derbynet/testconnection.java fails.
> testconnection.tmp contains the following:
> Testing testconnection
> org.apache.derby.drda.NetworkServerControl ping 
> Could not connect to Derby Network Server on host localhost, port 1527.
> java.lang.IllegalThreadStateException: process hasn't exited
>         at java.lang.UNIXProcess.exitValue(UNIXProcess.java:116)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.main(Unknown Source) 

-- 
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


[jira] Resolved: (DERBY-303) derbynet/testconnection.java fails

Posted by "Samuel Andrew McIntyre (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-303?page=all ]
     
Samuel Andrew McIntyre resolved DERBY-303:
------------------------------------------

    Resolution: Fixed

Resolved issue on my Linux box, committed patch with revision 171164. Will close issue after waiting for Ole's results.

> derbynet/testconnection.java fails
> ----------------------------------
>
>          Key: DERBY-303
>          URL: http://issues.apache.org/jira/browse/DERBY-303
>      Project: Derby
>         Type: Bug
>   Components: Test
>     Versions: 10.1.0.0
>  Environment: Seem to occur on several platforms
>     Reporter: Øystein Grøvlen
>     Assignee: David Van Couvering
>  Attachments: DERBY-303.diff
>
> When I run the testsuite, derbynet/testconnection.java fails.
> testconnection.tmp contains the following:
> Testing testconnection
> org.apache.derby.drda.NetworkServerControl ping 
> Could not connect to Derby Network Server on host localhost, port 1527.
> java.lang.IllegalThreadStateException: process hasn't exited
>         at java.lang.UNIXProcess.exitValue(UNIXProcess.java:116)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.main(Unknown Source) 

-- 
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


[jira] Commented: (DERBY-303) derbynet/testconnection.java fails

Posted by "David Van Couvering (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-303?page=comments#action_65868 ]
     
David Van Couvering commented on DERBY-303:
-------------------------------------------

This definitely worked in my sandbox when I tested it; I will work on this ASAP.

> derbynet/testconnection.java fails
> ----------------------------------
>
>          Key: DERBY-303
>          URL: http://issues.apache.org/jira/browse/DERBY-303
>      Project: Derby
>         Type: Bug
>   Components: Test
>     Versions: 10.1.0.0
>  Environment: Seem to occur on several platforms
>     Reporter: Øystein Grøvlen
>     Assignee: David Van Couvering

>
> When I run the testsuite, derbynet/testconnection.java fails.
> testconnection.tmp contains the following:
> Testing testconnection
> org.apache.derby.drda.NetworkServerControl ping 
> Could not connect to Derby Network Server on host localhost, port 1527.
> java.lang.IllegalThreadStateException: process hasn't exited
>         at java.lang.UNIXProcess.exitValue(UNIXProcess.java:116)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.main(Unknown Source) 

-- 
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


[jira] Commented: (DERBY-303) derbynet/testconnection.java fails

Posted by "Samuel Andrew McIntyre (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-303?page=comments#action_65890 ]
     
Samuel Andrew McIntyre commented on DERBY-303:
----------------------------------------------

This is also failing on a Linux-x86 box that I have. I will also test this patch and provide feedback.

> derbynet/testconnection.java fails
> ----------------------------------
>
>          Key: DERBY-303
>          URL: http://issues.apache.org/jira/browse/DERBY-303
>      Project: Derby
>         Type: Bug
>   Components: Test
>     Versions: 10.1.0.0
>  Environment: Seem to occur on several platforms
>     Reporter: Øystein Grøvlen
>     Assignee: David Van Couvering
>  Attachments: DERBY-303.diff
>
> When I run the testsuite, derbynet/testconnection.java fails.
> testconnection.tmp contains the following:
> Testing testconnection
> org.apache.derby.drda.NetworkServerControl ping 
> Could not connect to Derby Network Server on host localhost, port 1527.
> java.lang.IllegalThreadStateException: process hasn't exited
>         at java.lang.UNIXProcess.exitValue(UNIXProcess.java:116)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.execCmdDumpResults(Unknown Source)
>         at org.apache.derbyTesting.functionTests.tests.derbynet.testconnection.main(Unknown Source) 

-- 
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