Re: hudson.util.ProcessTreeTest test error

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: hudson.util.ProcessTreeTest test error

Christoph Kutzinski
(moving to dev list)

I've got nearly the same error while building under Windows. Building
under Linux is fine.

Can anyone help?


-------------------------------------------------------------------------------
Test set: hudson.util.ProcessTreeTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047
sec <<< FAILURE!
testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.047 sec  <<<
ERROR!
org.jvnet.winp.WinpException: Failed to open process error=87 at
.\envvar-cmdline.cpp:53
        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
        at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
        at org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
        at
hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
        at
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
        at
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:270)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)



Christoph



Am 11.06.2010 21:12, schrieb senzacionale:

>
> error:
>
>      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011
> sec
>      Running hudson.util.ProcessTreeTest
>      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.181
> sec<<<  FAILURE!
>      Running hudson.model.LoadStatisticsTest
>      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.089
> sec
>      Running hudson.util.ArgumentListBuilderTest
>      Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053
> sec
>      Running hudson.util.RobustReflectionConverterTest
>      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029
> sec
>      Running hudson.util.VersionNumberTest
>      Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.074
> sec
>      Running hudson.util.CyclicGraphDetectorTest
>      Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038
> sec
>
>      Results :
>
>      Tests in error:
>        testRemoting(hudson.util.ProcessTreeTest)
>
>      Tests run: 102, Failures: 0, Errors: 1, Skipped: 0
>
>      [INFO]
> ------------------------------------------------------------------------
>      [ERROR] BUILD FAILURE
>      [INFO]
> ------------------------------------------------------------------------
>      [INFO] There are test failures.
>
>      Please refer to
> D:\PROJEKTI\Maven\hudson\main\core\target\surefire-reports for the
> individual test results.
>      [INFO]
> ------------------------------------------------------------------------
>      [INFO] For more information, run Maven with the -e switch
>      [INFO]
> ------------------------------------------------------------------------
>      [INFO] Total time: 17 minutes 58 seconds
>      [INFO] Finished at: Fri Jun 11 21:04:46 CEST 2010
>      [INFO] Final Memory: 85M/152M
>      [INFO]
> ------------------------------------------------------------------------
>
> error log:
>
>
> -------------------------------------------------------------------------------
>      Test set: hudson.util.ProcessTreeTest
>
> -------------------------------------------------------------------------------
>      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.181
> sec<<<  FAILURE!
>      testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.169 sec<<<
> ERROR!
>      org.jvnet.winp.WinpException: Failed to read environment variable table
> error=299 at .\envvar-cmdline.cpp:114
>       at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>       at
> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>       at
> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>       at
> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at
> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>       at
> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>       at
> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>       at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>       at hudson.remoting.Request$2.run(Request.java:270)
>       at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>       at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>       at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>       at java.lang.Thread.run(Thread.java:619)
>
> does anyone have any idea what can be wrong in test?
>
> Regards


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: hudson.util.ProcessTreeTest test error

Kohsuke Kawaguchi
Administrator
What is the operating system? error code 87 is "incorrect parameter".
I'll improve the exception handling so that we can see which process
is failing to give us the env variables.

2010/6/26 Christoph Kutzinski <[hidden email]>:

