OK, it's what I thought: it comes from Pax URL.

We are preparing improvements on Pax URL. Let me try with Pax URL SNAPSHOT.

Regards
JB

On 10/20/2016 03:30 PM, Jens Reimann wrote:
A bundle installation with such a redirect actually fails (see below)

It looks a bit like that the download either doesn't download or dosn
download and empty file but keeps on working on that.

---
2016-10-20 10:34:52,247 | ERROR | nsole user karaf |
ShellUtil                        | 22 - org.apache.karaf.shell.core -
4.0.7 | Exception caught while executing command
org.apache.karaf.shell.support.MultiException: Error installing bundles:
    Unable to install bundle
http://dentrassi.de/camel-milo/milo-example1-0.1.0-SNAPSHOT.jar
    at
org.apache.karaf.shell.support.MultiException.throwIf(MultiException.java:61)
    at
org.apache.karaf.bundle.command.Install.execute(Install.java:116)[52:org.apache.karaf.bundle.core:4.0.7]
    at
org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[22:org.apache.karaf.shell.core:4.0.7]
    at
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:274)[22:org.apache.karaf.shell.core:4.0.7]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_102]
Caused by: java.lang.Exception: Unable to install bundle
http://dentrassi.de/camel-milo/milo-example1-0.1.0-SNAPSHOT.jar
    at
org.apache.karaf.bundle.command.Install.execute(Install.java:79)[52:org.apache.karaf.bundle.core:4.0.7]
    ... 11 more
Caused by: org.osgi.framework.BundleException: Error occurred installing
a bundle.
    at
org.eclipse.osgi.storage.Storage.install(Storage.java:547)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at
org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:146)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at
org.apache.karaf.bundle.command.Install.execute(Install.java:77)[52:org.apache.karaf.bundle.core:4.0.7]
    ... 11 more
Caused by: java.util.zip.ZipException: Exception in opening zip file:
/opt/eclipse/kura/data/cache/org.eclipse.osgi/163/0/bundleFile
    at
org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:301)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at
org.eclipse.osgi.storage.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:85)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at
org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:98)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at
org.eclipse.osgi.storage.bundlefile.ZipBundleFile.open(ZipBundleFile.java:347)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    at
org.eclipse.osgi.storage.Storage.install(Storage.java:513)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    ... 13 more
Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)[:1.8.0_102]
    at java.util.zip.ZipFile.<init>(ZipFile.java:219)[:1.8.0_102]
    at java.util.zip.ZipFile.<init>(ZipFile.java:149)[:1.8.0_102]
    at java.util.zip.ZipFile.<init>(ZipFile.java:163)[:1.8.0_102]
    at
org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:288)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
    ... 17 more

---

On Thu, Oct 20, 2016 at 1:11 PM, Jean-Baptiste Onofré <[email protected]
<mailto:[email protected]>> wrote:

    Hi Jens,

    kar:install relays on Pax URL, so it could something there.

    Does it happen with another URL or resource (like a bundle) ?

    Regards
    JB

    On 10/20/2016 12:27 PM, Jens Reimann wrote:

        I just tried to install a KAR using:

            kar:install
        http://dentrassi.de/camel-milo/milo-0.1.0-SNAPSHOT.kar
        <http://dentrassi.de/camel-milo/milo-0.1.0-SNAPSHOT.kar>

        That looked like it went fine. Registering the KAR, but not
        installing
        anything.

        However it works issuing this with the direct HTTPS URL instead:

            kar:install
        https://dentrassi.de/camel-milo/milo-0.1.0-SNAPSHOT.kar
        <https://dentrassi.de/camel-milo/milo-0.1.0-SNAPSHOT.kar>

        Unless I did something wrong, it seems there is an issue with
        "kar:install" and redirects?!

        Cheers

        Jens


        --
        Jens Reimann
        Senior Software Engineer / EMEA ENG Middleware
        Werner-von-Siemens-Ring 14
        85630 Grasbrunn
        Germany
        phone: +49 89 2050 71286 <tel:%2B49%2089%202050%2071286>
        
_____________________________________________________________________________

        Red Hat GmbH, www.de.redhat.com <http://www.de.redhat.com>
        <http://www.de.redhat.com>,
        Registered seat: Grasbrunn, Commercial register: Amtsgericht
        Muenchen,
        HRB 153243,
        Managing Directors: Paul Argiry, Charles Cachera, Michael
        Cunningham,
        Michael O'Neill


    --
    Jean-Baptiste Onofré
    [email protected] <mailto:[email protected]>
    http://blog.nanthrax.net
    Talend - http://www.talend.com




--
Jens Reimann
Senior Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com <http://www.de.redhat.com>,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen,
HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
Michael O'Neill

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to