Re: 2.18.0 SimpleLanguage

2016-10-22 Thread souciance
But it seems you only got that exception when running in Karaf with an
older Camel. So best thing is to test in a clean Karaf then.

On Sat, Oct 22, 2016 at 2:25 AM, Allan C. [via Camel] <
ml-node+s465427n5789112...@n5.nabble.com> wrote:

> 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. <[hidden email]
> <http:///user/SendEmail.jtp?type=node=5789112=0>> wrote:
>
> > This is the route related to the exception thrown:
> >
> > 
> > XMPP entry point
> > 
> > />
> >
> > 
> > 
> > 
> > ${exchangeProperty.operation} == "ack"
> > 
> > 
> > 
> > ${exchangeProperty.operation} == "nack"
> > 
> > 
> > 
> > ${exchangeProperty.operation} == "control"
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 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] <
> >> [hidden email] <http:///user/SendEmail.jtp?type=node=5789112=1>>
> wrote:
> >>
> >> > This is my pom.
> >> >
> >> > 
> >> > 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;>
> >> >
> >> > 4.0.0
> >> >
> >> > com.test.server
> >> > test-server
> >> > 1.0.0
> >> > bundle
> >> > test Server
> >> > test Server
> >> >
> >> > 
> >> > 
> >> > central
> >> > Maven Repository Switchboard
> >> > default
> >> > http://repo1.maven.org/maven2
> >> > 
> >> > false
> >> > 
> >> > 
> >> > 
> >> >
> >> > 
> >> > 
> >> > central
> >> > Maven Plugin Repository
> >> > http://repo1.maven.org/maven2
> >> > default
> >> > 
> >> > false
> >> > 
> >> > 
> >> > never
> >> > 
> >> > 
> >> > 
> >> >
> >> > 
> >> > UTF-8
> >> > 1.8
> >> > 1.8
> >> > 2.15
> >> > 2.3.7
> >> > true
> >> >
> >> > 2.18.0
> >> > 4.0.7
> >> > 3.2.2
> >> > 4.4.1
> >> > 1.1.4c
> >> > 1.1.4c_7
> >> > 
> >> >
> >> > 
> >> > 
> >> > 
> >> >org.apache.felix
> >> >org.apache.felix.framework
> >> > ${felix.version}
> >> > 
> >> >
> >> > 
> >> >org.apache.camel
> >> >camel-core
> >> > ${camel.version}
> >> > 
> >> > 
> >> > org.apache.camel
> >> > camel-mongodb
> >> > ${camel.version}
> >> > 
> >> > 
> >> > org.apache.camel
> >> > camel-http4
> >> >  

Re: 2.18.0 SimpleLanguage

2016-10-21 Thread Allan C.
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:
>
> 
> XMPP entry point
>  />
>
> 
> 
> 
> ${exchangeProperty.operation} == "ack"
> 
> 
> 
> ${exchangeProperty.operation} == "nack"
> 
> 
> 
> ${exchangeProperty.operation} == "control"
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 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.
>> >
>> > 
>> > 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;>
>> >
>> > 4.0.0
>> >
>> > com.test.server
>> > test-server
>> > 1.0.0
>> > bundle
>> > test Server
>> > test Server
>> >
>> > 
>> > 
>> > central
>> > Maven Repository Switchboard
>> > default
>> > http://repo1.maven.org/maven2
>> > 
>> > false
>> > 
>> > 
>> > 
>> >
>> > 
>> > 
>> > central
>> > Maven Plugin Repository
>> > http://repo1.maven.org/maven2
>> > default
>> > 
>> > false
>> > 
>> > 
>> > never
>> > 
>> > 
>> > 
>> >
>> > 
>> > UTF-8
>> > 1.8
>> > 1.8
>> > 2.15
>> > 2.3.7
>> > true
>> >
>> > 2.18.0
>> > 4.0.7
>> > 3.2.2
>> > 4.4.1
>> > 1.1.4c
>> > 1.1.4c_7
>> > 
>> >
>> > 
>> > 
>> > 
>> >org.apache.felix
>> >org.apache.felix.framework
>> > ${felix.version}
>> > 
>> >
>> > 
>> >org.apache.camel
>> >camel-core
>> > ${camel.version}
>> > 
>> > 
>> > org.apache.camel
>> > camel-mongodb
>> > ${camel.version}
>> > 
>> > 
>> > org.apache.camel
>> > camel-http4
>> > ${camel.version}
>> > 
>> > 
>> > org.apache.camel
>> > camel-blueprint
>> > ${camel.version}
>> > 
>> > 
>> >org.apache.camel
>> >camel-xmpp
>> > ${camel.version}
>> > 
>> >
>> >
>> > org.igniterealtime.smack
>> > smack-core
>> > ${smack.version}
>> > 
>> > 
>> > org.igniterealtime.smack
>> > smack-tcp
>> > ${smack.version}
>> > 
>> > 
>> > org.igniterealtime.smack
>> > smack-extensions
>> > ${smack.version}
>> > 
>> > 
>> > 

