Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4129

Installing a feature with a fragment that attaches to pax-logging-api fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.1.0, 4.0.5
    • Component/s: karaf
    • Labels:
      None

      Description

      Installing a feature ABC that contains a fragment targeting pax-logging-api fails with the following logs/exception:

      2015-11-19 16:46:22,402 | INFO  | pool-46-thread-1 | FeaturesServiceImpl              | 8 - org.apache.karaf.features.core - 4.0.2 | Installing bundles:
      2015-11-19 16:46:22,403 | INFO  | pool-46-thread-1 | FeaturesServiceImpl              | 8 - org.apache.karaf.features.core - 4.0.2 |   mvn:org.apache.ignite/ignite-log4j/1.5.0-SNAPSHOT
      2015-11-19 16:46:22,406 | INFO  | pool-46-thread-1 | FeaturesServiceImpl              | 8 - org.apache.karaf.features.core - 4.0.2 |   mvn:org.apache.ignite/ignite-osgi-paxlogging/1.5.0-SNAPSHOT
      2015-11-19 16:46:22,408 | INFO  | pool-46-thread-1 | FeaturesServiceImpl              | 8 - org.apache.karaf.features.core - 4.0.2 |   null
      2015-11-19 16:46:22,410 | ERROR | nsole user karaf | ShellUtil                        | 43 - org.apache.karaf.shell.core - 4.0.2 | Exception caught while executing command
      java.lang.IllegalStateException: Resource has no uri
      	at org.apache.karaf.features.internal.service.Deployer.getBundleInputStream(Deployer.java:1372)[8:org.apache.karaf.features.core:4.0.2]
      	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:718)[8:org.apache.karaf.features.core:4.0.2]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1079)[8:org.apache.karaf.features.core:4.0.2]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:975)[8:org.apache.karaf.features.core:4.0.2]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_79]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_79]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
      

      Looking at source, it seems that pax-logging-api doesn't have a capability of type osgi.content as expected by ResourceUtils#getUri.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gnt Guillaume Nodet
                Reporter:
                raulvk Raúl Kripalani
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: