2 Replies Latest reply on Jan 13, 2015 12:25 PM by Emilio Doe

    Error downloading FAB dependencies - JBoss Fuse 6.1

    Emilio Doe Newbie

      Hy

       

      I´m having problems to install a FAB (Fuse Application Bundle) in JBoss Fuse with Karaf console. JBF is unable to download the maven dependencies in the pom.xml inside de FAB.

       

      First of all, my enviorement is this:

      • Windows 7
      • jboss-fuse-6.1.0.redhat-379
      • Apache Maven 3.1.1
      • I am behind a corporate proxy, over http, wich requieres authentication (user and password),

       

       

      After launch the follow command, the console gets stuck for serveral minutes and then shows an error saying that can not install de fab.

      osgi:intall fab:mvn:es.test.fuse/file-copy/1.0.0-SNAPSHOT
      

       

      Checking the log file, placed in, installdir/data/log/, you can see this:

      16:22:10,790 | INFO  | l Console Thread | Console                          | 17 - org.apache.karaf.shell.console - 2.3.0.redhat-610379 | Exception caught while executing command
      org.apache.karaf.shell.console.MultiException: Error installing bundles:
        Unable to install bundle fab:mvn:es.test.fuse/file-copy/1.0.0-SNAPSHOT
        at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91)
        at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)[31:org.apache.karaf.shell.osgi:2.3.0.redhat-610379]
        at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
        at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[17:org.apache.karaf.shell.console:2.3.0.redhat-610379]
      Caused by: java.lang.Exception: Unable to install bundle fab:mvn:es.test.fuse/file-copy/1.0.0-SNAPSHOT
        at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:45)[31:org.apache.karaf.shell.osgi:2.3.0.redhat-610379]
        ... 11 more
      Caused by: org.osgi.framework.BundleException: Unable to cache bundle: fab:mvn:es.test.fuse/file-copy/1.0.0-SNAPSHOT
        at org.apache.felix.framework.Felix.installBundle(Felix.java:3121)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[31:org.apache.karaf.shell.osgi:2.3.0.redhat-610379]
        ... 11 more
      Caused by: java.io.IOException: Could not transfer artifact org.apache.camel:camel-core:jar:2.12.0.redhat-610379 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file
        at io.fabric8.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.java:256)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.osgi.internal.FabConnection.getInputStream(FabConnection.java:93)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        at org.apache.felix.framework.Felix.installBundle(Felix.java:3117)[org.apache.felix.framework-4.0.3.redhat-610379.jar:]
        ... 13 more
      Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.camel:camel-core:jar:2.12.0.redhat-610379 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.MavenResolverImpl.resolveFile(MavenResolverImpl.java:187)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.DependencyTree.newInstance(DependencyTree.java:139)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.DependencyTree.newInstance(DependencyTree.java:131)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.DependencyTreeResult.getTree(DependencyTreeResult.java:49)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:386)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.MavenResolverImpl.collectDependenciesFromPom(MavenResolverImpl.java:294)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:263)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.collectDependencyTree(FabResolverFactoryImpl.java:148)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.osgi.internal.FabClassPathResolver.resolve(FabClassPathResolver.java:135)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.configureInstructions(FabResolverFactoryImpl.java:279)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.createInstructions(FabResolverFactoryImpl.java:271)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at io.fabric8.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.java:241)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        ... 22 more
      Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.camel:camel-core:jar:2.12.0.redhat-610379 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:695)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:689)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:445)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:460)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        ... 37 more
      Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.resourceExists(LightweightHttpWagon.java:384)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:584)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:64)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_45]
        at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]
      Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)[:1.7.0_45]
        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)[:1.7.0_45]
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)[:1.7.0_45]
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)[:1.7.0_45]
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)[:1.7.0_45]
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)[:1.7.0_45]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.7.0_45]
        at java.net.Socket.connect(Socket.java:579)[:1.7.0_45]
        at java.net.Socket.connect(Socket.java:528)[:1.7.0_45]
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)[:1.7.0_45]
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)[:1.7.0_45]
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)[:1.7.0_45]
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)[:1.7.0_45]
        at sun.net.www.http.HttpClient.New(HttpClient.java:308)[:1.7.0_45]
        at sun.net.www.http.HttpClient.New(HttpClient.java:326)[:1.7.0_45]
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)[:1.7.0_45]
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)[:1.7.0_45]
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)[:1.7.0_45]
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)[:1.7.0_45]
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)[:1.7.0_45]
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.resourceExists(LightweightHttpWagon.java:361)[109:io.fabric8.fab.fab-osgi:1.0.0.redhat-379]
        ... 5 more
      

       

       

      After reading some coments, this problem is usually due to wrong proxy settings. So I also made the following changes in org.ops4j.pax.url.mvn.cfg:

      • org.ops4j.pax.url.mvn.proxySupport=true
      • org.ops4j.pax.url.mvn.settings=C:/Users/[myUser]/.m2/settings.xml
      • org.ops4j.pax.url.mvn.localRepository=C:/Users/[myUser]/.m2/repository

       

      Even so, the problem persist and the same log is generated.

       

      I checked this post (Re: Can't install examples) wich concludes that this is in fact a bug in JBoss Fuse 6.0.0 and that should be resolved in future releases. But its seems it was not solved yet. ¿Is this correct?

       

      Thanks in advance