I have problem using 'Get-Process' with jPowerShell on Win 10 JDK 11 getting Number format error.
. Nearly similar error I got using WMI4Java so I guess something wrong with my setup.
This is strange as the string contains additional data on the start (-1, -2 bytes).
Note: the process on which it fails seems always to be the powerShell process.
The stack trace is
Exception in thread "main" java.lang.NumberFormatException: For input string: "10136" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Long.parseLong(Long.java:692) at java.base/java.lang.Long.valueOf(Long.java:1144) at com.profesorfalken.jpowershell.PowerShell.initalize(PowerShell.java:168) at com.profesorfalken.jpowershell.PowerShell.openSession(PowerShell.java:129) at com.profesorfalken.jpowershell.PowerShell.openSession(PowerShell.java:108) at com.profesorfalken.jpowershell.PowerShell.executeSingleCommand(PowerShell.java:229)
I have problem using 'Get-Process' with jPowerShell on Win 10 JDK 11 getting Number format error. . Nearly similar error I got using WMI4Java so I guess something wrong with my setup.
This is strange as the string contains additional data on the start (-1, -2 bytes). Note: the process on which it fails seems always to be the powerShell process.
The stack trace is
Exception in thread "main" java.lang.NumberFormatException: For input string: "10136" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Long.parseLong(Long.java:692) at java.base/java.lang.Long.valueOf(Long.java:1144) at com.profesorfalken.jpowershell.PowerShell.initalize(PowerShell.java:168) at com.profesorfalken.jpowershell.PowerShell.openSession(PowerShell.java:129) at com.profesorfalken.jpowershell.PowerShell.openSession(PowerShell.java:108) at com.profesorfalken.jpowershell.PowerShell.executeSingleCommand(PowerShell.java:229)