Re: 2.18.0 SimpleLanguage

2016-10-21 Thread Allan C.
This is the route related to the exception thrown:


XMPP entry point





${exchangeProperty.operation} == "ack"



${exchangeProperty.operation} == "nack"



${exchangeProperty.operation} == "control"











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  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.
> >
> > 
> > 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;>
> >
> > 4.0.0
> >
> > com.test.server
> > test-server
> > 1.0.0
> > bundle
> > test Server
> > test Server
> >
> > 
> > 
> > central
> > Maven Repository Switchboard
> > default
> > http://repo1.maven.org/maven2
> > 
> > false
> > 
> > 
> > 
> >
> > 
> > 
> > central
> > Maven Plugin Repository
> > http://repo1.maven.org/maven2
> > default
> > 
> > false
> > 
> > 
> > never
> > 
> > 
> > 
> >
> > 
> > UTF-8
> > 1.8
> > 1.8
> > 2.15
> > 2.3.7
> > true
> >
> > 2.18.0
> > 4.0.7
> > 3.2.2
> > 4.4.1
> > 1.1.4c
> > 1.1.4c_7
> > 
> >
> > 
> > 
> > 
> >org.apache.felix
> >org.apache.felix.framework
> > ${felix.version}
> > 
> >
> > 
> >org.apache.camel
> >camel-core
> > ${camel.version}
> > 
> > 
> > org.apache.camel
> > camel-mongodb
> > ${camel.version}
> > 
> > 
> > org.apache.camel
> > camel-http4
> > ${camel.version}
> > 
> > 
> > org.apache.camel
> > camel-blueprint
> > ${camel.version}
> > 
> > 
> >org.apache.camel
> >camel-xmpp
> > ${camel.version}
> > 
> >
> >
> > org.igniterealtime.smack
> > smack-core
> > ${smack.version}
> > 
> > 
> > org.igniterealtime.smack
> > smack-tcp
> > ${smack.version}
> > 
> > 
> > org.igniterealtime.smack
> > smack-extensions
> > ${smack.version}
> > 
> > 
> > org.igniterealtime.smack
> > smack-java7
> > ${smack.version}
> > 
> > 
> >xpp3
> >xpp3
> > ${xpp3.version}
> > 
> >
> > org.apache.servicemix.bundles
> > org.apache.servicemix.bundles.xpp3
> > ${xpp3.servicemix.version}
> >
> >
> > 
> > org.mongodb
> > mongo-java-driver
> > ${mongodb.version}
> > 
> > 
> > 
> >
> > 
> > 
> > org.apache.felix
> > org.apache.felix.framework
> > provided
> > 
> >
> > 
> > org.apache.camel
> > camel-blueprint
> > 
> > 
> > org.apache.camel
> > camel-mongodb
> > 
> > 
> > org.apache.camel
> > camel-http4
> > 
> > 
> > org.apache.camel
> > camel-xmpp
> > 
> >
> > 
> > org.igniterealtime.smack
> > smack-core
> > provided
> > 
> > 
> > org.igniterealtime.smack
> > smack-tcp
> > provided
> > 
> > 
> > org.igniterealtime.smack
> > smack-extensions
> > provided
> > 
> > 
> > xpp3
> > xpp3
> > provided
> > 
> > 
> > org.apache.servicemix.bundles
> > org.apache.servicemix.bundles.xpp3
> > provided
> > 
> >
> > 
> > org.mongodb
> > mongo-java-driver
> > provided
> > 
> > 
> >
> > 
> > test-server
> >
> > 
> > 
> > org.apache.felix
> > maven-bundle-plugin
> > ${version.maven-bundle-plugin}
> > true
> > 
> > 
> > 
> > org.jivesoftware.smack,
> > 

