Karaf
  1. Karaf
  2. KARAF-1554

Integration test failure on FeatureTest around osgi compareTo method

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: karaf-test
    • Labels:
      None

      Activity

      Hide
      Jean-Baptiste Onofré added a comment -

      The stack trace (for both Equinox and Felix) is:

      testFeatures [equinox](org.apache.karaf.shell.itests.FeaturesTest) Time elapsed: 0.156 sec <<< ERROR!
      java.lang.NoSuchMethodError: org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I
      at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeature(FeaturesServiceImpl.java:912)
      at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:125)
      at org.ops4j.pax.scanner.features.internal.FeaturesScanner.scan(FeaturesScanner.java:94)
      at org.ops4j.pax.scanner.internal.ProvisionServiceImpl.scan(ProvisionServiceImpl.java:155)
      at org.ops4j.pax.scanner.internal.ProvisionServiceImpl.scan(ProvisionServiceImpl.java:93)
      at org.ops4j.pax.runner.Run.installBundles(Run.java:481)
      at org.ops4j.pax.runner.Run.start(Run.java:222)
      at org.ops4j.pax.runner.Run.start(Run.java:182)
      at org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.start(PaxRunnerTestContainer.java:282)
      at org.ops4j.pax.exam.junit.internal.JUnit4TestMethod.invoke(JUnit4TestMethod.java:142)
      at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:105)
      at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86)
      at org.ops4j.pax.exam.junit.internal.JUnit4MethodRoadie.runBeforesThenTestThenAfters(JUnit4MethodRoadie.java:60)
      at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)
      at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
      at org.ops4j.pax.exam.junit.JUnit4TestRunner.invokeTestMethod(JUnit4TestRunner.java:246)
      at org.ops4j.pax.exam.junit.JUnit4TestRunner.runMethods(JUnit4TestRunner.java:196)
      at org.ops4j.pax.exam.junit.JUnit4TestRunner$2.run(JUnit4TestRunner.java:186)
      at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
      at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
      at org.ops4j.pax.exam.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:182)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
      at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
      at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
      at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)

      Show
      Jean-Baptiste Onofré added a comment - The stack trace (for both Equinox and Felix) is: testFeatures [equinox] (org.apache.karaf.shell.itests.FeaturesTest) Time elapsed: 0.156 sec <<< ERROR! java.lang.NoSuchMethodError: org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeature(FeaturesServiceImpl.java:912) at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:125) at org.ops4j.pax.scanner.features.internal.FeaturesScanner.scan(FeaturesScanner.java:94) at org.ops4j.pax.scanner.internal.ProvisionServiceImpl.scan(ProvisionServiceImpl.java:155) at org.ops4j.pax.scanner.internal.ProvisionServiceImpl.scan(ProvisionServiceImpl.java:93) at org.ops4j.pax.runner.Run.installBundles(Run.java:481) at org.ops4j.pax.runner.Run.start(Run.java:222) at org.ops4j.pax.runner.Run.start(Run.java:182) at org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.start(PaxRunnerTestContainer.java:282) at org.ops4j.pax.exam.junit.internal.JUnit4TestMethod.invoke(JUnit4TestMethod.java:142) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:105) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86) at org.ops4j.pax.exam.junit.internal.JUnit4MethodRoadie.runBeforesThenTestThenAfters(JUnit4MethodRoadie.java:60) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49) at org.ops4j.pax.exam.junit.JUnit4TestRunner.invokeTestMethod(JUnit4TestRunner.java:246) at org.ops4j.pax.exam.junit.JUnit4TestRunner.runMethods(JUnit4TestRunner.java:196) at org.ops4j.pax.exam.junit.JUnit4TestRunner$2.run(JUnit4TestRunner.java:186) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44) at org.ops4j.pax.exam.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:182) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
      Hide
      Jean-Baptiste Onofré added a comment -

      I'm waiting the feedback from the dev mailing list to see if I refactore the itests.

      Show
      Jean-Baptiste Onofré added a comment - I'm waiting the feedback from the dev mailing list to see if I refactore the itests.
      Hide
      Jean-Baptiste Onofré added a comment -

      Fixed thanks to KARAF-1798

      Show
      Jean-Baptiste Onofré added a comment - Fixed thanks to KARAF-1798

        People

        • Assignee:
          Jean-Baptiste Onofré
          Reporter:
          Jean-Baptiste Onofré
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development