org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201

jenkins-ci.org | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    org.jvnet.winp.WinpException: Failed to read environment variable table when killing a job in Jenkins?

    Stack Overflow | 1 year ago | apellantmani
    org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201
  2. 0

    I have checked for this defect online but couldn't get a solution. The job doesn't terminate the job correctly. The Jenkins version is the latest one. Some more details are Environment - Windows 7 Jenkins service is started with my user id and pasword. The error that I get is ERROR: Build step failed with exception org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201 at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method) at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126) at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102) at org.jvnet.winp.WinProcess.killRecursively(WinProcess.java:66) at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425) at hudson.util.ProcessTree.killAll(ProcessTree.java:141) at hudson.Proc$LocalProc.destroy(Proc.java:379) at hudson.Proc$LocalProc.join(Proc.java:352) at hudson.Launcher$ProcStarter.join(Launcher.java:389) at hudson.tasks.Ant.perform(Ant.java:217) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408

    Jenkins JIRA | 1 year ago | mani sankar
    org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201
  3. 0

    [JENKINS-30782] Failed to read environment variable table error - Jenkins JIRA

    jenkins-ci.org | 7 months ago
    org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have checked for this defect online but couldn't get a solution. The job doesn't terminate the job correctly. The Jenkins version is the latest one. Some more details are Environment - Windows 7 Jenkins service is started with my user id and pasword. The error that I get is ERROR: Build step failed with exception org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201 at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method) at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126) at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102) at org.jvnet.winp.WinProcess.killRecursively(WinProcess.java:66) at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425) at hudson.util.ProcessTree.killAll(ProcessTree.java:141) at hudson.Proc$LocalProc.destroy(Proc.java:379) at hudson.Proc$LocalProc.join(Proc.java:352) at hudson.Launcher$ProcStarter.join(Launcher.java:389) at hudson.tasks.Ant.perform(Ant.java:217) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408

    Jenkins JIRA | 1 year ago | mani sankar
    org.jvnet.winp.WinpException: Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201

    Root Cause Analysis

    1. org.jvnet.winp.WinpException

      Failed to read environment variable table error=299 at .\envvar-cmdline.cpp:201

      at org.jvnet.winp.Native.getCmdLineAndEnvVars()
    2. org.jvnet.winp
      WinProcess.killRecursively
      1. org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
      2. org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)
      3. org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102)
      4. org.jvnet.winp.WinProcess.killRecursively(WinProcess.java:66)
      4 frames
    3. Hudson
      ResourceController.execute
      1. hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425)
      2. hudson.util.ProcessTree.killAll(ProcessTree.java:141)
      3. hudson.Proc$LocalProc.destroy(Proc.java:379)
      4. hudson.Proc$LocalProc.join(Proc.java:352)
      5. hudson.Launcher$ProcStarter.join(Launcher.java:389)
      6. hudson.tasks.Ant.perform(Ant.java:217)
      7. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      8. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      9. hudson.model.Build$BuildExecution.build(Build.java:205)
      10. hudson.model.Build$BuildExecution.doRun(Build.java:162)
      11. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      12. hudson.model.Run.execute(Run.java:1741)
      13. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      14. hudson.model.ResourceController.execute(ResourceController.java:98)
      14 frames