Looks like WindowsProcessManager.kill() doesn't work properly on your
machine. That's always the risk with platform-specific
implementations. As a work-around you can try the
PureJavaProcessManager:
officeManager = new DefaultOfficeManagerConfiguration()
.setProcessManager(new PureJavaProcessManager())
...
As for the issue with WindowsProcessManager, if ProcessBuilder.start()
throws a NullPointerException then the passed pid must be null, so
it's actually WindowsProcessManager.findPid() that didn't work as
expected. Do you see something like "pid null" in your logs? Maybe the
output of "wmic process get CommandLine,ProcessId" is in a different
format. What Windows version are you on?
Thanks
Mirko