Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-15639

pluginVersion 2 plugins (OSGi) fail to load due to unresolved dependencies in integration test

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: Medium Medium
    • None
    • 2.10, 2.10.1, 2.10.2
    • None
    • Ubuntu Linux 8.04/8.10, x32/x64, Java 5/6

      When starting the integration test for my plugin (Newcode macro) using the atlassian PDK , the plugin fails to load due to unresolved dependencies in the OSGi environment. However, when using pluginVersion="1" (or no plugin version, so no OSGi), the exact same error messages show up in the log file, so the problems does not seem to be in my plugin, but in the confluence environment.

      Stacktrace in output.log during integration testing:

      2009-05-04 22:40:28,348 ERROR [FelixDispatchQueue] [osgi.container.felix.FelixOsgiContainerManager] frameworkEvent Framework error in bundle org.springframework.bundle.osgi.extender
      org.osgi.framework.BundleException: Unresolved constraint in bundle 2: package; (&(package=org.apache.log4j)(version>=1.2.15)(!(version>=2.0.0)))
      at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1725)
      at org.apache.felix.framework.Felix._startBundle(Felix.java:1588)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1541)
      at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1135)
      at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:267)
      at java.lang.Thread.run(Thread.java:619)

      Originally reported @ http://confluence.atlassian.com/display/DOC/Converting+a+Plugin+to+Plugin+Framework+2?focusedCommentId=188514384#comment-188514384

      This bug can easily be reproduced using the Newcode macro. Version 1.9.0 is probably the best to test it with, as this is the smallest version, without a lot of extra features.

        1. func-test-2.1.4-20090520.080140-57.pom
          10 kB
        2. output.log
          629 kB
        3. output-test-lib-2.1.4.log
          21 kB
        4. output-test-lib-2.1.5-SNAPSHOT.log
          11 kB

            [CONFSERVER-15639] pluginVersion 2 plugins (OSGi) fail to load due to unresolved dependencies in integration test

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897825 ] New: CONFSERVER Bug Workflow v4 [ 2992373 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789741 ] New: JAC Bug Workflow v3 [ 2897825 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2719797 ] New: JAC Bug Workflow v2 [ 2789741 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2388923 ] New: JAC Bug Workflow [ 2719797 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2266061 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2388923 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2209642 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2266061 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2194871 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2209642 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1929199 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2194871 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1730609 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1929199 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1694613 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1730609 ]

              akazatchkov Anatoli
              0f3f03f5c1d9 Jeroen Benckhuijsen
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: