You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by yogu13 <yo...@gmail.com> on 2015/03/10 12:26:34 UTC

Re: Error when executing: install -s mvn:com.packt/sample

Hello Christian,

You can check the karaf logs on why isn't your bundle installing / starting.

Regards,
-Yogesh




--
View this message in context: http://camel.465427.n5.nabble.com/Error-when-executing-install-s-mvn-com-packt-sample-tp5763885p5763896.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Error when executing: install -s mvn:com.packt/sample

Posted by Christian Eugster <c....@docuteam.ch>.
Hi Yogesh,

thank you for responding. The log says, but I don't see what is wrong and I don't understand what No highest version found for com.packt:sample:jar:(0.0,] means.

2015-03-10 13:30:19,280 | ERROR | l for user karaf | ShellUtil                        | 25 - org.apache.karaf.shell.console - 3.0.3 | Exception caught while executing command
org.apache.karaf.shell.console.MultiException: Error installing bundles:
	Unable to install bundle mvn:com.packt/sample
	at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:92)
	at org.apache.karaf.bundle.command.Install.doExecute(Install.java:69)
	at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.3]
	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.3]
	at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.3]
	at Proxy7fbc9e19_dc50_4b3b_82db_0045b0ce5b99.execute(Unknown Source)[:]
	at Proxy7fbc9e19_dc50_4b3b_82db_0045b0ce5b99.execute(Unknown Source)[:]
	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.3]
	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.3]
	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.3]
	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.3]
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.3]
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.3]
	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:208)
	at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109)
	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_51]
	at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.3]
	at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)[25:org.apache.karaf.shell.console:3.0.3]
Caused by: java.lang.Exception: Unable to install bundle mvn:com.packt/sample
	at org.apache.karaf.bundle.command.Install.doExecute(Install.java:45)
	... 17 more
Caused by: org.osgi.framework.BundleException: Unable to cache bundle: mvn:com.packt/sample
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2870)
	at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
	at org.apache.karaf.bundle.command.Install.doExecute(Install.java:43)
	... 17 more
Caused by: java.io.IOException: Error resolving artifact com.packt:sample:jar:LATEST
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:491)
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:433)
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:411)
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:386)
	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:124)
	at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)
	at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)
	at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)
	at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)
	at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
	at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)
	at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2866)
	... 19 more
Caused by: shaded.org.eclipse.aether.resolution.VersionRangeResolutionException: No highest version found for com.packt:sample:jar:(0.0,]
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveLatestVersionRange(AetherBasedResolver.java:666)
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:475)
	... 31 more


Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugster@docuteam.ch





> Am 10.03.2015 um 12:26 schrieb yogu13 <yo...@gmail.com>:
> 
> Hello Christian,
> 
> You can check the karaf logs on why isn't your bundle installing / starting.
> 
> Regards,
> -Yogesh
> 
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Error-when-executing-install-s-mvn-com-packt-sample-tp5763885p5763896.html
> Sent from the Camel - Users mailing list archive at Nabble.com.