Re: 2.18.0 SimpleLanguage

2016-10-21 Thread souciance
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.
>
> 
> 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;>
>
> 4.0.0
>
> com.test.server
> test-server
> 1.0.0
> bundle
> test Server
> test Server
>
> 
> 
> central
> Maven Repository Switchboard
> default
> http://repo1.maven.org/maven2
> 
> false
> 
> 
> 
>
> 
> 
> central
> Maven Plugin Repository
> http://repo1.maven.org/maven2
> default
> 
> false
> 
> 
> never
> 
> 
> 
>
> 
> UTF-8
> 1.8
> 1.8
> 2.15
> 2.3.7
> true
>
> 2.18.0
> 4.0.7
> 3.2.2
> 4.4.1
> 1.1.4c
> 1.1.4c_7
> 
>
> 
> 
> 
>org.apache.felix
>org.apache.felix.framework
> ${felix.version}
> 
>
> 
>org.apache.camel
>camel-core
> ${camel.version}
> 
> 
> org.apache.camel
> camel-mongodb
> ${camel.version}
> 
> 
> org.apache.camel
> camel-http4
> ${camel.version}
> 
> 
> org.apache.camel
> camel-blueprint
> ${camel.version}
> 
> 
>org.apache.camel
>camel-xmpp
> ${camel.version}
> 
>
>
> org.igniterealtime.smack
> smack-core
> ${smack.version}
> 
> 
> org.igniterealtime.smack
> smack-tcp
> ${smack.version}
> 
> 
> org.igniterealtime.smack
> smack-extensions
> ${smack.version}
> 
> 
> org.igniterealtime.smack
> smack-java7
> ${smack.version}
> 
> 
>xpp3
>xpp3
> ${xpp3.version}
> 
>
> org.apache.servicemix.bundles
> org.apache.servicemix.bundles.xpp3
> ${xpp3.servicemix.version}
>
>
> 
> org.mongodb
> mongo-java-driver
> ${mongodb.version}
> 
> 
> 
>
> 
> 
> org.apache.felix
> org.apache.felix.framework
> provided
> 
>
> 
> org.apache.camel
> camel-blueprint
> 
> 
> org.apache.camel
> camel-mongodb
> 
> 
> org.apache.camel
> camel-http4
> 
> 
> org.apache.camel
> camel-xmpp
> 
>
> 
> org.igniterealtime.smack
> smack-core
> provided
> 
> 
> org.igniterealtime.smack
> smack-tcp
> provided
> 
> 
> org.igniterealtime.smack
> smack-extensions
> provided
> 
> 
> xpp3
> xpp3
> provided
> 
> 
> org.apache.servicemix.bundles
> org.apache.servicemix.bundles.xpp3
> provided
> 
>
> 
> org.mongodb
> mongo-java-driver
> provided
> 
> 
>
> 
> test-server
>
> 
> 
> org.apache.felix
> maven-bundle-plugin
> ${version.maven-bundle-plugin}
> true
> 
> 
> 
> 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,
> *
> 
> 
> 
> 
> com.test.server,
> com.test.server.database,
> com.test.server.cm,
> com.test.server.model
> 
> 
>
> org.apache.camel.spi.ComponentResolver;component=cm
>   

