[
https://issues.apache.org/jira/browse/KARAF-3812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré updated KARAF-3812:
----------------------------------------
Fix Version/s: 4.0.1
> Exception caused by featuresRepositories property being set incorrectly
> -----------------------------------------------------------------------
>
> Key: KARAF-3812
> URL: https://issues.apache.org/jira/browse/KARAF-3812
> Project: Karaf
> Issue Type: Bug
> Components: karaf-feature
> Affects Versions: 4.0.0
> Reporter: Jonathan Byrne
> Assignee: Jean-Baptiste Onofré
> Fix For: 4.0.1
>
> Attachments: KARAF-3812.patch
>
>
> The org.apache.karaf.features.cfg file generated by the Maven plugin included
> this line:
> featuresRepositories =
> file:${karaf.home}/etc/f9a8234a-cebf-45b5-9316-2345d36febcd.xml
> When executed in a Windows environment, this creates an invalid URI because
> karaf.home contains back slashes instead of forward slashes. This results in
> the exception below being thrown.
> 2015-06-29 13:21:31,459 | ERROR | pool-1-thread-1 | BootFeaturesInstaller
> | 6 - org.apache.karaf.features.core - 4.0.0 | Error installing boot
> feature repository
> file:C:\dev\code\karaf-test\target\assembly/etc/f9a8234a-cebf-45b5-9316-2345d36febcd.xml
> java.lang.IllegalArgumentException: Illegal character in opaque part at index
> 7:
> file:C:\dev\code\karaf-test\target\assembly/etc/f9a8234a-cebf-45b5-9316-2345d36febcd.xml
> at java.net.URI.create(URI.java:852)[:1.8.0_40]
> at
> org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:86)[6:org.apache.karaf.features.core:4.0.0]
> at
> org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:76)[6:org.apache.karaf.features.core:4.0.0]
> at
> org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:257)[6:org.apache.karaf.features.core:4.0.0]
> at
> org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:233)[6:org.apache.karaf.features.core:4.0.0]
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_40]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_40]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_40]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_40]
> at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at
> index 7:
> file:C:\dev\code\karaf-test\target\assembly/etc/f9a8234a-cebf-45b5-9316-2345d36febcd.xml
> at java.net.URI$Parser.fail(URI.java:2848)[:1.8.0_40]
> at java.net.URI$Parser.checkChars(URI.java:3021)[:1.8.0_40]
> at java.net.URI$Parser.parse(URI.java:3058)[:1.8.0_40]
> at java.net.URI.<init>(URI.java:588)[:1.8.0_40]
> at java.net.URI.create(URI.java:850)[:1.8.0_40]
> ... 9 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)