java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "2.0"

SpringSource Issue Tracker | Andy Wilkinson | 8 years ago
  1. 0

    I have a project with the following template: Manifest-Version: 1.0 Bundle-SymbolicName: org.springsource.osgi.medic.log.test Bundle-ManifestVersion: 2.0 Bundle-Version: 1.0.0 Bundle-Name: Medic Logging Integration Tests Note the Bundle-ManifestVersion of 2.0, which should be 2. If I ask for my manifest to be updated nothing (obvious) happens: my manifest isn't updated, and I don't get any error report. Looking in the error log tells me what the problem was: java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "2.0" at com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:245) at com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.generateManifest(BundlorProjectBuilder.java:410) at com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.build(BundlorProjectBuilder.java:171) at com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.build(BundlorProjectBuilder.java:113) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:280) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:361) at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:516) at org.eclipse.core.internal.resources.Project.build(Project.java:102) at com.springsource.server.ide.bundlor.ui.BundlorUiPlugin$RunBundlorJob.run(BundlorUiPlugin.java:114) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.NumberFormatException: For input string: "2.0" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:456) at java.lang.Integer.parseInt(Integer.java:497) at com.springsource.util.osgi.manifest.internal.BundleManifestVersionDelegate.<init>(BundleManifestVersionDelegate.java:39) at com.springsource.util.osgi.manifest.internal.StandardBundleManifest.<init>(StandardBundleManifest.java:156) at com.springsource.util.osgi.manifest.internal.StandardBundleManifest.<init>(StandardBundleManifest.java:118) at com.springsource.util.osgi.manifest.BundleManifestFactory.createBundleManifest(BundleManifestFactory.java:58) at com.springsource.bundlor.support.BundleManifestUtils.createBundleManifest(BundleManifestUtils.java:57) at com.springsource.bundlor.support.ManifestCreator.create(ManifestCreator.java:170) at com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:242) ... 12 more It'd be great if this error appeared in a pop-up as a result of requesting the update, rather than having to check in the error log for it

    SpringSource Issue Tracker | 8 years ago | Andy Wilkinson
    java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "2.0"
  2. 0

    I have a project with the following template: Manifest-Version: 1.0 Bundle-SymbolicName: org.springsource.osgi.medic.log.test Bundle-ManifestVersion: 2.0 Bundle-Version: 1.0.0 Bundle-Name: Medic Logging Integration Tests Note the Bundle-ManifestVersion of 2.0, which should be 2. If I ask for my manifest to be updated nothing (obvious) happens: my manifest isn't updated, and I don't get any error report. Looking in the error log tells me what the problem was: java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "2.0" at com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:245) at com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.generateManifest(BundlorProjectBuilder.java:410) at com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.build(BundlorProjectBuilder.java:171) at com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.build(BundlorProjectBuilder.java:113) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:280) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:361) at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:516) at org.eclipse.core.internal.resources.Project.build(Project.java:102) at com.springsource.server.ide.bundlor.ui.BundlorUiPlugin$RunBundlorJob.run(BundlorUiPlugin.java:114) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.lang.NumberFormatException: For input string: "2.0" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:456) at java.lang.Integer.parseInt(Integer.java:497) at com.springsource.util.osgi.manifest.internal.BundleManifestVersionDelegate.<init>(BundleManifestVersionDelegate.java:39) at com.springsource.util.osgi.manifest.internal.StandardBundleManifest.<init>(StandardBundleManifest.java:156) at com.springsource.util.osgi.manifest.internal.StandardBundleManifest.<init>(StandardBundleManifest.java:118) at com.springsource.util.osgi.manifest.BundleManifestFactory.createBundleManifest(BundleManifestFactory.java:58) at com.springsource.bundlor.support.BundleManifestUtils.createBundleManifest(BundleManifestUtils.java:57) at com.springsource.bundlor.support.ManifestCreator.create(ManifestCreator.java:170) at com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:242) ... 12 more It'd be great if this error appeared in a pop-up as a result of requesting the update, rather than having to check in the error log for it

    SpringSource Issue Tracker | 8 years ago | Andy Wilkinson
    java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "2.0"
  3. 0

    problems of a newcomer

    areca | 4 years ago | buesser
    java.lang.NumberFormatException: For input string: "linux"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ODI 12c doesn't start up after Linux kernel update

    Oracle Community | 2 years ago | ThomasFlecken
    java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
  6. 0

    Error when starting sqldeveloper 4.0.3

    Oracle Community | 2 years ago | 890493
    java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "2.0"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    2. java.lang.Integer.parseInt(Integer.java:456)
    3. java.lang.Integer.parseInt(Integer.java:497)
    3 frames
  3. com.springsource.util
    BundleManifestFactory.createBundleManifest
    1. com.springsource.util.osgi.manifest.internal.BundleManifestVersionDelegate.<init>(BundleManifestVersionDelegate.java:39)
    2. com.springsource.util.osgi.manifest.internal.StandardBundleManifest.<init>(StandardBundleManifest.java:156)
    3. com.springsource.util.osgi.manifest.internal.StandardBundleManifest.<init>(StandardBundleManifest.java:118)
    4. com.springsource.util.osgi.manifest.BundleManifestFactory.createBundleManifest(BundleManifestFactory.java:58)
    4 frames
  4. com.springsource.bundlor
    StandardBundleTransformer.generateManifest
    1. com.springsource.bundlor.support.BundleManifestUtils.createBundleManifest(BundleManifestUtils.java:57)
    2. com.springsource.bundlor.support.ManifestCreator.create(ManifestCreator.java:170)
    3. com.springsource.bundlor.support.StandardBundleTransformer.generateManifest(StandardBundleTransformer.java:242)
    3 frames
  5. com.springsource.server
    BundlorProjectBuilder.build
    1. com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.generateManifest(BundlorProjectBuilder.java:410)
    2. com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.build(BundlorProjectBuilder.java:171)
    3. com.springsource.server.ide.bundlor.internal.core.BundlorProjectBuilder.build(BundlorProjectBuilder.java:113)
    3 frames
  6. Core Resource Management
    BuildManager$2.run
    1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
    1 frame
  7. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    1 frame
  8. Core Resource Management
    Project.build
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
    2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:280)
    3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:361)
    4. org.eclipse.core.internal.resources.Project.internalBuild(Project.java:516)
    5. org.eclipse.core.internal.resources.Project.build(Project.java:102)
    5 frames
  9. com.springsource.server
    BundlorUiPlugin$RunBundlorJob.run
    1. com.springsource.server.ide.bundlor.ui.BundlorUiPlugin$RunBundlorJob.run(BundlorUiPlugin.java:114)
    1 frame
  10. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    1 frame