karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Pines (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-3000) Whitespace in feature file bundle element value causes NumberFormatException
Date Sat, 24 May 2014 17:40:01 GMT
Tom Pines created KARAF-3000:

             Summary:  Whitespace in feature file bundle element value causes NumberFormatException
                 Key: KARAF-3000
                 URL: https://issues.apache.org/jira/browse/KARAF-3000
             Project: Karaf
          Issue Type: Bug
          Components: karaf-core
    Affects Versions: 3.0.1
         Environment: Windows 7; Java version 1.7.0_51
            Reporter: Tom Pines
            Priority: Minor

Preceding Whitespace in bundle element value is being preserved.

<<.NumberFormatException: For input string: "            mvn:org...">>

Install the following in karaf 3.0.1:
<?xml version="1.0" encoding="UTF-8"?>
<features name="problems"
    <feature name="problem">

Shutdown karaf. On karaf statup the following is displayed at the karaf console:

ERROR: Error reloading cached bundle, 
removing it: C:\lib\apache-karaf-3.0.1\data\cache\bundle118 (java.lang.NumberFormatException:

For input string: "            mvn:org.apache.commons/commons-lang3/3.3.2")
java.lang.NumberFormatException: For input string: "            mvn:org.apache.commons/commons-lang3/3.3.2"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:481)
        at java.lang.Integer.parseInt(Integer.java:527)
        at org.apache.felix.framework.cache.BundleArchive.readBundleInfo(BundleArchive.java:959)
        at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:182)
        at org.apache.felix.framework.cache.BundleCache.getArchives(BundleCache.java:247)

This message was sent by Atlassian JIRA

View raw message