> (moving to dev list)
>
> I've got nearly the same error while building under Windows. Building under
> Linux is fine.
>
> Can anyone help?
>
>
> -------------------------------------------------------------------------------
> Test set: hudson.util.ProcessTreeTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047 sec
> <<< FAILURE!
> testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.047 sec  <<<
> ERROR!
> org.jvnet.winp.WinpException: Failed to open process error=87 at
> .\envvar-cmdline.cpp:53
>        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>        at
> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>        at
> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>        at
> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>        at
> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>        at
> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>        at hudson.remoting.Request$2.run(Request.java:270)
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:619)
>
>
>
> Christoph
>
>
>
> Am 11.06.2010 21:12, schrieb senzacionale:
>>
>> error:
>>
>>     Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011
>> sec
>>     Running hudson.util.ProcessTreeTest
>>     Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.181
>> sec<<<  FAILURE!
>>     Running hudson.model.LoadStatisticsTest
>>     Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.089
>> sec
>>     Running hudson.util.ArgumentListBuilderTest
>>     Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053
>> sec
>>     Running hudson.util.RobustReflectionConverterTest
>>     Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029
>> sec
>>     Running hudson.util.VersionNumberTest
>>     Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.074
>> sec
>>     Running hudson.util.CyclicGraphDetectorTest
>>     Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038
>> sec
>>
>>     Results :
>>
>>     Tests in error:
>>       testRemoting(hudson.util.ProcessTreeTest)
>>
>>     Tests run: 102, Failures: 0, Errors: 1, Skipped: 0
>>
>>     [INFO]
>> ------------------------------------------------------------------------
>>     [ERROR] BUILD FAILURE
>>     [INFO]
>> ------------------------------------------------------------------------
>>     [INFO] There are test failures.
>>
>>     Please refer to
>> D:\PROJEKTI\Maven\hudson\main\core\target\surefire-reports for the
>> individual test results.
>>     [INFO]
>> ------------------------------------------------------------------------
>>     [INFO] For more information, run Maven with the -e switch
>>     [INFO]
>> ------------------------------------------------------------------------
>>     [INFO] Total time: 17 minutes 58 seconds
>>     [INFO] Finished at: Fri Jun 11 21:04:46 CEST 2010
>>     [INFO] Final Memory: 85M/152M
>>     [INFO]
>> ------------------------------------------------------------------------
>>
>> error log:
>>
>>
>>
>> -------------------------------------------------------------------------------
>>     Test set: hudson.util.ProcessTreeTest
>>
>>
>> -------------------------------------------------------------------------------
>>     Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.181
>> sec<<<  FAILURE!
>>     testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.169 sec<<<
>> ERROR!
>>     org.jvnet.winp.WinpException: Failed to read environment variable
>> table
>> error=299 at .\envvar-cmdline.cpp:114
>>        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>        at
>> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>        at
>> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>        at
>>
>> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>>
>> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>        at
>>
>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>        at
>>
>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>        at hudson.remoting.Request$2.run(Request.java:270)
>>        at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>        at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>        at java.lang.Thread.run(Thread.java:619)
>>
>> does anyone have any idea what can be wrong in test?
>>
>> Regards
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: hudson.util.ProcessTreeTest test error

Christoph Kutzinski
It's Windows XP Professional Service Pack 3

Am 26.06.2010 15:50, schrieb Kohsuke Kawaguchi:

