Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NumberFormatException: For input string: "10136" #57

Closed
wortner opened this issue Feb 4, 2019 · 1 comment
Closed

java.lang.NumberFormatException: For input string: "10136" #57

wortner opened this issue Feb 4, 2019 · 1 comment

Comments

@wortner
Copy link

wortner commented Feb 4, 2019

I have problem using 'Get-Process' with jPowerShell on Win 10 JDK 11 getting Number format error.
image. 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).
image
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)

@profesorfalken
Copy link
Owner

Hello,

I think this issue is related with #56. It is exactly the same line (PowerShell.java:168)

I close this one. Please follow #56 in order to get updates on the bug resolution.

Thanks and best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants