You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2011/06/03 19:44:35 UTC

[BEWARE] - Messing with OSGi - Be a bit more careful please!

Hi

Guys when you mess anything with OSGi then please run the tests in
camel-itest-karaf and camel-itest-osgi to ensure it still seems
working.
We all know that OSGi can be a ***** to love and hate.

There seems to be some changes in the features file which causes all
the camel-itest-osgi tests to fail (see stacktrace below).

It is very important that these OSGi tests can be run as its our
insurance that Camel works well with OSGi.





java.lang.RuntimeException: org.ops4j.pax.scanner.ScannerException:
Cannot load the feature named 'camel-core' with version '0.0.0'
	at org.ops4j.pax.runner.Run.installBundles(Run.java:506)
	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.junit.runner.JUnitCore.run(JUnitCore.java:157)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:71)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.ops4j.pax.scanner.ScannerException: Cannot load the
feature named 'camel-core' with version '0.0.0'
	at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:148)
	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)
	... 24 more
Caused by: org.ops4j.pax.scanner.ScannerException: Cannot load the
feature named 'spring' with version '[3,4)'
	at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:148)
	at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:131)
	... 28 more
Caused by: org.ops4j.pax.scanner.ScannerException: No feature named
'spring' with version '[3,4)' available
	at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:127)
	... 29 more

-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: [BEWARE] - Messing with OSGi - Be a bit more careful please!

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I found out it seems to be this commit causing the problem
http://svn.apache.org/viewvc?rev=1130196&view=rev

By reverting that commit, the camel-itest-osgi can run again.

The JIRA ticket about this commit is CAMEL-3995.
I will add a comment / reopen that ticket so we can ensure it works
with our testing.

On Fri, Jun 3, 2011 at 7:44 PM, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> Guys when you mess anything with OSGi then please run the tests in
> camel-itest-karaf and camel-itest-osgi to ensure it still seems
> working.
> We all know that OSGi can be a ***** to love and hate.
>
> There seems to be some changes in the features file which causes all
> the camel-itest-osgi tests to fail (see stacktrace below).
>
> It is very important that these OSGi tests can be run as its our
> insurance that Camel works well with OSGi.
>
>
>
>
>
> java.lang.RuntimeException: org.ops4j.pax.scanner.ScannerException:
> Cannot load the feature named 'camel-core' with version '0.0.0'
>        at org.ops4j.pax.runner.Run.installBundles(Run.java:506)
>        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.junit.runner.JUnitCore.run(JUnitCore.java:157)
>        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:71)
>        at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
>        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
> Caused by: org.ops4j.pax.scanner.ScannerException: Cannot load the
> feature named 'camel-core' with version '0.0.0'
>        at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:148)
>        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)
>        ... 24 more
> Caused by: org.ops4j.pax.scanner.ScannerException: Cannot load the
> feature named 'spring' with version '[3,4)'
>        at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:148)
>        at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:131)
>        ... 28 more
> Caused by: org.ops4j.pax.scanner.ScannerException: No feature named
> 'spring' with version '[3,4)' available
>        at org.ops4j.pax.scanner.features.internal.FeaturesScanner.features(FeaturesScanner.java:127)
>        ... 29 more
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/