java.lang.NumberFormatException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Java does not handle IPv6 nameservers before 1.8.0_60. Upgrade to the latest JVM.


rprp
tip

This is a bug in Wise, updating to v4.10 seems to solve the problem.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • The comment in the following linker file result in exception from the plugin: {code} MEMORY { ram : ORIGIN = 0x00400000, LENGTH = 64M rom : ORIGIN = 0x60000000, LENGTH = 16M /* Change to LENGTH = 32M for larger flash. */ } {code} Reference to file and used example: https://github.com/buep/memory-map-examples/blob/arm-none-eabi-gcc_4.8.4_hello_world/viperlite.ld Memory map fails with: {code} Memory Map Plugin version 2.1.0-SNAPSHOT (b0dca) ERROR: Build step failed with exception java.lang.NumberFormatException: For input string: "16/*ChangetoLENGTH=32forlargerflash.*/" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at net.praqma.jenkins.memorymap.util.HexUtils$HexifiableString.convertToHexForm(HexUtils.java:102) at net.praqma.jenkins.memorymap.util.HexUtils$HexifiableString.toValidHexString(HexUtils.java:118) at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.getMemory(GccMemoryMapParser.java:56) at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.parseConfigFile(GccMemoryMapParser.java:182) at net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:58) at net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:40) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at net.praqma.jenkins.memorymap.MemoryMapRecorder.perform(MemoryMapRecorder.java:138) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Build step 'Memory Map Publisher' marked build as failure {code} Required solution: * parser should handle comments - of course * plugin should not just throw exception to the console... please explain nicely what went wrong and where the problem are - which line couldnt be parsed. That is already part of the exception. * it is okay to print relevant part of (or maybe the hole) exception for easier debugging
    via by Bue Petersen,
  • The comment in the following linker file result in exception from the plugin: {code} MEMORY { ram : ORIGIN = 0x00400000, LENGTH = 64M rom : ORIGIN = 0x60000000, LENGTH = 16M /* Change to LENGTH = 32M for larger flash. */ } {code} Reference to file and used example: https://github.com/buep/memory-map-examples/blob/arm-none-eabi-gcc_4.8.4_hello_world/viperlite.ld Memory map fails with: {code} Memory Map Plugin version 2.1.0-SNAPSHOT (b0dca) ERROR: Build step failed with exception java.lang.NumberFormatException: For input string: "16/*ChangetoLENGTH=32forlargerflash.*/" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at net.praqma.jenkins.memorymap.util.HexUtils$HexifiableString.convertToHexForm(HexUtils.java:102) at net.praqma.jenkins.memorymap.util.HexUtils$HexifiableString.toValidHexString(HexUtils.java:118) at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.getMemory(GccMemoryMapParser.java:56) at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.parseConfigFile(GccMemoryMapParser.java:182) at net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:58) at net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:40) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at net.praqma.jenkins.memorymap.MemoryMapRecorder.perform(MemoryMapRecorder.java:138) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Build step 'Memory Map Publisher' marked build as failure {code} Required solution: * parser should handle comments - of course * plugin should not just throw exception to the console... please explain nicely what went wrong and where the problem are - which line couldnt be parsed. That is already part of the exception. * it is okay to print relevant part of (or maybe the hole) exception for easier debugging
    via by Bue Petersen,
  • Not able to read bean property in jsp
    via Stack Overflow by Rachit Agrawal
    ,
  • command exec sbt error
    via GitHub by liuzhaoxi
    ,
    • java.lang.NumberFormatException: For input string: "16/*ChangetoLENGTH=32forlargerflash.*/" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at net.praqma.jenkins.memorymap.util.HexUtils$HexifiableString.convertToHexForm(HexUtils.java:102) at net.praqma.jenkins.memorymap.util.HexUtils$HexifiableString.toValidHexString(HexUtils.java:118) at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.getMemory(GccMemoryMapParser.java:56) at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.parseConfigFile(GccMemoryMapParser.java:182) at net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:58) at net.praqma.jenkins.memorymap.parser.MemoryMapConfigFileParserDelegate.invoke(MemoryMapConfigFileParserDelegate.java:40) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at net.praqma.jenkins.memorymap.MemoryMapRecorder.perform(MemoryMapRecorder.java:138) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)

    Users with the same issue

    harshgharshg
    1 times, last one,
    HandemelindoHandemelindo
    6 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    233 more bugmates