commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [EXEC] OpenVMS failures
Date Tue, 05 Oct 2010 23:23:40 GMT
On 2 October 2010 16:11, sebb <sebbaz@gmail.com> wrote:
> I've tried running my modified copy of the test cases.
> The testExecuteWatchdogSync() also hangs on OpenVMS. Not sure where to
> put the timeouts for that yet, so I tried disabling it.
>
> I now get the following errors/failures:
>
> Time: 88.365
> There were 4 errors:
> 1) testExecuteWatchdogAsync(org.apache.commons.exec.DefaultExecutorTest)java.io.FileNotFoundException:
> ./target/forever.txt (no such file or directory)
>        at java.io.FileInputStream.open(Native Method)
>        at java.io.FileInputStream.<init>(FileInputStream.java:106)
>        at java.io.FileReader.<init>(FileReader.java:55)
>        at org.apache.commons.exec.DefaultExecutorTest.readFile(DefaultExecutorTest.java:942)
>        at org.apache.commons.exec.DefaultExecutorTest.testExecuteWatchdogAsync(DefaultExecutorTest.java:313)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> 2) testExecuteWithComplexArguments(org.apache.commons.exec.DefaultExecutorTest)org.apache.commons.exec.ExecuteException:
> Process exited with an error: 98962 (Exit value: 98962)
>        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
>        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
>        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
>        at org.apache.commons.exec.DefaultExecutorTest.testExecuteWithComplexArguments(DefaultExecutorTest.java:554)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> 3) testEnvironmentVariables(org.apache.commons.exec.DefaultExecutorTest)org.apache.commons.exec.ExecuteException:
> Process exited with an error: 98962 (Exit value: 98962)
>        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
>        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
>        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
>        at org.apache.commons.exec.DefaultExecutorTest.testEnvironmentVariables(DefaultExecutorTest.java:589)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> 4) testAddEnvironmentVariables(org.apache.commons.exec.DefaultExecutorTest)org.apache.commons.exec.ExecuteException:
> Process exited with an error: 98962 (Exit value: 98962)
>        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
>        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
>        at org.apache.commons.exec.DefaultExecutorTest.testAddEnvironmentVariables(DefaultExecutorTest.java:606)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> There were 6 failures:
> 1) testExecuteAsyncWithTimelyUserTermination(org.apache.commons.exec.DefaultExecutorTest)junit.framework.AssertionFailedError:
> ResultHandler received a result
>        at org.apache.commons.exec.DefaultExecutorTest.testExecuteAsyncWithTimelyUserTermination(DefaultExecutorTest.java:223)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> 2) testExecuteAsyncWithTooLateUserTermination(org.apache.commons.exec.DefaultExecutorTest)junit.framework.AssertionFailedError:
> ResultHandler received a result
>        at org.apache.commons.exec.DefaultExecutorTest.testExecuteAsyncWithTooLateUserTermination(DefaultExecutorTest.java:249)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> 3) testExecuteAsyncWithProcessDestroyer(org.apache.commons.exec.DefaultExecutorTest)junit.framework.AssertionFailedError:
> ResultHandler received a result
>        at org.apache.commons.exec.DefaultExecutorTest.testExecuteAsyncWithProcessDestroyer(DefaultExecutorTest.java:439)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> 4) testStdInHandling(org.apache.commons.exec.DefaultExecutorTest)junit.framework.AssertionFailedError
>        at org.apache.commons.exec.DefaultExecutorTest.testStdInHandling(DefaultExecutorTest.java:579)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> 5) testExec34(org.apache.commons.exec.DefaultExecutorTest)junit.framework.AssertionFailedError
>        at org.apache.commons.exec.DefaultExecutorTest.testExec34(DefaultExecutorTest.java:653)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
> 6) testExec41WithoutStreams(org.apache.commons.exec.DefaultExecutorTest)junit.framework.AssertionFailedError:
> The process was killed by the watchdog
>        at org.apache.commons.exec.DefaultExecutorTest.testExec41WithoutStreams(DefaultExecutorTest.java:861)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
>
> FAILURES!!!
> Tests run: 80,  Failures: 6,  Errors: 4
>
> I think I can fix some/all of the errors, but it may take a day or so.
> I suspect the failures may be impossible to fix.

There are now only the following failures:

1) testExecuteAsyncWithTimelyUserTermination(org.apache.commons.exec.DefaultExecutorTest)
junit.framework.AssertionFailedError: ResultHandler received a result
        at org.apache.commons.exec.DefaultExecutorTest.testExecuteAsyncWithTimelyUserTermination(DefaultExecutorTest.java:224)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
2) testExecuteAsyncWithTooLateUserTermination(org.apache.commons.exec.DefaultExecutorTest)
junit.framework.AssertionFailedError: ResultHandler received a result
        at org.apache.commons.exec.DefaultExecutorTest.testExecuteAsyncWithTooLateUserTermination(DefaultExecutorTest.java:250)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
3) testExecuteWatchdogAsync(org.apache.commons.exec.DefaultExecutorTest)
junit.framework.AssertionFailedError: ResultHandler received a result
        at org.apache.commons.exec.DefaultExecutorTest.testExecuteWatchdogAsync(DefaultExecutorTest.java:320)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
4) testExecuteAsyncWithProcessDestroyer(org.apache.commons.exec.DefaultExecutorTest)
junit.framework.AssertionFailedError: ResultHandler received a result
        at org.apache.commons.exec.DefaultExecutorTest.testExecuteAsyncWithProcessDestroyer(DefaultExecutorTest.java:447)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)
5) testExec41WithoutStreams(org.apache.commons.exec.DefaultExecutorTest)
junit.framework.AssertionFailedError: SKipping the Thread.join() did not work
        at org.apache.commons.exec.DefaultExecutorTest.testExec41WithoutStreams(DefaultExecutorTest.java:872)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.commons.exec.TestRunner.main(TestRunner.java:47)

These are all due to failure to destroy the subprocess on OpenVMS.

I don't know if there is a workround.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message