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

Karaf-Command 'diag' does not provide full information for Spring-DM bundles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.1
    • 4.0.3
    • karaf
    • None
    • Linux (Mint 17.2)

    Description

      When using the Karaf commandline command 'diag' to diagnose a Spring-DM bundle, not all diagnostic information is provided.

      For example, I have several Spring-DM enabled bundles which I wish to deploy in Karaf however often I do not have their Spring-dependencies available. This means the bundles go to the waiting state as can be seen with the 'list' command. As I am not the author of these bundles I need to discovery easily exactly what dependencies are currently unavailable.

      Using the 'diag' command on the Spring-DM enabled bundles initially only states the bundle is 'waiting' but it does not state what dependency it is waiting for. I understand that this is a bug with Karaf 'diag' command, see link below.

      Currently the only way to resolve the issue is to either inspect the Karaf logs for bundle startup or failure messages (which can be inconvenient if the logs are constantly updating as in my case) or inspect the bundle itself.

      I can confirm I have the org.apache.karaf.bundle.springstate bundle installed. This issue was raised following this Stack Overflow post:

      http://stackoverflow.com/questions/32936160/interrogate-osgi-spring-dm-framework-for-a-bundles-dependencies

      The issue can be re-created by deploying a Spring-DM enabled bundle into Karaf which has a dependency on another Spring-DM enabled bundle but which is NOT made available.

      Attachments

        1. springdmtest-1.0-SNAPSHOT.jar
          6 kB
          Kerry Billingham

        Activity

          People

            cschneider Christian Schneider
            kerry Kerry Billingham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: