karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josef Ludvíček (JIRA) <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (KARAF-5208) Improve feature:install error message
Date Thu, 15 Jun 2017 12:01:00 GMT

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

Josef Ludvíček updated KARAF-5208:
----------------------------------
    Comment: was deleted

(was: Here is my attempt to improve https://github.com/apache/karaf/pull/320)

> 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