java.lang.NumberFormatException: For input string: "blackberry_compat_2"

Appcelerator JIRA | Chris Williams | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have an app tied to a special SDK version for blackberry, where the folder name is "blackberry_compat_2.0.1.v20120407201726". When the project is cleaned, we throw an error trying to parse the version. {code} !ENTRY org.eclipse.core.resources 4 75 2012-06-01 10:47:31.436 !MESSAGE Errors occurred during the build. !SUBENTRY 1 com.appcelerator.titanium.core 4 75 2012-06-01 10:47:31.436 !MESSAGE Errors running builder 'Titanium Builder' on project 'blackberry_app'. !STACK 0 java.lang.NumberFormatException: For input string: "blackberry_compat_2" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at java.lang.Integer.parseInt(Integer.java:499) at org.osgi.framework.Version.<init>(Version.java:127) at org.osgi.framework.Version.parseVersion(Version.java:225) at com.appcelerator.titanium.core.TitaniumProjectBuilder.clean(TitaniumProjectBuilder.java:72) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513) at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422) at com.aptana.editor.common.preferences.ValidationPreferencePage$ApplyChangesAndBuildJob.run(ValidationPreferencePage.java:130) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}

    Appcelerator JIRA | 5 years ago | Chris Williams
    java.lang.NumberFormatException: For input string: "blackberry_compat_2"
  2. 0

    I have an app tied to a special SDK version for blackberry, where the folder name is "blackberry_compat_2.0.1.v20120407201726". When the project is cleaned, we throw an error trying to parse the version. {code} !ENTRY org.eclipse.core.resources 4 75 2012-06-01 10:47:31.436 !MESSAGE Errors occurred during the build. !SUBENTRY 1 com.appcelerator.titanium.core 4 75 2012-06-01 10:47:31.436 !MESSAGE Errors running builder 'Titanium Builder' on project 'blackberry_app'. !STACK 0 java.lang.NumberFormatException: For input string: "blackberry_compat_2" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at java.lang.Integer.parseInt(Integer.java:499) at org.osgi.framework.Version.<init>(Version.java:127) at org.osgi.framework.Version.parseVersion(Version.java:225) at com.appcelerator.titanium.core.TitaniumProjectBuilder.clean(TitaniumProjectBuilder.java:72) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513) at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422) at com.aptana.editor.common.preferences.ValidationPreferencePage$ApplyChangesAndBuildJob.run(ValidationPreferencePage.java:130) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}

    Appcelerator JIRA | 5 years ago | Chris Williams
    java.lang.NumberFormatException: For input string: "blackberry_compat_2"
  3. 0

    JUnit testing questions

    Google Groups | 1 decade ago | Martin Dames
    org.osgi.framework.BundleException: For input string: "${spring"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [INFO] [tc:run] 2007-10-12 22:15:55,674 INFO - Terracotta trunk-nightly-rev5925, as of 20071011-181024 (Revision 5925 by cruise@rh4mo0 from trunk) 2007-10-12 22:15:56,094 INFO - Configuration loaded from the file at '/Users/tgautier/src/forge/projects/labs/webcasts/dist-cache/target/classes/tc-config.xml'. [INFO] Resolving modules: [<xml-fragment name="annotations" version="0.0.1-SNAPSHOT" xmlns:tc="http://www.terracotta.org/config"/>, <xml-fragment name="clustered-ehcache-1.3" version="1.0.0" xmlns:tc="http://www.terracotta.org/config"/>, <xml-fragment name="terracotta-cache" version="1.0.0" xmlns:tc="http://www.terracotta.org/config"/>, <xml-fragment name="synchronizedmap" version="1.0.0-SNAPSHOT" xmlns:tc="http://www.terracotta.org/config"/>, <xml-fragment name="synchronizedset" version="1.0.0-SNAPSHOT" xmlns:tc="http://www.terracotta.org/config"/>, <xml-fragment name="synchronizedsortedmap" version="1.0.0-SNAPSHOT" xmlns:tc="http://www.terracotta.org/config"/>, <xml-fragment name="synchronizedsortedset" version="1.0.0-SNAPSHOT" xmlns:tc="http://www.terracotta.org/config"/>, <xml-fragment name="synchronizedcollection" version="1.0.0-SNAPSHOT" xmlns:tc="http://www.terracotta.org/config"/>] [INFO] Resolving bundle: org.terracotta.modules:excludes_config:1.0.0.SNAPSHOT [INFO] Resolving module org.terracotta.modules:excludes-config:jar:1.0.0-SNAPSHOT [INFO] Resolving bundle: org.terracotta.modules:modules_common:1.0.0.SNAPSHOT [INFO] Resolving module org.terracotta.modules:modules-common:jar:1.0.0-SNAPSHOT [INFO] Resolving bundle: org.terracotta.modules:guimodels_config:1.0.0.SNAPSHOT [INFO] Resolving module org.terracotta.modules:guimodels-config:jar:1.0.0-SNAPSHOT [INFO] Resolving bundle: org.terracotta.modules:jdk15_preinst_config:1.0.0.SNAPSHOT [INFO] Resolving module org.terracotta.modules:jdk15-preinst-config:jar:1.0.0-SNAPSHOT [INFO] Resolving bundle: org.terracotta.modules:spring_config:1.0.0.SNAPSHOT [INFO] Resolving module org.terracotta.modules:spring-config:jar:1.0.0-SNAPSHOT [INFO] Resolving bundle: org.terracotta.modules:standard_config:1.0.0.SNAPSHOT [INFO] Resolving module org.terracotta.modules:standard-config:jar:1.0.0-SNAPSHOT [INFO] Resolving location: org.terracotta.modules:annotations:0.0.1-SNAPSHOT [INFO] Resolving module org.terracotta.modules:annotations:jar:0.0.1-SNAPSHOT [INFO] Resolving location: org.terracotta.modules:clustered-ehcache-1.3:1.0.0 [INFO] Resolving module org.terracotta.modules:clustered-ehcache-1.3:jar:1.0.0 [INFO] Resolving bundle: org.terracotta.modules:clustered_commons_collections_3.1:(any-version) [INFO] Resolving module org.terracotta.modules:clustered-commons-collections-3.1:jar:1.0.0 [INFO] Resolving bundle: org.terracotta.modules:clustered_ehcache_commons_1.0:(any-version) [INFO] Resolving module org.terracotta.modules:clustered-ehcache-commons-1.0:jar:1.0.0 [INFO] Resolving location: org.terracotta.modules:terracotta-cache:1.0.0 [INFO] Resolving module org.terracotta.modules:terracotta-cache:jar:1.0.0 [INFO] Resolving location: org.terracotta.modules:synchronizedmap:1.0.0-SNAPSHOT [INFO] Resolving module org.terracotta.modules:synchronizedmap:jar:1.0.0-SNAPSHOT [INFO] snapshot org.terracotta.modules:synchronizedmap:1.0.0-SNAPSHOT: checking for updates from terracotta-repository [INFO] Resolving location: org.terracotta.modules:synchronizedset:1.0.0-SNAPSHOT [INFO] Resolving module org.terracotta.modules:synchronizedset:jar:1.0.0-SNAPSHOT [INFO] snapshot org.terracotta.modules:synchronizedset:1.0.0-SNAPSHOT: checking for updates from terracotta-repository [INFO] Resolving location: org.terracotta.modules:synchronizedsortedmap:1.0.0-SNAPSHOT [INFO] Resolving module org.terracotta.modules:synchronizedsortedmap:jar:1.0.0-SNAPSHOT [INFO] snapshot org.terracotta.modules:synchronizedsortedmap:1.0.0-SNAPSHOT: checking for updates from terracotta-repository [INFO] Resolving location: org.terracotta.modules:synchronizedsortedset:1.0.0-SNAPSHOT [INFO] Resolving module org.terracotta.modules:synchronizedsortedset:jar:1.0.0-SNAPSHOT [INFO] snapshot org.terracotta.modules:synchronizedsortedset:1.0.0-SNAPSHOT: checking for updates from terracotta-repository [INFO] Resolving location: org.terracotta.modules:synchronizedcollection:1.0.0-SNAPSHOT [INFO] Resolving module org.terracotta.modules:synchronizedcollection:jar:1.0.0-SNAPSHOT [INFO] snapshot org.terracotta.modules:synchronizedcollection:1.0.0-SNAPSHOT: checking for updates from terracotta-repository [INFO] ------------------------------------------------------------------------ [INFO] Starting bootjar tool [INFO] [bootjar] 2007-10-12 22:16:05,189 INFO - Terracotta trunk-nightly-rev5925, as of 20071011-181024 (Revision 5925 by cruise@rh4mo0 from trunk) [INFO] [bootjar] 2007-10-12 22:16:05,701 INFO - Configuration loaded from the file at '/Users/tgautier/src/forge/projects/labs/webcasts/dist-cache/target/classes/tc-config.xml'. [INFO] [bootjar] Exception in thread "main" java.lang.RuntimeException: Unable to create runtime for plugins [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:100) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.<init>(BootJarTool.java:213) [INFO] [bootjar] at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2433) [INFO] [bootjar] Caused by: java.lang.NumberFormatException: For input string: "1-SNAPSHOT" [INFO] [bootjar] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) [INFO] [bootjar] at java.lang.Integer.parseInt(Integer.java:456) [INFO] [bootjar] at java.lang.Integer.parseInt(Integer.java:497) [INFO] [bootjar] at org.osgi.framework.Version.<init>(Version.java:135) [INFO] [bootjar] at org.osgi.framework.Version.parseVersion(Version.java:208) [INFO] [bootjar] at com.tc.bundles.Resolver.resolveLocation(Resolver.java:177) [INFO] [bootjar] at com.tc.bundles.Resolver.resolve(Resolver.java:94) [INFO] [bootjar] at com.tc.bundles.Resolver.resolve(Resolver.java:110) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:146) [INFO] [bootjar] at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:95) [INFO] [bootjar] ... 2 more [INFO] OK

    Terracotta Project Issue Tracker | 10 years ago | Taylor Gautier
    java.lang.RuntimeException: Unable to create runtime for plugins
  6. 0

    If the {{plugin-info}} {{version}} element contains nonsense (not a number) on the left hand side of the decimal place, Felix throws a NumberFormatException that causes the framework and application to not load. Anything is permitted though on the rhs of the decimal place: * 1.0 (/) * 1.2.beta (/) * 1.beta (/) * beta.1 (x) {noformat} java.lang.NumberFormatException: For input string: "blah" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:447) at java.lang.Integer.parseInt(Integer.java:497) at org.osgi.framework.Version.<init>(Version.java:128) at org.osgi.framework.Version.parseVersion(Version.java:209) at org.apache.felix.framework.util.manifestparser.ManifestParser.parseBundleSymbolicName(ManifestParser.java:798) at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:69) at org.apache.felix.framework.Felix.createModule(Felix.java:3377) at org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3316) at org.apache.felix.framework.Felix.installBundle(Felix.java:2315) at org.apache.felix.framework.Felix.installBundle(Felix.java:2227) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110) at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:490) at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:354) at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:67) at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:316) at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:299) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:498) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:166) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:49) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:1276) {noformat}

    Ecosystem JIRA | 8 years ago | Jed Wesley-Smith
    java.lang.NumberFormatException: For input string: "blah"
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: "blackberry_compat_2"

    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:449)
    3. java.lang.Integer.parseInt(Integer.java:499)
    3 frames
  3. OSGi
    Version.parseVersion
    1. org.osgi.framework.Version.<init>(Version.java:127)
    2. org.osgi.framework.Version.parseVersion(Version.java:225)
    2 frames
  4. com.appcelerator.titanium
    TitaniumProjectBuilder.clean
    1. com.appcelerator.titanium.core.TitaniumProjectBuilder.clean(TitaniumProjectBuilder.java:72)
    1 frame
  5. Core Resource Management
    BuildManager$2.run
    1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:730)
    1 frame
  6. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  7. Core Resource Management
    BuildManager$1.run
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
    2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
    3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
    3 frames
  8. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  9. Core Resource Management
    Workspace.build
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
    2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
    3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
    4. org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
    5. org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
    5 frames
  10. com.aptana.editor
    ValidationPreferencePage$ApplyChangesAndBuildJob.run
    1. com.aptana.editor.common.preferences.ValidationPreferencePage$ApplyChangesAndBuildJob.run(ValidationPreferencePage.java:130)
    1 frame
  11. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    1 frame