mvnd --status throws NumberFormatException in 0.0.9
See original GitHub issue$ mvnd …
…
$ mvnd --status
UUID PID Port Status RSS Last activity Java home
Exception in thread "main" java.lang.NumberFormatException: For input string: " 84276"
at java.lang.Long.parseLong(Long.java:678)
at java.lang.Long.parseLong(Long.java:817)
at org.jboss.fuse.mvnd.common.OsUtils.findProcessRssInKb(OsUtils.java:59)
at org.jboss.fuse.mvnd.client.DefaultClient.lambda$execute$0(DefaultClient.java:149)
at java.util.ArrayList.forEach(ArrayList.java:1541)
at org.jboss.fuse.mvnd.client.DefaultClient.execute(DefaultClient.java:147)
at org.jboss.fuse.mvnd.client.DefaultClient.main(DefaultClient.java:72)
Looks like there’s a String.trim()
missing?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
maven-mvnd/CHANGELOG.md at master - GitHub
mvnd on Windows throws java.lang.NumberFormatException: For input string: "self" #608; mvnd.exe gives error about DLL #607; Log purging goes ...
Read more >How to Handle the NumberFormat Exception in Java - Rollbar
The NumberFormatException in Java is thrown when it is not possible to convert a string to a numeric type (e.g. int, float).
Read more >10 Reasons of java.lang.NumberFormatException in ... - Java67
parseLong() throws NumberFormatException to signal that input String is not valid numeric value. Even though the root cause is always something ...
Read more >How can I prevent java.lang.NumberFormatException
"N/A" is not an integer. It must throw NumberFormatException if you try to parse it to an integer. Check before parsing or handle...
Read more >NumberFormatException in Java with Examples
The NumberFormatException occurs when an attempt is made to convert a string with improper format into a numeric value.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Playing with the snapshot build, looks like this is fixed. Thanks!
@odrotbohm you may want to test/use the package built by the CI https://github.com/mvndaemon/mvnd/suites/1398611867/artifacts/23216845 before we release.