Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-6677

can't install feature camel-spring-security

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jboss-fuse-6.2-patches
    • Camel, Karaf
    • % %

      This was introduced in 6.2.1 R7 (#186)

      JBossFuse:karaf@root> features:install camel-spring-security
      Error executing command: java.lang.NullPointerException
      

      log:tail:

      10:29:23,185 | INFO  | lixDispatchQueue | patch-management                 | 1 - io.fabric8.patch.patch-management - 1.2.0.redhat-621186 | Found child baseline distribution: /home/jludvice/apps/fuse/jboss-fuse-6.2.1.redhat-186/system/org/apache/karaf/admin/org.apache.karaf.admin.core/2.4.0.redhat-621186/org.apache.karaf.admin.core-2.4.0.redhat-621186.jar
      10:29:26,743 | ERROR | l Console Thread | Console                          | 37 - org.apache.karaf.shell.console - 2.4.0.redhat-621186 | Exception caught while executing command
      java.lang.NullPointerException
      	at org.apache.felix.bundlerepository.impl.ResolverImpl.getResources(ResolverImpl.java:155)[8:org.apache.felix.bundlerepository:2.0.4]
      	at org.apache.felix.bundlerepository.impl.ResolverImpl.resolve(ResolverImpl.java:172)[8:org.apache.felix.bundlerepository:2.0.4]
      	at org.apache.felix.bundlerepository.impl.ResolverImpl.resolve(ResolverImpl.java:166)[8:org.apache.felix.bundlerepository:2.0.4]
      	at org.apache.karaf.features.obr.internal.ObrResolver.doResolve(ObrResolver.java:166)[13:org.apache.karaf.features.obr:2.4.0.redhat-621186]
      	at org.apache.karaf.features.obr.internal.ObrResolver.resolve(ObrResolver.java:116)[13:org.apache.karaf.features.obr:2.4.0.redhat-621186]
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.resolve(FeaturesServiceImpl.java:813)[10:org.apache.karaf.features.core:2.4.0.redhat-621186]
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:702)[10:org.apache.karaf.features.core:2.4.0.redhat-621186]
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeatures(FeaturesServiceImpl.java:462)[10:org.apache.karaf.features.core:2.4.0.redhat-621186]
      	at org.apache.karaf.features.internal.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:432)[10:org.apache.karaf.features.core:2.4.0.redhat-621186]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
      

      Error message is not helpful at all. Please consider backporting ENTESB-6499, because with this easy fix, it turns out what the problem is:
      I had to replace features/obr bundle with [version from 6.3 | repository.jboss.org/nexus/content/groups/ea/org/apache/karaf/features/org.apache.karaf.features.obr/2.4.0.redhat-630252/org.apache.karaf.features.obr-2.4.0.redhat-630252.jar] to get meaningfull message

      JBossFuse:karaf@root> features:install camel-spring-security
      Error executing command: Can not resolve feature camel-spring-security/2.15.1.redhat-621186, resource mvn:org.springframework.security/spring-security-web/3.2.10.RELEASE is not proper OSGi bundle
      

      There was version bump in spring-security

      /jboss-fuse-6.2.1.redhat-186/system/org/springframework/security/spring-security-web/3.2.10.RELEASE/spring-security-web-3.2.10.RELEASE.jar
      ./jboss-fuse-6.2.1.redhat-176/system/org/springframework/security/spring-security-web/3.2.8.RELEASE/spring-security-web-3.2.8.RELEASE.jar
      

      New spring-security-web bundle has empty manifest header see diff from R6 to R7

      Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      diff --git a/176/META-INF/MANIFEST.MF b/186/META-INF/MANIFEST.MF
      index 2670399..59499bc 100644
      --- a/176/META-INF/MANIFEST.MF
      +++ b/186/META-INF/MANIFEST.MF
      @@ -1,194 +1,2 @@
       Manifest-Version: 1.0
      -Export-Package: org.springframework.security.web;version="3.2.8.RELEAS
      - E";uses:="javax.servlet,javax.servlet.http,org.apache.commons.logging
      - ,org.springframework.security.core,org.springframework.security.web.f
      - irewall,org.springframework.security.web.util.matcher,org.springframe
      - work.web.filter",org.springframework.security.web.access;version="3.2
      - .8.RELEASE";uses:="javax.servlet,javax.servlet.http,org.springframewo
      - rk.security.access,org.springframework.security.access.intercept,org.
      - springframework.security.authentication,org.springframework.security.
      - core,org.springframework.security.web,org.springframework.security.we
      - b.savedrequest,org.springframework.security.web.util,org.springframew
      - ork.web.filter",org.springframework.security.web.access.channel;versi
      - on="3.2.8.RELEASE";uses:="javax.servlet,javax.servlet.http,org.spring
      - framework.beans.factory,org.springframework.security.access,org.sprin
      - gframework.security.web,org.springframework.security.web.access.inter
      - cept,org.springframework.web.filter",org.springframework.security.web
      - .access.expression;version="3.2.8.RELEASE";uses:="org.springframework
      - .expression,org.springframework.security.access,org.springframework.s
      - ecurity.access.expression,org.springframework.security.authentication
      - ,org.springframework.security.core,org.springframework.security.web,o
      - rg.springframework.security.web.access.intercept",org.springframework
      - .security.web.access.intercept;version="3.2.8.RELEASE";uses:="javax.s
      - ervlet,org.springframework.security.access,org.springframework.securi
      - ty.access.intercept,org.springframework.security.web",org.springframe
      - work.security.web.authentication;version="3.2.8.RELEASE";uses:="javax
      - .servlet,javax.servlet.http,org.springframework.beans.factory,org.spr
      - ingframework.context,org.springframework.security.authentication,org.
      - springframework.security.core,org.springframework.security.core.userd
      - etails.memory,org.springframework.security.web,org.springframework.se
      - curity.web.authentication.session,org.springframework.security.web.sa
      - vedrequest,org.springframework.security.web.util.matcher,org.springfr
      - amework.web.filter",org.springframework.security.web.authentication.l
      - ogout;version="3.2.8.RELEASE";uses:="javax.servlet,javax.servlet.http
      - ,org.springframework.security.core,org.springframework.security.web.a
      - uthentication,org.springframework.security.web.util.matcher,org.sprin
      - gframework.web.filter",org.springframework.security.web.authenticatio
      - n.preauth;version="3.2.8.RELEASE";uses:="javax.servlet,javax.servlet.
      - http,org.springframework.beans.factory,org.springframework.context,or
      - g.springframework.core,org.springframework.security.authentication,or
      - g.springframework.security.core,org.springframework.security.core.aut
      - hority,org.springframework.security.core.userdetails,org.springframew
      - ork.security.web.authentication,org.springframework.web.filter",org.s
      - pringframework.security.web.authentication.preauth.j2ee;version="3.2.
      - 8.RELEASE";uses:="javax.servlet.http,org.springframework.beans.factor
      - y,org.springframework.context,org.springframework.core.io,org.springf
      - ramework.security.authentication,org.springframework.security.core.au
      - thority.mapping,org.springframework.security.web.authentication.preau
      - th,org.xml.sax",org.springframework.security.web.authentication.preau
      - th.x509;version="3.2.8.RELEASE";uses:="javax.servlet.http,org.springf
      - ramework.context,org.springframework.security.web.authentication.prea
      - uth",org.springframework.security.web.authentication.rememberme;versi
      - on="3.2.8.RELEASE";uses:="javax.servlet,javax.servlet.http,org.spring
      - framework.beans.factory,org.springframework.context,org.springframewo
      - rk.jdbc.core,org.springframework.jdbc.core.support,org.springframewor
      - k.security.authentication,org.springframework.security.core,org.sprin
      - gframework.security.core.authority.mapping,org.springframework.securi
      - ty.core.userdetails,org.springframework.security.web.authentication,o
      - rg.springframework.security.web.authentication.logout,org.springframe
      - work.web.filter",org.springframework.security.web.authentication.sess
      - ion;version="3.2.8.RELEASE";uses:="javax.servlet.http,org.springframe
      - work.context,org.springframework.security.authentication.event,org.sp
      - ringframework.security.core,org.springframework.security.core.session
      - ",org.springframework.security.web.authentication.switchuser;version=
      - "3.2.8.RELEASE";uses:="javax.servlet,javax.servlet.http,org.springfra
      - mework.beans,org.springframework.context,org.springframework.security
      - .authentication,org.springframework.security.authentication.event,org
      - .springframework.security.core,org.springframework.security.core.user
      - details,org.springframework.security.web.authentication,org.springfra
      - mework.web.filter",org.springframework.security.web.authentication.ui
      - ;version="3.2.8.RELEASE";uses:="javax.servlet,org.springframework.sec
      - urity.web.authentication,org.springframework.web.filter",org.springfr
      - amework.security.web.authentication.www;version="3.2.8.RELEASE";uses:
      - ="javax.servlet,javax.servlet.http,org.apache.commons.logging,org.spr
      - ingframework.beans.factory,org.springframework.context,org.springfram
      - ework.core,org.springframework.security.authentication,org.springfram
      - ework.security.core,org.springframework.security.core.userdetails,org
      - .springframework.security.web,org.springframework.security.web.authen
      - tication,org.springframework.web.filter",org.springframework.security
      - .web.bind.annotation;version="3.2.8.RELEASE",org.springframework.secu
      - rity.web.bind.support;version="3.2.8.RELEASE";uses:="org.springframew
      - ork.core,org.springframework.web.bind.support,org.springframework.web
      - .context.request,org.springframework.web.method.support",org.springfr
      - amework.security.web.context;version="3.2.8.RELEASE";uses:="javax.ser
      - vlet,javax.servlet.http,org.springframework.security.authentication,o
      - rg.springframework.security.core.context,org.springframework.web,org.
      - springframework.web.filter",org.springframework.security.web.context.
      - request.async;version="3.2.8.RELEASE";uses:="javax.servlet,javax.serv
      - let.http,org.springframework.security.core.context,org.springframewor
      - k.web.context.request,org.springframework.web.context.request.async,o
      - rg.springframework.web.filter",org.springframework.security.web.csrf;
      - version="3.2.8.RELEASE";uses:="javax.servlet,javax.servlet.http,org.s
      - pringframework.security.access,org.springframework.security.core,org.
      - springframework.security.web.access,org.springframework.security.web.
      - authentication.logout,org.springframework.security.web.authentication
      - .session,org.springframework.security.web.util.matcher,org.springfram
      - ework.web.filter",org.springframework.security.web.debug;version="3.2
      - .8.RELEASE";uses:="javax.servlet,javax.servlet.http,org.springframewo
      - rk.security.web",org.springframework.security.web.firewall;version="3
      - .2.8.RELEASE";uses:="javax.servlet,javax.servlet.http",org.springfram
      - ework.security.web.header;version="3.2.8.RELEASE";uses:="javax.servle
      - t,javax.servlet.http,org.springframework.web.filter",org.springframew
      - ork.security.web.header.writers;version="3.2.8.RELEASE";uses:="javax.
      - servlet.http,org.springframework.security.web.header,org.springframew
      - ork.security.web.util.matcher",org.springframework.security.web.heade
      - r.writers.frameoptions;version="3.2.8.RELEASE";uses:="javax.servlet.h
      - ttp,org.springframework.security.web.header",org.springframework.secu
      - rity.web.jaasapi;version="3.2.8.RELEASE";uses:="javax.security.auth,j
      - avax.servlet,org.springframework.web.filter",org.springframework.secu
      - rity.web.savedrequest;version="3.2.8.RELEASE";uses:="javax.servlet,ja
      - vax.servlet.http,org.springframework.security.web,org.springframework
      - .security.web.util.matcher,org.springframework.web.filter",org.spring
      - framework.security.web.servlet.support.csrf;version="3.2.8.RELEASE";u
      - ses:="javax.servlet.http,org.springframework.web.servlet.support",org
      - .springframework.security.web.servletapi;version="3.2.8.RELEASE";uses
      - :="javax.servlet,javax.servlet.http,org.apache.commons.logging,org.sp
      - ringframework.security.authentication,org.springframework.security.we
      - b,org.springframework.web.filter",org.springframework.security.web.se
      - ssion;version="3.2.8.RELEASE";uses:="javax.servlet,javax.servlet.http
      - ,org.springframework.context,org.springframework.security.access,org.
      - springframework.security.authentication,org.springframework.security.
      - core.session,org.springframework.security.web,org.springframework.sec
      - urity.web.access,org.springframework.security.web.authentication,org.
      - springframework.security.web.authentication.logout,org.springframewor
      - k.security.web.authentication.session,org.springframework.security.we
      - b.context,org.springframework.web.filter",org.springframework.securit
      - y.web.util;version="3.2.8.RELEASE";uses:="javax.servlet.http,org.spri
      - ngframework.expression,org.springframework.http,org.springframework.s
      - ecurity.web.util.matcher",org.springframework.security.web.util.match
      - er;version="3.2.8.RELEASE";uses:="javax.servlet.http,org.springframew
      - ork.expression,org.springframework.http,org.springframework.web.accep
      - t"
      -Bundle-Vendor: SpringSource
      -Implementation-Title: org.springframework.security.web
      -Implementation-Version: 3.2.8.RELEASE
      -Bundle-Version: 3.2.8.RELEASE
      -Tool: Bundlor 1.0.0.RELEASE
      -Bundle-Name: Spring Security Web
      -Bundle-ManifestVersion: 2
      -Bundle-SymbolicName: org.springframework.security.web
      -Import-Package: javax.servlet;version="0",javax.servlet.http;version="
      - 0",javax.xml.parsers;version="0";resolution:="optional",org.apache.co
      - mmons.logging;version="[1.0.4, 2.0.0)",org.springframework.beans;vers
      - ion="[3.2.13.RELEASE, 5)",org.springframework.beans.factory;version="
      - [3.2.13.RELEASE, 5)",org.springframework.context;version="[3.2.13.REL
      - EASE, 5)",org.springframework.context.support;version="[3.2.13.RELEAS
      - E, 5)",org.springframework.core;version="[3.2.13.RELEASE, 5)",org.spr
      - ingframework.core.annotation;version="[3.2.13.RELEASE, 5)";resolution
      - :="optional",org.springframework.core.io;version="[3.2.13.RELEASE, 5)
      - ",org.springframework.dao;version="[3.2.13.RELEASE, 5)";resolution:="
      - optional",org.springframework.expression;version="[3.2.13.RELEASE, 5)
      - ";resolution:="optional",org.springframework.expression.spel.standard
      - ;version="[3.2.13.RELEASE, 5)";resolution:="optional",org.springframe
      - work.expression.spel.support;version="[3.2.13.RELEASE, 5)";resolution
      - :="optional",org.springframework.http;version="[3.2.13.RELEASE, 5)",o
      - rg.springframework.jdbc.core;version="[3.2.13.RELEASE, 5)";resolution
      - :="optional",org.springframework.jdbc.core.support;version="[3.2.13.R
      - ELEASE, 5)";resolution:="optional",org.springframework.security.acces
      - s;version="[3.2.8.RELEASE, 3.3.0)",org.springframework.security.acces
      - s.expression;version="[3.2.8.RELEASE, 3.3.0)",org.springframework.sec
      - urity.access.hierarchicalroles;version="[3.2.8.RELEASE, 3.3.0)",org.s
      - pringframework.security.access.intercept;version="[3.2.8.RELEASE, 3.3
      - .0)",org.springframework.security.authentication;version="[3.2.8.RELE
      - ASE, 3.3.0)",org.springframework.security.authentication.event;versio
      - n="[3.2.8.RELEASE, 3.3.0)",org.springframework.security.authenticatio
      - n.jaas;version="[3.2.8.RELEASE, 3.3.0)",org.springframework.security.
      - concurrent;version="[3.2.13.RELEASE, 5)";resolution:="optional",org.s
      - pringframework.security.core;version="[3.2.8.RELEASE, 3.3.0)",org.spr
      - ingframework.security.core.authority;version="[3.2.8.RELEASE, 3.3.0)"
      - ,org.springframework.security.core.authority.mapping;version="[3.2.8.
      - RELEASE, 3.3.0)",org.springframework.security.core.context;version="[
      - 3.2.8.RELEASE, 3.3.0)",org.springframework.security.core.session;vers
      - ion="[3.2.8.RELEASE, 3.3.0)",org.springframework.security.core.userde
      - tails;version="[3.2.8.RELEASE, 3.3.0)",org.springframework.security.c
      - ore.userdetails.cache;version="[3.2.8.RELEASE, 3.3.0)",org.springfram
      - ework.security.core.userdetails.memory;version="[3.2.8.RELEASE, 3.3.0
      - )",org.springframework.security.crypto.codec;version="[3.2.8.RELEASE,
      -  3.3.0)",org.springframework.util;version="[3.2.13.RELEASE, 5)";resol
      - ution:="optional",org.springframework.web;version="[3.2.13.RELEASE, 5
      - )";resolution:="optional",org.springframework.web.accept;version="[3.
      - 2.13.RELEASE, 5)";resolution:="optional",org.springframework.web.bind
      - .support;version="[3.2.13.RELEASE, 5)";resolution:="optional",org.spr
      - ingframework.web.context;version="[3.2.13.RELEASE, 5)";resolution:="o
      - ptional",org.springframework.web.context.request;version="[3.2.13.REL
      - EASE, 5)";resolution:="optional",org.springframework.web.context.requ
      - est.async;version="[3.2.13.RELEASE, 5)";resolution:="optional",org.sp
      - ringframework.web.context.support;version="[3.2.13.RELEASE, 5)";resol
      - ution:="optional",org.springframework.web.filter;version="[3.2.13.REL
      - EASE, 5)",org.springframework.web.method.support;version="[3.2.13.REL
      - EASE, 5)";resolution:="optional",org.springframework.web.servlet.supp
      - ort;version="[3.2.13.RELEASE, 5)";resolution:="optional",org.springfr
      - amework.web.util;version="[3.2.13.RELEASE, 5)";resolution:="optional"
      - ,org.w3c.dom;version="0";resolution:="optional",org.xml.sax;version="
      - 0";resolution:="optional"
      

            acosenti Andrea Cosentino
            jludvice Josef Ludvicek (Inactive)
            Josef Ludvicek Josef Ludvicek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: