question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
odrotbohmcommented, Oct 26, 2020

Playing with the snapshot build, looks like this is fixed. Thanks!

0reactions
ppalagacommented, Oct 26, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found