Re: 2.18.0 SimpleLanguage

2016-10-21 Thread Allan C.
This is my pom.


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;>

4.0.0

com.test.server
test-server
1.0.0
bundle
test Server
test Server



central
Maven Repository Switchboard
default
http://repo1.maven.org/maven2

false






central
Maven Plugin Repository
http://repo1.maven.org/maven2
default

false


never





UTF-8
1.8
1.8
2.15
2.3.7
true

2.18.0
4.0.7
3.2.2
4.4.1
1.1.4c
1.1.4c_7





   org.apache.felix
   org.apache.felix.framework
${felix.version}



   org.apache.camel
   camel-core
${camel.version}


org.apache.camel
camel-mongodb
${camel.version}


org.apache.camel
camel-http4
${camel.version}


org.apache.camel
camel-blueprint
${camel.version}


   org.apache.camel
   camel-xmpp
${camel.version}


   
org.igniterealtime.smack
smack-core
${smack.version}


org.igniterealtime.smack
smack-tcp
${smack.version}


org.igniterealtime.smack
smack-extensions
${smack.version}


org.igniterealtime.smack
smack-java7
${smack.version}


   xpp3
   xpp3
${xpp3.version}

   
org.apache.servicemix.bundles
org.apache.servicemix.bundles.xpp3
${xpp3.servicemix.version}
   


org.mongodb
mongo-java-driver
${mongodb.version}






org.apache.felix
org.apache.felix.framework
provided



org.apache.camel
camel-blueprint


org.apache.camel
camel-mongodb


org.apache.camel
camel-http4


org.apache.camel
camel-xmpp



org.igniterealtime.smack
smack-core
provided


org.igniterealtime.smack
smack-tcp
provided


org.igniterealtime.smack
smack-extensions
provided


xpp3
xpp3
provided


org.apache.servicemix.bundles
org.apache.servicemix.bundles.xpp3
provided



org.mongodb
mongo-java-driver
provided




test-server



org.apache.felix
maven-bundle-plugin
${version.maven-bundle-plugin}
true



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,
*




com.test.server,
com.test.server.database,
com.test.server.cm,
com.test.server.model



org.apache.camel.spi.ComponentResolver;component=cm


com.test.server.AppBundleActivator








I am running this on Karaf 4.0.6.

Regards,
Allan C.

On Fri, Oct 21, 2016 at 4:55 PM, souciance  wrote:

> How does your pom look?
>
> On Fri, Oct 21, 2016 at 10:41 AM, Allan C. [via Camel] <
> ml-node+s465427n5789070...@n5.nabble.com> 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 

Re: 2.18.0 SimpleLanguage

2016-10-21 Thread souciance
How does your pom look?

On Fri, Oct 21, 2016 at 10:41 AM, Allan C. [via Camel] <
ml-node+s465427n5789070...@n5.nabble.com> 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{${exchangeProperty.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.simple.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-core:2.18.0]
> at
> org.apache.camel.impl.DefaultCamelContext.resolveLanguage(
> DefaultCamelContext.java:2290)[90:org.apache.camel.camel-core: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.createOutputsProcessorImpl(
> 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-tp5789070.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> 
> .
> 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.

2.18.0 SimpleLanguage

2016-10-21 Thread Allan C.
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{${exchangeProperty.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.simple.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-core:2.18.0]
at
org.apache.camel.impl.DefaultCamelContext.resolveLanguage(DefaultCamelContext.java:2290)[90:org.apache.camel.camel-core: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.createOutputsProcessorImpl(ProcessorDefinition.java:451)[90:org.apache.camel.camel-core:2.18.0]

Are there some changes to the SimpleLanguage?

Regards,
Allan C.