karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KARAF-3000) Whitespace in feature file bundle element value causes NumberFormatException
Date Tue, 02 Sep 2014 12:34:21 GMT

     [ https://issues.apache.org/jira/browse/KARAF-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Freeman Fang resolved KARAF-3000.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.2
                   4.0.0

>  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-feature
>    Affects Versions: 3.0.1
>         Environment: Windows 7; Java version 1.7.0_51
>            Reporter: Tom Pines
>            Assignee: Freeman Fang
>            Priority: Minor
>             Fix For: 4.0.0, 3.0.2
>
>         Attachments: problem-feature.xml
>
>
> 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"
>           xmlns="http://karaf.apache.org/xmlns/features/v1.2.0">
>     <feature name="problem">
>         <bundle>
>             mvn:org.apache.commons/commons-lang3/3.3.2
>         </bundle>
>     </feature>
> </features>
> 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
(v6.3.4#6332)

Mime
View raw message