jHardware icon indicating copy to clipboard operation
jHardware copied to clipboard

NumberFormatException on Ubuntu

Open jzarnikov opened this issue 8 years ago • 3 comments

java.lang.NumberFormatException: For input string: "63000 " at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at org.jutils.jhardware.info.processor.unix.UnixProcessorInfo.parseInfo(UnixProcessorInfo.java:68) at org.jutils.jhardware.info.processor.AbstractProcessorInfo.getInfo(AbstractProcessorInfo.java:29) at org.jutils.jhardware.info.processor.AbstractProcessorInfo.getInfo(AbstractProcessorInfo.java:25) at org.jutils.jhardware.HardwareInfo.getProcessorInfo(HardwareInfo.java:48)

There is a newline character in the temperature String that causes a NumberFormatException.

jHardware 0.6.3

jzarnikov avatar May 10 '16 13:05 jzarnikov

Hi, I am planning to perform a big update on jHardware this week and one this is one of the things that will be fixed. Thanks for reporting it!

profesorfalken avatar May 10 '16 14:05 profesorfalken

Hi again, While I prepare the new version I have generated for you a snapshot version with this fix. You can download it here: https://oss.sonatype.org/content/repositories/snapshots/org/jhardware/jHardware/0.6.3-SNAPSHOT/jHardware-0.6.3-20160511.185645-1.jar

Thanks

profesorfalken avatar May 11 '16 18:05 profesorfalken

Hello,

Does it still happen in jHardware 0.8.3?

profesorfalken avatar Sep 23 '16 08:09 profesorfalken