I think what I suspected caused the Exception thrown. It is running as usual after I stopped the 2.16.3 bundles, I didn't remove/uninstall them.
The more intriguing thing is that I then uninstalled the 2.16.3 components, and reinstalled them. Now it is a different expected exception. The original exception related to SimpleLanguage is not thrown anymore. And I also did restart Karaf once. But I think the 2.18.0 SimpleLanguage is not an issue - I can't reproduce the exception anymore. Regards, Allan C. On Fri, Oct 21, 2016 at 9:05 PM, Allan C. <allan...@gmail.com> wrote: > This is the route related to the exception thrown: > > <route id="incomingRoute"> > <description>XMPP entry point</description> > <from uri="xmpp://{{cm.xmpp.host}}:{{cm.xmpp.port}}?doc=true& > password={{cm.xmpp.prop.key}}&user={{cm.xmpp.prop.user}}&resource=test" > /> > > <bean ref="appProcessor" method="deserializeMessage" /> > <choice> > <when> > <simple>${exchangeProperty.operation} == "ack"</simple> > <log message="ACK; Body: ${in.body} Headers: ${in.headers}" /> > </when> > <when> > <simple>${exchangeProperty.operation} == "nack"</simple> > <log message="NACK; Body: ${in.body} Headers: ${in.headers}" /> > </when> > <when> > <simple>${exchangeProperty.operation} == "control"</simple> > <log message="CONTROL; Body: ${in.body} Headers: ${in.headers}" /> > </when> > <otherwise> > <multicast parallelProcessing="true"> > <to uri="direct:mainProcessRoute" /> > <to uri="direct:ackMessageRoute" /> > </multicast> > </otherwise> > </choice> > </route> > > For what it's worth, the container has both 2.18.0 and 2.16.3 installed. > Not sure if this is cause for the conflict. I'll uninstall the 2.16.3 > components and try again maybe tomorrow. > > Regards, > Allan C. > > On Fri, Oct 21, 2016 at 6:51 PM, souciance <souciance.eqdam.rashti@gmail. > com> wrote: > >> Sorry, but can you post the route as well? >> >> On Fri, Oct 21, 2016 at 12:07 PM, Allan C. [via Camel] < >> ml-node+s465427n5789073...@n5.nabble.com> wrote: >> >> > This is my pom. >> > >> > <?xml version="1.0" encoding="UTF-8"?> >> > <project xmlns="http://maven.apache.org/POM/4.0.0" >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >> > http://maven.apache.org/xsd/maven-4.0.0.xsd"> >> > >> > <modelVersion>4.0.0</modelVersion> >> > >> > <groupId>com.test.server</groupId> >> > <artifactId>test-server</artifactId> >> > <version>1.0.0</version> >> > <packaging>bundle</packaging> >> > <name>test Server</name> >> > <description>test Server</description> >> > >> > <repositories> >> > <repository> >> > <id>central</id> >> > <name>Maven Repository Switchboard</name> >> > <layout>default</layout> >> > <url>http://repo1.maven.org/maven2</url> >> > <snapshots> >> > <enabled>false</enabled> >> > </snapshots> >> > </repository> >> > </repositories> >> > >> > <pluginRepositories> >> > <pluginRepository> >> > <id>central</id> >> > <name>Maven Plugin Repository</name> >> > <url>http://repo1.maven.org/maven2</url> >> > <layout>default</layout> >> > <snapshots> >> > <enabled>false</enabled> >> > </snapshots> >> > <releases> >> > <updatePolicy>never</updatePolicy> >> > </releases> >> > </pluginRepository> >> > </pluginRepositories> >> > >> > <properties> >> > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> >> > <maven.compiler.target>1.8</maven.compiler.target> >> > <maven.compiler.source>1.8</maven.compiler.source> >> > <version.maven-surefire-plugin>2.15</version.maven-surefire-plugin> >> > <version.maven-bundle-plugin>2.3.7</version.maven-bundle-plugin> >> > <skipTests>true</skipTests> >> > >> > <camel.version>2.18.0</camel.version> >> > <smack.version>4.0.7</smack.version> >> > <mongodb.version>3.2.2</mongodb.version> >> > <felix.version>4.4.1</felix.version> >> > <xpp3.version>1.1.4c</xpp3.version> >> > <xpp3.servicemix.version>1.1.4c_7</xpp3.servicemix.version> >> > </properties> >> > >> > <dependencyManagement> >> > <dependencies> >> > <dependency> >> > <groupId>org.apache.felix</groupId> >> > <artifactId>org.apache.felix.framework</artifactId> >> > <version>${felix.version}</version> >> > </dependency> >> > >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-core</artifactId> >> > <version>${camel.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-mongodb</artifactId> >> > <version>${camel.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-http4</artifactId> >> > <version>${camel.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-blueprint</artifactId> >> > <version>${camel.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-xmpp</artifactId> >> > <version>${camel.version}</version> >> > </dependency> >> > >> > <dependency> >> > <groupId>org.igniterealtime.smack</groupId> >> > <artifactId>smack-core</artifactId> >> > <version>${smack.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>org.igniterealtime.smack</groupId> >> > <artifactId>smack-tcp</artifactId> >> > <version>${smack.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>org.igniterealtime.smack</groupId> >> > <artifactId>smack-extensions</artifactId> >> > <version>${smack.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>org.igniterealtime.smack</groupId> >> > <artifactId>smack-java7</artifactId> >> > <version>${smack.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>xpp3</groupId> >> > <artifactId>xpp3</artifactId> >> > <version>${xpp3.version}</version> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.servicemix.bundles</groupId> >> > <artifactId>org.apache.servicemix.bundles.xpp3</artifactId> >> > <version>${xpp3.servicemix.version}</version> >> > </dependency> >> > >> > <dependency> >> > <groupId>org.mongodb</groupId> >> > <artifactId>mongo-java-driver</artifactId> >> > <version>${mongodb.version}</version> >> > </dependency> >> > </dependencies> >> > </dependencyManagement> >> > >> > <dependencies> >> > <dependency> >> > <groupId>org.apache.felix</groupId> >> > <artifactId>org.apache.felix.framework</artifactId> >> > <scope>provided</scope> >> > </dependency> >> > >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-blueprint</artifactId> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-mongodb</artifactId> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-http4</artifactId> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.camel</groupId> >> > <artifactId>camel-xmpp</artifactId> >> > </dependency> >> > >> > <dependency> >> > <groupId>org.igniterealtime.smack</groupId> >> > <artifactId>smack-core</artifactId> >> > <scope>provided</scope> >> > </dependency> >> > <dependency> >> > <groupId>org.igniterealtime.smack</groupId> >> > <artifactId>smack-tcp</artifactId> >> > <scope>provided</scope> >> > </dependency> >> > <dependency> >> > <groupId>org.igniterealtime.smack</groupId> >> > <artifactId>smack-extensions</artifactId> >> > <scope>provided</scope> >> > </dependency> >> > <dependency> >> > <groupId>xpp3</groupId> >> > <artifactId>xpp3</artifactId> >> > <scope>provided</scope> >> > </dependency> >> > <dependency> >> > <groupId>org.apache.servicemix.bundles</groupId> >> > <artifactId>org.apache.servicemix.bundles.xpp3</artifactId> >> > <scope>provided</scope> >> > </dependency> >> > >> > <dependency> >> > <groupId>org.mongodb</groupId> >> > <artifactId>mongo-java-driver</artifactId> >> > <scope>provided</scope> >> > </dependency> >> > </dependencies> >> > >> > <build> >> > <finalName>test-server</finalName> >> > >> > <plugins> >> > <plugin> >> > <groupId>org.apache.felix</groupId> >> > <artifactId>maven-bundle-plugin</artifactId> >> > <version>${version.maven-bundle-plugin}</version> >> > <extensions>true</extensions> >> > <configuration> >> > <instructions> >> > <Import-Package> >> > org.jivesoftware.smack, >> > org.jivesoftware.smack.filter, >> > org.jivesoftware.smack.packet, >> > org.jivesoftware.smack.provider, >> > org.jivesoftware.smack.util, >> > org.jivesoftware.smack.tcp, >> > org.jivesoftware.smackx.jiveproperties, >> > org.jivesoftware.smackx.muc, >> > org.jivesoftware.smackx.pubsub.packet, >> > * >> > </Import-Package> >> > <Import-Service> >> > </Import-Service> >> > <Export-Package> >> > com.test.server, >> > com.test.server.database, >> > com.test.server.cm, >> > com.test.server.model >> > </Export-Package> >> > <Export-Service> >> > >> > org.apache.camel.spi.ComponentResolver;component=cm >> > </Export-Service> >> > <Bundle-Activator> >> > com.test.server.AppBundleActivator >> > </Bundle-Activator> >> > </instructions> >> > </configuration> >> > </plugin> >> > </plugins> >> > </build> >> > </project> >> > >> > I am running this on Karaf 4.0.6. >> > >> > Regards, >> > Allan C. >> > >> > On Fri, Oct 21, 2016 at 4:55 PM, souciance <[hidden email] >> > <http:///user/SendEmail.jtp?type=node&node=5789073&i=0> >> > > wrote: >> > >> > > How does your pom look? >> > > >> > > On Fri, Oct 21, 2016 at 10:41 AM, Allan C. [via Camel] < >> > > [hidden email] <http:///user/SendEmail.jtp?ty >> pe=node&node=5789073&i=1>> >> > wrote: >> > > >> > > > Hi all, >> > > > >> > > > I am trying to upgrade camel version from 2.16.3 to 2.18.0 to test >> out >> > > > some >> > > > features. But when the routes are starting, I got the following >> > > exception: >> > > > >> > > > org.apache.camel.FailedToCreateRouteException: Failed to create >> route >> > > > incomingRoute at: >>> Choice[[When[simple{${exchange >> Property.operation} >> > >> > > > == >> > > > "ack"} -> [Log[ACK; Body: ${in.body} Headers: ${in.headers}]]], >> > > > When[simple{${exchangeProperty.operation} == "nack"} -> [Log[NACK; >> > Body: >> > > > ${in.body} Headers: ${in.headers}]]], >> > > > When[simple{${exchangeProperty.operation} == "control"} -> >> > [Log[CONTROL; >> > > > Body: ${in.body} Headers: ${in.headers}]]]] >> > > > Otherwise[[Multicast[[To[direct:mainProcessRoute], >> > > > To[direct:ackMessageRoute]]]]]] <<< in route: >> > > > Route(incomingRoute)[[From[xmpp://{{cm.xmpp.host}}:{{cm.xmpp... >> > because >> > > > of >> > > > Resolving language: simple detected type conflict: Not a Language >> > > > implementation. Found: org.apache.camel.language.simp >> le.SimpleLanguage >> > >> > > > . >> > > > . >> > > > . >> > > > Caused by: java.lang.IllegalArgumentException: Resolving language: >> > > simple >> > > > detected type conflict: Not a Language implementation. Found: >> > > > org.apache.camel.language.simple.SimpleLanguage >> > > > at >> > > > org.apache.camel.impl.DefaultLanguageResolver.resolveLanguage( >> > > > DefaultLanguageResolver.java:64)[90:org.apache.camel.camel-c >> ore:2.18.0] >> > >> > > > at >> > > > org.apache.camel.impl.DefaultCamelContext.resolveLanguage( >> > > > DefaultCamelContext.java:2290)[90:org.apache.camel.camel-cor >> e:2.18.0] >> > > > at >> > > > org.apache.camel.model.LogDefinition.createProcessor( >> > > > LogDefinition.java:85)[90:org.apache.camel.camel-core:2.18.0] >> > > > at >> > > > org.apache.camel.model.ProcessorDefinition.createProcessor( >> > > > ProcessorDefinition.java:488)[90:org.apache.camel.camel-core >> :2.18.0] >> > > > at >> > > > org.apache.camel.model.ProcessorDefinition.createOutputsProc >> essorImpl( >> > >> > > > ProcessorDefinition.java:451)[90:org.apache.camel.camel-core >> :2.18.0] >> > > > >> > > > Are there some changes to the SimpleLanguage? >> > > > >> > > > Regards, >> > > > Allan C. >> > > > >> > > > >> > > > ------------------------------ >> > > > If you reply to this email, your message will be added to the >> > discussion >> > > > below: >> > > > http://camel.465427.n5.nabble.com/2-18-0-SimpleLanguage-tp57 >> 89070.html >> > > > To start a new topic under Camel - Users, email >> > > > [hidden email] <http:///user/SendEmail.jtp?ty >> pe=node&node=5789073&i=2> >> > > > To unsubscribe from Camel - Users, click here >> > > > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro= >> > > unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aU >> > > BnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=> >> > > > . >> > > > NAML >> > > > <http://camel.465427.n5.nabble.com/template/ >> > NamlServlet.jtp?macro=macro_ >> > > viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble. >> naml.namespaces. >> > >> > > BasicNamespace-nabble.view.web.template.NabbleNamespace- >> > > nabble.view.web.template.NodeNamespace&breadcrumbs= >> > > notify_subscribers%21nabble%3Aemail.naml-instant_emails% >> > > 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > >> > > >> > > >> > > >> > > >> > > -- >> > > View this message in context: http://camel.465427.n5.nabble. >> > > com/2-18-0-SimpleLanguage-tp5789070p5789072.html >> > > Sent from the Camel - Users mailing list archive at Nabble.com. >> > >> > >> > ------------------------------ >> > If you reply to this email, your message will be added to the discussion >> > below: >> > http://camel.465427.n5.nabble.com/2-18-0-SimpleLanguage- >> > tp5789070p5789073.html >> > To start a new topic under Camel - Users, email >> > ml-node+s465427n465428...@n5.nabble.com >> > To unsubscribe from Camel - Users, click here >> > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp? >> macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlL >> mVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=> >> > . >> > NAML >> > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp? >> macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml& >> base=nabble.naml.namespaces.BasicNamespace-nabble.view.web. >> template.NabbleNamespace-nabble.view.web.template.NodeNamesp >> ace&breadcrumbs=notify_subscribers%21nabble%3Aemail. >> naml-instant_emails%21nabble%3Aemail.naml-send_instant_ >> email%21nabble%3Aemail.naml> >> > >> >> >> >> >> -- >> View this message in context: http://camel.465427.n5.nabble. >> com/2-18-0-SimpleLanguage-tp5789070p5789076.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > >