camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavlo Vasylchenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9100) IncompatibleClassChangeError in CamelBlueprintTestSupport
Date Tue, 25 Aug 2015 08:49:45 GMT
Pavlo Vasylchenko created CAMEL-9100:
----------------------------------------

             Summary: IncompatibleClassChangeError in CamelBlueprintTestSupport
                 Key: CAMEL-9100
                 URL: https://issues.apache.org/jira/browse/CAMEL-9100
             Project: Camel
          Issue Type: Bug
          Components: camel-test
    Affects Versions: 2.15.3
         Environment: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java
-ea -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14 CE.app/Contents/bin"
-Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 14 CE.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ
IDEA 14 CE.app/Contents/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Users/pavlovasylchenko/bin/workspace/tesb-eventlogging/event-logging/event-logging-collector-direct/target/test-classes:/Users/pavlovasylchenko/bin/workspace/tesb-eventlogging/event-logging/event-logging-collector-direct/target/classes:/Users/pavlovasylchenko/bin/workspace/tesb-eventlogging/event-logging/event-logging-common/target/classes:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-core/2.15.3/camel-core-2.15.3.jar:/Users/pavlovasylchenko/.m2/repository/org/osgi/org.osgi.core/4.3.1/org.osgi.core-4.3.1.jar:/Users/pavlovasylchenko/.m2/repository/org/osgi/org.osgi.compendium/4.3.1/org.osgi.compendium-4.3.1.jar:/Users/pavlovasylchenko/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-blueprint/2.15.3/camel-blueprint-2.15.3.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-core-xml/2.15.3/camel-core-xml-2.15.3.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-core-osgi/2.15.3/camel-core-osgi-2.15.3.jar:/Users/pavlovasylchenko/.m2/repository/com/sun/xml/bind/jaxb-core/2.2.11/jaxb-core-2.2.11.jar:/Users/pavlovasylchenko/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-impl-2.2.11.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-jackson/2.15.3/camel-jackson-2.15.3.jar:/Users/pavlovasylchenko/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.4.3/jackson-databind-2.4.3.jar:/Users/pavlovasylchenko/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.4.0/jackson-annotations-2.4.0.jar:/Users/pavlovasylchenko/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.4.3/jackson-core-2.4.3.jar:/Users/pavlovasylchenko/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.4.3/jackson-module-jaxb-annotations-2.4.3.jar:/Users/pavlovasylchenko/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar:/Users/pavlovasylchenko/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar:/Users/pavlovasylchenko/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.5/jcl-over-slf4j-1.7.5.jar:/Users/pavlovasylchenko/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/pavlovasylchenko/.m2/repository/junit/junit/4.11/junit-4.11.jar:/Users/pavlovasylchenko/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-test-blueprint/2.15.3/camel-test-blueprint-2.15.3.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-test/2.15.3/camel-test-2.15.3.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-core/2.15.3/camel-core-2.15.3-tests.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/aries/proxy/org.apache.aries.proxy.api/1.0.1/org.apache.aries.proxy.api-1.0.1.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/aries/proxy/org.apache.aries.proxy.impl/1.0.4/org.apache.aries.proxy.impl-1.0.4.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/aries/blueprint/org.apache.aries.blueprint.api/1.0.1/org.apache.aries.blueprint.api-1.0.1.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/aries/blueprint/org.apache.aries.blueprint.core/1.4.4/org.apache.aries.blueprint.core-1.4.4.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/aries/quiesce/org.apache.aries.quiesce.api/1.0.0/org.apache.aries.quiesce.api-1.0.0.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/aries/blueprint/org.apache.aries.blueprint.cm/1.0.6/org.apache.aries.blueprint.cm-1.0.6.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/aries/org.apache.aries.util/1.1.0/org.apache.aries.util-1.1.0.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/felix/org.apache.felix.connect/0.1.0/org.apache.felix.connect-0.1.0.jar:/Users/pavlovasylchenko/.m2/repository/org/ops4j/pax/swissbox/pax-swissbox-tinybundles/1.3.1/pax-swissbox-tinybundles-1.3.1.jar:/Users/pavlovasylchenko/.m2/repository/org/ops4j/base/ops4j-base-lang/1.2.2/ops4j-base-lang-1.2.2.jar:/Users/pavlovasylchenko/.m2/repository/org/ops4j/base/ops4j-base-io/1.2.2/ops4j-base-io-1.2.2.jar:/Users/pavlovasylchenko/.m2/repository/org/ops4j/base/ops4j-base-monitors/1.2.2/ops4j-base-monitors-1.2.2.jar:/Users/pavlovasylchenko/.m2/repository/org/ops4j/base/ops4j-base-store/1.2.2/ops4j-base-store-1.2.2.jar:/Users/pavlovasylchenko/.m2/repository/org/ops4j/pax/swissbox/pax-swissbox-bnd/1.3.1/pax-swissbox-bnd-1.3.1.jar:/Users/pavlovasylchenko/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar:/Users/pavlovasylchenko/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/felix/org.apache.felix.configadmin/1.8.0/org.apache.felix.configadmin-1.8.0.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/felix/org.apache.felix.fileinstall/3.5.0/org.apache.felix.fileinstall-3.5.0.jar:/Users/pavlovasylchenko/.m2/repository/org/apache/camel/camel-stream/2.15.3/camel-stream-2.15.3.jar"
com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter
-ideVersion5 

            Reporter: Pavlo Vasylchenko