> What is the operating system? error code 87 is "incorrect parameter".
> I'll improve the exception handling so that we can see which process
> is failing to give us the env variables.
>
> 2010/6/26 Christoph Kutzinski<[hidden email]>:
>> (moving to dev list)
>>
>> I've got nearly the same error while building under Windows. Building under
>> Linux is fine.
>>
>> Can anyone help?
>>
>>
>> -------------------------------------------------------------------------------
>> Test set: hudson.util.ProcessTreeTest
>> -------------------------------------------------------------------------------
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047 sec
>> <<<  FAILURE!
>> testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.047 sec<<<
>> ERROR!
>> org.jvnet.winp.WinpException: Failed to open process error=87 at
>> .\envvar-cmdline.cpp:53
>>         at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>         at
>> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>         at
>> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>         at
>> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>         at
>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>         at
>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>         at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>         at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>         at hudson.remoting.Request$2.run(Request.java:270)
>>         at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>         at java.lang.Thread.run(Thread.java:619)
>>
>>
>>
>> Christoph
>>
>>
>>
>> Am 11.06.2010 21:12, schrieb senzacionale:
>>>
>>> error:
>>>
>>>      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011
>>> sec
>>>      Running hudson.util.ProcessTreeTest
>>>      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.181
>>> sec<<<    FAILURE!
>>>      Running hudson.model.LoadStatisticsTest
>>>      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.089
>>> sec
>>>      Running hudson.util.ArgumentListBuilderTest
>>>      Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053
>>> sec
>>>      Running hudson.util.RobustReflectionConverterTest
>>>      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029
>>> sec
>>>      Running hudson.util.VersionNumberTest
>>>      Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.074
>>> sec
>>>      Running hudson.util.CyclicGraphDetectorTest
>>>      Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038
>>> sec
>>>
>>>      Results :
>>>
>>>      Tests in error:
>>>        testRemoting(hudson.util.ProcessTreeTest)
>>>
>>>      Tests run: 102, Failures: 0, Errors: 1, Skipped: 0
>>>
>>>      [INFO]
>>> ------------------------------------------------------------------------
>>>      [ERROR] BUILD FAILURE
>>>      [INFO]
>>> ------------------------------------------------------------------------
>>>      [INFO] There are test failures.
>>>
>>>      Please refer to
>>> D:\PROJEKTI\Maven\hudson\main\core\target\surefire-reports for the
>>> individual test results.
>>>      [INFO]
>>> ------------------------------------------------------------------------
>>>      [INFO] For more information, run Maven with the -e switch
>>>      [INFO]
>>> ------------------------------------------------------------------------
>>>      [INFO] Total time: 17 minutes 58 seconds
>>>      [INFO] Finished at: Fri Jun 11 21:04:46 CEST 2010
>>>      [INFO] Final Memory: 85M/152M
>>>      [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> error log:
>>>
>>>
>>>
>>> -------------------------------------------------------------------------------
>>>      Test set: hudson.util.ProcessTreeTest
>>>
>>>
>>> -------------------------------------------------------------------------------
>>>      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.181
>>> sec<<<    FAILURE!
>>>      testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.169 sec<<<
>>> ERROR!
>>>      org.jvnet.winp.WinpException: Failed to read environment variable
>>> table
>>> error=299 at .\envvar-cmdline.cpp:114
>>>         at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>>         at
>>> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>>         at
>>> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>>         at
>>>
>>> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at
>>>
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>         at
>>>
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>>         at
>>>
>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>>         at
>>>
>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>>         at
>>>
>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>>         at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>>         at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>         at hudson.remoting.Request$2.run(Request.java:270)
>>>         at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>         at
>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>         at
>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>         at
>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>         at java.lang.Thread.run(Thread.java:619)
>>>
>>> does anyone have any idea what can be wrong in test?
>>>
>>> Regards
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: hudson.util.ProcessTreeTest test error

Kohsuke Kawaguchi
Administrator
32bit or 64bit?

2010/6/26 Christoph Kutzinski <[hidden email]>:

> It's Windows XP Professional Service Pack 3
>
> Am 26.06.2010 15:50, schrieb Kohsuke Kawaguchi:
>>
>> What is the operating system? error code 87 is "incorrect parameter".
>> I'll improve the exception handling so that we can see which process
>> is failing to give us the env variables.
>>
>> 2010/6/26 Christoph Kutzinski<[hidden email]>:
>>>
>>> (moving to dev list)
>>>
>>> I've got nearly the same error while building under Windows. Building
>>> under
>>> Linux is fine.
>>>
>>> Can anyone help?
>>>
>>>
>>>
>>> -------------------------------------------------------------------------------
>>> Test set: hudson.util.ProcessTreeTest
>>>
>>> -------------------------------------------------------------------------------
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047 sec
>>> <<<  FAILURE!
>>> testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.047 sec<<<
>>> ERROR!
>>> org.jvnet.winp.WinpException: Failed to open process error=87 at
>>> .\envvar-cmdline.cpp:53
>>>        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>>        at
>>> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>>        at
>>> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>>        at
>>>
>>> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at
>>>
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>        at
>>>
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>        at
>>>
>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>>        at
>>>
>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>>        at
>>>
>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>        at hudson.remoting.Request$2.run(Request.java:270)
>>>        at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>        at
>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>        at
>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>        at
>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>        at java.lang.Thread.run(Thread.java:619)
>>>
>>>
>>>
>>> Christoph
>>>
>>>
>>>
>>> Am 11.06.2010 21:12, schrieb senzacionale:
>>>>
>>>> error:
>>>>
>>>>     Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>> 0.011
>>>> sec
>>>>     Running hudson.util.ProcessTreeTest
>>>>     Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>> 0.181
>>>> sec<<<    FAILURE!
>>>>     Running hudson.model.LoadStatisticsTest
>>>>     Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>> 2.089
>>>> sec
>>>>     Running hudson.util.ArgumentListBuilderTest
>>>>     Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>> 0.053
>>>> sec
>>>>     Running hudson.util.RobustReflectionConverterTest
>>>>     Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>> 0.029
>>>> sec
>>>>     Running hudson.util.VersionNumberTest
>>>>     Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>> 0.074
>>>> sec
>>>>     Running hudson.util.CyclicGraphDetectorTest
>>>>     Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>> 0.038
>>>> sec
>>>>
>>>>     Results :
>>>>
>>>>     Tests in error:
>>>>       testRemoting(hudson.util.ProcessTreeTest)
>>>>
>>>>     Tests run: 102, Failures: 0, Errors: 1, Skipped: 0
>>>>
>>>>     [INFO]
>>>> ------------------------------------------------------------------------
>>>>     [ERROR] BUILD FAILURE
>>>>     [INFO]
>>>> ------------------------------------------------------------------------
>>>>     [INFO] There are test failures.
>>>>
>>>>     Please refer to
>>>> D:\PROJEKTI\Maven\hudson\main\core\target\surefire-reports for the
>>>> individual test results.
>>>>     [INFO]
>>>> ------------------------------------------------------------------------
>>>>     [INFO] For more information, run Maven with the -e switch
>>>>     [INFO]
>>>> ------------------------------------------------------------------------
>>>>     [INFO] Total time: 17 minutes 58 seconds
>>>>     [INFO] Finished at: Fri Jun 11 21:04:46 CEST 2010
>>>>     [INFO] Final Memory: 85M/152M
>>>>     [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> error log:
>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------------------
>>>>     Test set: hudson.util.ProcessTreeTest
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------------------
>>>>     Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>> 0.181
>>>> sec<<<    FAILURE!
>>>>     testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.169
>>>> sec<<<
>>>> ERROR!
>>>>     org.jvnet.winp.WinpException: Failed to read environment variable
>>>> table
>>>> error=299 at .\envvar-cmdline.cpp:114
>>>>        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>>>        at
>>>> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>>>        at
>>>> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>>>        at
>>>>
>>>>
>>>> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>>
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>        at
>>>>
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>        at
>>>>
>>>>
>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>>>        at
>>>>
>>>>
>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>>>        at
>>>>
>>>>
>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>>        at hudson.remoting.Request$2.run(Request.java:270)
>>>>        at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>        at
>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>        at
>>>>
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>        at
>>>>
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>        at java.lang.Thread.run(Thread.java:619)
>>>>
>>>> does anyone have any idea what can be wrong in test?
>>>>
>>>> Regards
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: hudson.util.ProcessTreeTest test error

Christoph Kutzinski
32 bit

Kohsuke Kawaguchi schrieb:

> 32bit or 64bit?
>
> 2010/6/26 Christoph Kutzinski <[hidden email]>:
>> It's Windows XP Professional Service Pack 3
>>
>> Am 26.06.2010 15:50, schrieb Kohsuke Kawaguchi:
>>> What is the operating system? error code 87 is "incorrect parameter".
>>> I'll improve the exception handling so that we can see which process
>>> is failing to give us the env variables.
>>>
>>> 2010/6/26 Christoph Kutzinski<[hidden email]>:
>>>> (moving to dev list)
>>>>
>>>> I've got nearly the same error while building under Windows. Building
>>>> under
>>>> Linux is fine.
>>>>
>>>> Can anyone help?
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------------------
>>>> Test set: hudson.util.ProcessTreeTest
>>>>
>>>> -------------------------------------------------------------------------------
>>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047 sec
>>>> <<<  FAILURE!
>>>> testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.047 sec<<<
>>>> ERROR!
>>>> org.jvnet.winp.WinpException: Failed to open process error=87 at
>>>> .\envvar-cmdline.cpp:53
>>>>        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>>>        at
>>>> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>>>        at
>>>> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>>>        at
>>>>
>>>> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>        at
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>        at
>>>>
>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>>>        at
>>>>
>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>>>        at
>>>>
>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>>        at hudson.remoting.Request$2.run(Request.java:270)
>>>>        at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>        at
>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>        at
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>        at
>>>>
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>        at java.lang.Thread.run(Thread.java:619)
>>>>
>>>>
>>>>
>>>> Christoph
>>>>
>>>>
>>>>
>>>> Am 11.06.2010 21:12, schrieb senzacionale:
>>>>> error:
>>>>>
>>>>>     Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.011
>>>>> sec
>>>>>     Running hudson.util.ProcessTreeTest
>>>>>     Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 0.181
>>>>> sec<<<    FAILURE!
>>>>>     Running hudson.model.LoadStatisticsTest
>>>>>     Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 2.089
>>>>> sec
>>>>>     Running hudson.util.ArgumentListBuilderTest
>>>>>     Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.053
>>>>> sec
>>>>>     Running hudson.util.RobustReflectionConverterTest
>>>>>     Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.029
>>>>> sec
>>>>>     Running hudson.util.VersionNumberTest
>>>>>     Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.074
>>>>> sec
>>>>>     Running hudson.util.CyclicGraphDetectorTest
>>>>>     Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.038
>>>>> sec
>>>>>
>>>>>     Results :
>>>>>
>>>>>     Tests in error:
>>>>>       testRemoting(hudson.util.ProcessTreeTest)
>>>>>
>>>>>     Tests run: 102, Failures: 0, Errors: 1, Skipped: 0
>>>>>
>>>>>     [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>     [ERROR] BUILD FAILURE
>>>>>     [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>     [INFO] There are test failures.
>>>>>
>>>>>     Please refer to
>>>>> D:\PROJEKTI\Maven\hudson\main\core\target\surefire-reports for the
>>>>> individual test results.
>>>>>     [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>     [INFO] For more information, run Maven with the -e switch
>>>>>     [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>     [INFO] Total time: 17 minutes 58 seconds
>>>>>     [INFO] Finished at: Fri Jun 11 21:04:46 CEST 2010
>>>>>     [INFO] Final Memory: 85M/152M
>>>>>     [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> error log:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------------------
>>>>>     Test set: hudson.util.ProcessTreeTest
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------------------
>>>>>     Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 0.181
>>>>> sec<<<    FAILURE!
>>>>>     testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.169
>>>>> sec<<<
>>>>> ERROR!
>>>>>     org.jvnet.winp.WinpException: Failed to read environment variable
>>>>> table
>>>>> error=299 at .\envvar-cmdline.cpp:114
>>>>>        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>>>>        at
>>>>> org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>>>>        at
>>>>> org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>>>>        at
>>>>>
>>>>>
>>>>> hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>        at
>>>>>
>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>        at
>>>>>
>>>>>
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>        at
>>>>>
>>>>>
>>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>>>>        at
>>>>>
>>>>>
>>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>>>>        at
>>>>>
>>>>>
>>>>> hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>>>        at hudson.remoting.Request$2.run(Request.java:270)
>>>>>        at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>        at
>>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>>        at
>>>>>
>>>>>
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>        at
>>>>>
>>>>>
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>        at java.lang.Thread.run(Thread.java:619)
>>>>>
>>>>> does anyone have any idea what can be wrong in test?
>>>>>
>>>>> Regards
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>>>>
>>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: hudson.util.ProcessTreeTest test error

Andrew Bayer
FYI, this is still present. I'm getting the exact same error/stacktrace as Christoph. Any suggestions for debugging this further?

A.

On Sat, Jun 26, 2010 at 8:39 AM, Christoph Kutzinski <[hidden email]> wrote:
32 bit

Kohsuke Kawaguchi schrieb:

32bit or 64bit?

2010/6/26 Christoph Kutzinski <[hidden email]>:
It's Windows XP Professional Service Pack 3

Am 26.06.2010 15:50, schrieb Kohsuke Kawaguchi:
What is the operating system? error code 87 is "incorrect parameter".
I'll improve the exception handling so that we can see which process
is failing to give us the env variables.

2010/6/26 Christoph Kutzinski<[hidden email]>:
(moving to dev list)

I've got nearly the same error while building under Windows. Building
under
Linux is fine.

Can anyone help?



-------------------------------------------------------------------------------
Test set: hudson.util.ProcessTreeTest

-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047 sec
<<<  FAILURE!
testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.047 sec<<<
ERROR!
org.jvnet.winp.WinpException: Failed to open process error=87 at
.\envvar-cmdline.cpp:53
      at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
      at
org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
      at
org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
      at

hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at

hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      at

hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      at

hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:270)
      at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)



Christoph



Am 11.06.2010 21:12, schrieb senzacionale:
error:

   Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.011
sec
   Running hudson.util.ProcessTreeTest
   Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
0.181
sec<<<    FAILURE!
   Running hudson.model.LoadStatisticsTest
   Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
2.089
sec
   Running hudson.util.ArgumentListBuilderTest
   Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.053
sec
   Running hudson.util.RobustReflectionConverterTest
   Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.029
sec
   Running hudson.util.VersionNumberTest
   Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.074
sec
   Running hudson.util.CyclicGraphDetectorTest
   Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.038
sec

   Results :

   Tests in error:
     testRemoting(hudson.util.ProcessTreeTest)

   Tests run: 102, Failures: 0, Errors: 1, Skipped: 0

   [INFO]
------------------------------------------------------------------------
   [ERROR] BUILD FAILURE
   [INFO]
------------------------------------------------------------------------
   [INFO] There are test failures.

   Please refer to
D:\PROJEKTI\Maven\hudson\main\core\target\surefire-reports for the
individual test results.
   [INFO]
------------------------------------------------------------------------
   [INFO] For more information, run Maven with the -e switch
   [INFO]
------------------------------------------------------------------------
   [INFO] Total time: 17 minutes 58 seconds
   [INFO] Finished at: Fri Jun 11 21:04:46 CEST 2010
   [INFO] Final Memory: 85M/152M
   [INFO]
------------------------------------------------------------------------

error log:




-------------------------------------------------------------------------------
   Test set: hudson.util.ProcessTreeTest



-------------------------------------------------------------------------------
   Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
0.181
sec<<<    FAILURE!
   testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.169
sec<<<
ERROR!
   org.jvnet.winp.WinpException: Failed to read environment variable
table
error=299 at .\envvar-cmdline.cpp:114
      at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
      at
org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
      at
org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
      at


hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at


hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      at


hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      at


hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:270)
      at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at


java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at


java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

does anyone have any idea what can be wrong in test?

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]







---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: hudson.util.ProcessTreeTest test error

Kohsuke Kawaguchi-3
On 08/23/2010 09:50 AM, Andrew Bayer wrote:
> FYI, this is still present. I'm getting the exact same error/stacktrace as
> Christoph. Any suggestions for debugging this further?

It should be reporting a PID now. Check your Windows task manager to see
what that process is, and please report that back.

>
> A.
>
> On Sat, Jun 26, 2010 at 8:39 AM, Christoph Kutzinski<[hidden email]>  wrote:
>
>>  32 bit
>>
>>  Kohsuke Kawaguchi schrieb:
>>
>>   32bit or 64bit?
>>>
>>>  2010/6/26 Christoph Kutzinski<[hidden email]>:
>>>
>>>>  It's Windows XP Professional Service Pack 3
>>>>
>>>>  Am 26.06.2010 15:50, schrieb Kohsuke Kawaguchi:
>>>>
>>>>>  What is the operating system? error code 87 is "incorrect parameter".
>>>>>  I'll improve the exception handling so that we can see which process
>>>>>  is failing to give us the env variables.
>>>>>
>>>>>  2010/6/26 Christoph Kutzinski<[hidden email]>:
>>>>>
>>>>>>  (moving to dev list)
>>>>>>
>>>>>>  I've got nearly the same error while building under Windows. Building
>>>>>>  under
>>>>>>  Linux is fine.
>>>>>>
>>>>>>  Can anyone help?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  -------------------------------------------------------------------------------
>>>>>>  Test set: hudson.util.ProcessTreeTest
>>>>>>
>>>>>>
>>>>>>  -------------------------------------------------------------------------------
>>>>>>  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047
>>>>>>  sec
>>>>>>  <<<   FAILURE!
>>>>>>  testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.047 sec<<<
>>>>>>  ERROR!
>>>>>>  org.jvnet.winp.WinpException: Failed to open process error=87 at
>>>>>>  .\envvar-cmdline.cpp:53
>>>>>>        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>>>>>        at
>>>>>>  org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>>>>>        at
>>>>>>  org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>>>>>        at
>>>>>>
>>>>>>
>>>>>>  hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>        at
>>>>>>
>>>>>>
>>>>>>  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>        at
>>>>>>
>>>>>>
>>>>>>  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>        at
>>>>>>
>>>>>>
>>>>>>  hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>>>>>        at
>>>>>>
>>>>>>
>>>>>>  hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>>>>>        at
>>>>>>
>>>>>>
>>>>>>  hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>>>>        at hudson.remoting.Request$2.run(Request.java:270)
>>>>>>        at
>>>>>>  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>>        at
>>>>>>  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>>>        at
>>>>>>
>>>>>>
>>>>>>  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>>        at
>>>>>>
>>>>>>
>>>>>>  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>>        at java.lang.Thread.run(Thread.java:619)
>>>>>>
>>>>>>
>>>>>>
>>>>>>  Christoph
>>>>>>
>>>>>>
>>>>>>
>>>>>>  Am 11.06.2010 21:12, schrieb senzacionale:
>>>>>>
>>>>>>>  error:
>>>>>>>
>>>>>>>     Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>  0.011
>>>>>>>  sec
>>>>>>>     Running hudson.util.ProcessTreeTest
>>>>>>>     Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>>>>  0.181
>>>>>>>  sec<<<     FAILURE!
>>>>>>>     Running hudson.model.LoadStatisticsTest
>>>>>>>     Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>  2.089
>>>>>>>  sec
>>>>>>>     Running hudson.util.ArgumentListBuilderTest
>>>>>>>     Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>  0.053
>>>>>>>  sec
>>>>>>>     Running hudson.util.RobustReflectionConverterTest
>>>>>>>     Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>  0.029
>>>>>>>  sec
>>>>>>>     Running hudson.util.VersionNumberTest
>>>>>>>     Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>  0.074
>>>>>>>  sec
>>>>>>>     Running hudson.util.CyclicGraphDetectorTest
>>>>>>>     Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>>  0.038
>>>>>>>  sec
>>>>>>>
>>>>>>>     Results :
>>>>>>>
>>>>>>>     Tests in error:
>>>>>>>       testRemoting(hudson.util.ProcessTreeTest)
>>>>>>>
>>>>>>>     Tests run: 102, Failures: 0, Errors: 1, Skipped: 0
>>>>>>>
>>>>>>>     [INFO]
>>>>>>>
>>>>>>>  ------------------------------------------------------------------------
>>>>>>>     [ERROR] BUILD FAILURE
>>>>>>>     [INFO]
>>>>>>>
>>>>>>>  ------------------------------------------------------------------------
>>>>>>>     [INFO] There are test failures.
>>>>>>>
>>>>>>>     Please refer to
>>>>>>>  D:\PROJEKTI\Maven\hudson\main\core\target\surefire-reports for the
>>>>>>>  individual test results.
>>>>>>>     [INFO]
>>>>>>>
>>>>>>>  ------------------------------------------------------------------------
>>>>>>>     [INFO] For more information, run Maven with the -e switch
>>>>>>>     [INFO]
>>>>>>>
>>>>>>>  ------------------------------------------------------------------------
>>>>>>>     [INFO] Total time: 17 minutes 58 seconds
>>>>>>>     [INFO] Finished at: Fri Jun 11 21:04:46 CEST 2010
>>>>>>>     [INFO] Final Memory: 85M/152M
>>>>>>>     [INFO]
>>>>>>>
>>>>>>>  ------------------------------------------------------------------------
>>>>>>>
>>>>>>>  error log:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  -------------------------------------------------------------------------------
>>>>>>>     Test set: hudson.util.ProcessTreeTest
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  -------------------------------------------------------------------------------
>>>>>>>     Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>>>>  0.181
>>>>>>>  sec<<<     FAILURE!
>>>>>>>     testRemoting(hudson.util.ProcessTreeTest)  Time elapsed: 0.169
>>>>>>>  sec<<<
>>>>>>>  ERROR!
>>>>>>>     org.jvnet.winp.WinpException: Failed to read environment variable
>>>>>>>  table
>>>>>>>  error=299 at .\envvar-cmdline.cpp:114
>>>>>>>        at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
>>>>>>>        at
>>>>>>>  org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
>>>>>>>        at
>>>>>>>  org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
>>>>>>>        at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
>>>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>        at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>>        at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>        at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
>>>>>>>        at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
>>>>>>>        at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
>>>>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
>>>>>>>        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>>>>>>>        at hudson.remoting.Request$2.run(Request.java:270)
>>>>>>>        at
>>>>>>>
>>>>>>>  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>>>        at
>>>>>>>  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>>>>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>>>>>>        at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>>>        at
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>>>        at java.lang.Thread.run(Thread.java:619)
>>>>>>>
>>>>>>>  does anyone have any idea what can be wrong in test?
>>>>>>>
>>>>>>>  Regards
>>>>>>>
>>>>>>
>>>>>>  ---------------------------------------------------------------------
>>>>>>  To unsubscribe, e-mail: [hidden email]
>>>>>>  For additional commands, e-mail: [hidden email]
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>  ---------------------------------------------------------------------
>>>>  To unsubscribe, e-mail: [hidden email]
>>>>  For additional commands, e-mail: [hidden email]
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: [hidden email]
>>  For additional commands, e-mail: [hidden email]
>>
>>
>


--
Kohsuke Kawaguchi | InfraDNA, Inc. | http://infradna.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: hudson.util.ProcessTreeTest test error

everheul
This problem can be fixed in core/src/main/java/hudson/util/ProcessTree.java
 
/**
      * Lists all the processes in the system.
@@ -395,6 +395,8 @@
         Windows() {
             for (final WinProcess p : WinProcess.all()) {
                 int pid = p.getPid();
+                if (pid == 0 || pid == 4) continue; // Exclude process IDs 0 and 4
+                
                 super.processes.put(pid,new OSProcess(pid) {
                     private EnvVars env;
                     private List<String> args;