camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Lazebny (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (CAMEL-9100) IncompatibleClassChangeError in CamelBlueprintTestSupport
Date Sun, 06 Sep 2015 12:45:46 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Igor Lazebny updated CAMEL-9100:
--------------------------------
    Comment: was deleted

(was: But Camel 2.15.3 itself has <osgi-version>4.3.1</osgi-version> in dependencies.
Requirement to use 5.x looks stange in this situation.)

> 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
>
> Class:
> {code}
> import org.apache.camel.test.blueprint.CamelBlueprintTestSupport;
> import org.junit.Test;
> public class mytest extends CamelBlueprintTestSupport {
>     @Test
>     public void testBasic() throws Exception {
>     }
>     @Override
>     protected String getBlueprintDescriptor() {
>         return this.getClass().getSimpleName() + ".xml";
>     }
> }
> {code}
> Blueprint:
> {code}
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="
>        http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>     ">
> </blueprint>
> {code}
> During starting test from my class, that extends CamelBlueprintTestSupport, I got exception:
> {code}
> [                          main] CamelBlueprintHelper           INFO  Using Blueprint
XML file: /Users/pavlovasylchenko/bin/workspace/tesb-eventlogging/event-logging/event-logging-collector-direct/target/test-classes/mytest.xml
> [                      Thread-0] RawBuilder                     INFO  Copy thread finished.
> [                          main] mytest                         INFO  ********************************************************************************
> [                          main] mytest                         INFO  Testing done: testBasic(org.talend.esb.eventlogging.collector.direct.mytest)
> [                          main] mytest                         INFO  Took: 0.376 seconds
(376 millis)
> [                          main] mytest                         INFO  ********************************************************************************
> [                          main] CamelBlueprintHelper           INFO  Deleting work directory
target/bundles/1440504089416
> 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)
> .....
> Process finished with exit code 255
> {code}



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

Mime
View raw message