During starting test from my class, that extends CamelBlueprintTestSupport, I got exception:

org.talend.esb.eventlogging.collector.direct.BasicDirectCollectorTest,testBasic
[                          main] CamelBlueprintHelper           INFO  Using Blueprint XML
file: /Users/pavlovasylchenko/bin/workspace/tesb-eventlogging/event-logging/event-logging-collector-direct/target/test-classes/BasicDirectCollectorTest.xml
[                          main] CamelBlueprintHelper           INFO  Using Blueprint XML
file: /Users/pavlovasylchenko/bin/workspace/tesb-eventlogging/event-logging/event-logging-collector-direct/target/classes/OSGI-INF/blueprint/direct-collector-context.xml
[                      Thread-0] RawBuilder                     INFO  Copy thread finished.
[                          main] BasicDirectCollectorTest       INFO  ********************************************************************************
[                          main] BasicDirectCollectorTest       INFO  Testing done: testBasic(org.talend.esb.eventlogging.collector.direct.BasicDirectCollectorTest)
[                          main] BasicDirectCollectorTest       INFO  Took: 0.358 seconds
(358 millis)
[                          main] BasicDirectCollectorTest       INFO  ********************************************************************************
[                          main] CamelBlueprintHelper           INFO  Deleting work directory
target/bundles/1440492089578

java.lang.IncompatibleClassChangeError: Class org.apache.felix.connect.felix.framework.ServiceRegistrationImpl$ServiceReferenceImpl
does not implement the requested interface org.osgi.resource.Capability
	at org.apache.felix.connect.felix.framework.capabilityset.CapabilitySet.addCapability(CapabilitySet.java:63)
	at org.apache.felix.connect.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:124)
	at org.apache.felix.connect.PojoSRBundleContext.registerService(PojoSRBundleContext.java:94)
	at org.apache.felix.connect.PojoSR.<init>(PojoSR.java:239)
	at org.apache.felix.connect.PojoSR.<init>(PojoSR.java:129)
	at org.apache.felix.connect.PojoServiceRegistryFactoryImpl.newPojoServiceRegistry(PojoServiceRegistryFactoryImpl.java:52)
	at org.apache.camel.test.blueprint.CamelBlueprintHelper.createBundleContext(CamelBlueprintHelper.java:143)
	at org.apache.camel.test.blueprint.CamelBlueprintHelper.createBundleContext(CamelBlueprintHelper.java:108)
	at org.apache.camel.test.blueprint.CamelBlueprintTestSupport.createBundleContext(CamelBlueprintTestSupport.java:94)
	at org.apache.camel.test.blueprint.CamelBlueprintTestSupport.setUp(CamelBlueprintTestSupport.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)


Process finished with exit code 255




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message