-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
It looks like zt-process-killer uses WMIC on windows to kill processes. This tool has been deprecated on the latest windows images and is only optionally available. It would be nice to switch to ProcessHandle but that is only available for java9 and beyond.
2025-11-05T16:58:37.5519501Z at org.terracotta.angela.client.Tsa.stopAll(Tsa.java:308)
2025-11-05T16:58:37.5813905Z at org.terracotta.angela.client.Tsa.close(Tsa.java:601)
2025-11-05T16:58:37.6012115Z at org.terracotta.angela.client.ClusterFactory.close(ClusterFactory.java:225)
2025-11-05T16:58:37.6088561Z at org.terracotta.angela.client.support.junit.AngelaRule.close(AngelaRule.java:215)
2025-11-05T16:58:37.6094536Z at org.terracotta.angela.client.support.junit.AngelaRule.after(AngelaRule.java:209)
2025-11-05T16:58:37.6097422Z at org.terracotta.dynamic_config.test_support.DynamicConfigIT$3.after(DynamicConfigIT.java:181)
2025-11-05T16:58:37.6284312Z at org.terracotta.angela.client.support.junit.ExtendedTestRule$1.evaluate(ExtendedTestRule.java:44)
2025-11-05T16:58:37.6288606Z at org.terracotta.testing.ExtendedTestRule$1.evaluate(ExtendedTestRule.java:39)
2025-11-05T16:58:37.6290843Z at org.junit.rules.RunRules.evaluate(RunRules.java:20)
2025-11-05T16:58:37.6722618Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
2025-11-05T16:58:37.7735918Z at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
2025-11-05T16:58:37.7860983Z at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
2025-11-05T16:58:37.7865210Z at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
2025-11-05T16:58:37.7866031Z at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
2025-11-05T16:58:37.7866491Z at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
2025-11-05T16:58:37.7867201Z at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
2025-11-05T16:58:37.7870979Z at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
2025-11-05T16:58:37.7877508Z at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
2025-11-05T16:58:37.7879346Z at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
2025-11-05T16:58:37.7880751Z at org.terracotta.angela.client.support.junit.ExtendedTestRule$1.evaluate(ExtendedTestRule.java:39)
2025-11-05T16:58:37.7897570Z at org.junit.rules.RunRules.evaluate(RunRules.java:20)
2025-11-05T16:58:37.7915645Z at org.junit.rules.RunRules.evaluate(RunRules.java:20)
2025-11-05T16:58:37.7918324Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
2025-11-05T16:58:37.7919508Z at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
2025-11-05T16:58:37.7930877Z at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364)
2025-11-05T16:58:37.7932889Z at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
2025-11-05T16:58:37.7934411Z at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237)
2025-11-05T16:58:37.7935364Z at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158)
2025-11-05T16:58:37.7937314Z at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
2025-11-05T16:58:37.7938661Z at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
2025-11-05T16:58:37.7941678Z at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
2025-11-05T16:58:37.7943671Z at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
2025-11-05T16:58:37.7945805Z Suppressed: java.lang.RuntimeException: Could not destroy TC server process with PID 8540
2025-11-05T16:58:37.7956833Z at org.terracotta.angela.common.distribution.Distribution107Controller$1.stop(Distribution107Controller.java:184)
2025-11-05T16:58:37.7959028Z at org.terracotta.angela.common.TerracottaServerInstance.stop(TerracottaServerInstance.java:123)
2025-11-05T16:58:37.7960382Z at org.terracotta.angela.agent.AgentController.stopTsa(AgentController.java:420)
2025-11-05T16:58:37.7964384Z at org.terracotta.angela.client.Tsa.lambda$stop$23bd677b$1(Tsa.java:322)
2025-11-05T16:58:37.7981936Z at org.terracotta.angela.agent.com.IgniteFreeExecutor.executeAsync(IgniteFreeExecutor.java:134)
2025-11-05T16:58:37.7983980Z at org.terracotta.angela.agent.com.Executor.execute(Executor.java:86)
2025-11-05T16:58:37.7985145Z at org.terracotta.angela.client.Tsa.stop(Tsa.java:322)
2025-11-05T16:58:37.7986329Z at org.terracotta.angela.client.Tsa.stopAll(Tsa.java:301)
2025-11-05T16:58:37.7987174Z ... 31 common frames omitted
2025-11-05T16:58:37.7988159Z Caused by: java.lang.IllegalStateException: Error occured while waiting for process to finish:
2025-11-05T16:58:37.7989609Z at org.zeroturnaround.process.AbstractProcess.waitFor(AbstractProcess.java:60)
2025-11-05T16:58:37.7991779Z at org.zeroturnaround.process.ProcessUtil.waitFor(ProcessUtil.java:232)
2025-11-05T16:58:37.8007424Z at org.zeroturnaround.process.ProcessUtil.destroyForcefullyAndWait(ProcessUtil.java:115)
2025-11-05T16:58:37.8027497Z at org.zeroturnaround.process.ProcessUtil.destroyGracefullyOrForcefullyAndWait(ProcessUtil.java:180)
2025-11-05T16:58:37.8039112Z at org.terracotta.angela.common.util.ProcessUtil.destroyGracefullyOrForcefullyAndWait(ProcessUtil.java:28)
2025-11-05T16:58:37.8041294Z at org.terracotta.angela.common.distribution.Distribution107Controller$1.stop(Distribution107Controller.java:182)
2025-11-05T16:58:37.8043963Z ... 38 common frames omitted
2025-11-05T16:58:37.8046238Z Caused by: java.lang.RuntimeException: Failed to check if process 8896�is alive
2025-11-05T16:58:37.8047836Z at org.zeroturnaround.process.PollingProcess.waitFor(PollingProcess.java:36)
2025-11-05T16:58:37.8054252Z at org.zeroturnaround.process.AbstractProcess$1.run(AbstractProcess.java:50)
2025-11-05T16:58:37.8117490Z at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
2025-11-05T16:58:37.8138200Z at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2025-11-05T16:58:37.8153100Z at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
2025-11-05T16:58:37.8156348Z at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2025-11-05T16:58:37.8161589Z at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2025-11-05T16:58:37.8177105Z at java.base/java.lang.Thread.run(Thread.java:829)
2025-11-05T16:58:37.8193772Z Caused by: org.zeroturnaround.exec.ProcessInitException: Could not execute [C:\Windows\System32\Wbem\WMIC.exe, process, where, ProcessId=8896, get, ProcessId]. Error=2, The system cannot find the file specified
2025-11-05T16:58:37.8199548Z at org.zeroturnaround.exec.ProcessInitException.newInstance(ProcessInitException.java:80)
2025-11-05T16:58:37.8203322Z at org.zeroturnaround.exec.ProcessExecutor.invokeStart(ProcessExecutor.java:1002)
2025-11-05T16:58:37.8218332Z at org.zeroturnaround.exec.ProcessExecutor.startInternal(ProcessExecutor.java:970)
2025-11-05T16:58:37.8221454Z at org.zeroturnaround.exec.ProcessExecutor.executeNoTimeout(ProcessExecutor.java:919)
2025-11-05T16:58:37.8223552Z at org.zeroturnaround.process.WindowsProcess.isAlive(WindowsProcess.java:84)
2025-11-05T16:58:37.8256889Z at org.zeroturnaround.process.PollingProcess.waitFor(PollingProcess.java:27)
2025-11-05T16:58:37.8373466Z ... 7 common frames omitted
2025-11-05T16:58:37.8390396Z Caused by: java.io.IOException: Cannot run program "C:\Windows\System32\Wbem\WMIC.exe": CreateProcess error=2, The system cannot find the file specified
2025-11-05T16:58:37.8396319Z at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
2025-11-05T16:58:37.8434846Z at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
2025-11-05T16:58:37.8460349Z at org.zeroturnaround.exec.ProcessExecutor.invokeStart(ProcessExecutor.java:997)
2025-11-05T16:58:37.8463428Z ... 11 common frames omitted
2025-11-05T16:58:37.8464455Z Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
2025-11-05T16:58:37.8467109Z at java.base/java.lang.ProcessImpl.create(Native Method)
2025-11-05T16:58:37.8474295Z at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:498)
2025-11-05T16:58:37.8476637Z at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:153)
2025-11-05T16:58:37.8479067Z at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
2025-11-05T16:58:37.8497197Z ... 13 common frames omitted```
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels