You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/12/01 10:51:11 UTC
[jira] [Commented] (KARAF-3812) Exception caused by
featuresRepositories property being set incorrectly
[ https://issues.apache.org/jira/browse/KARAF-3812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15033435#comment-15033435 ]
ASF GitHub Bot commented on KARAF-3812:
---------------------------------------
GitHub user akuhtz opened a pull request:
https://github.com/apache/karaf/pull/112
Reverted changes of KARAF-3812.
Reverted changes of KARAF-3812 to let the karaf service start again if the path contains spaces under Windows.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/akuhtz/karaf KARAF-4138
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf/pull/112.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #112
----
commit 78a99ea3fb9529e568bef07eb0e596dca568cf5a
Author: Andreas Kuhtz <an...@gmail.com>
Date: 2015-12-01T09:48:38Z
Reverted changes of KARAF-3812.
----
> 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: Freeman Fang
> Fix For: 4.0.3
>
> 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)