karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5208) Improve feature:install error message
Date Thu, 15 Jun 2017 11:58:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050375#comment-16050375
] 

ASF GitHub Bot commented on KARAF-5208:
---------------------------------------

GitHub user jludvice opened a pull request:

    https://github.com/apache/karaf/pull/320

    [KARAF-5208] Improve feature:install error message

    R: @jbonofre

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jludvice/karaf KARAF-5208

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/320.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 #320
    
----
commit 1e17733ef5c6d7119ab0a1e88b9607c7d0fcee34
Author: Josef Ludvicek <jludvice@redhat.com>
Date:   2017-06-15T11:51:56Z

    [KARAF-5208] Improve feature:install error message

----


> Improve feature:install error message
> -------------------------------------
>
>                 Key: KARAF-5208
>                 URL: https://issues.apache.org/jira/browse/KARAF-5208
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-feature
>    Affects Versions: 4.2.0
>            Reporter: Josef Ludvíček
>            Assignee: Jean-Baptiste Onofré
>
> Error of {{feature:install}} command gives no valuable info:
> {code}
> karaf@root()> feature:install spring-jdbc                                        
                                                                                         
                                Error executing command: Error
> {code}
> One must check for logs
> {code}
> 2017-06-15T10:56:46,932 | ERROR | Karaf local console user karaf | ShellUtil        
               | 43 - org.apache.karaf.shell.core - 4.2.0.fuse-000025 | Exception caught while
executing command
> org.apache.karaf.features.internal.util.MultiException: Error
> 	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:86)
~[?:?]
> 	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)
~[?:?]
> 	at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:373)
~[?:?]
> 	at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:370)
~[?:?]
> 	at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:187)
~[?:?]
> 	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:279) ~[?:?]
> 	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1013)
~[?:?]
> 	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$4(FeaturesServiceImpl.java:941)
~[?:?]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
> 	at java.lang.Thread.run(Thread.java:748) [?:?]
> 	Suppressed: java.io.IOException: Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.3.7.RELEASE_1
> 		at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:77)
[9:org.apache.karaf.features.core:4.2.0.fuse-000025]
> 		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
> 		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> 		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[?:?]
> 		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[?:?]
> 		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[?:?]
> 		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[?:?]
> 		at java.lang.Thread.run(Thread.java:748) [?:?]
> {code}
> It would be great if the error output looked like this:
> {code}
> karaf@root()> feature:install spring-jdbc                                        
                                                                                         
                                Error executing command: Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.3.7.RELEASE_1
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message