You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2014/06/27 10:47:24 UTC
[jira] [Assigned] (KARAF-3000) Whitespace in feature file bundle
element value causes NumberFormatException
[ https://issues.apache.org/jira/browse/KARAF-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang reassigned KARAF-3000:
-----------------------------------
Assignee: Freeman Fang
> 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
> Assignee: Freeman Fang
> Priority: Minor
> 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.2#6252)