Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-24 Thread vinay
Hi Willem, Sorry about the delayed response Groovy Version: 2.1.3 JVM: 1.7.0_11 Vendor: Oracle Corporation OS: Linux Also, i get following warning. WARNING: Module [camel-groovy] - Unable to load extension class [class org.apache.camel.groovy.extend.CamelGroovyMethods] due to [org/apache

Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-22 Thread Willem jiang
Which version JDK are you using? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (

Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-21 Thread vinay
update.. I get following warning when starting camel... WARNING: Module [camel-groovy] - Unable to load extension class [class org.apach e.camel.groovy.extend.CamelGroovyMethods] due to [org/apache/camel/Expression]. Maybe this module is not supported by your JVM version. regards

Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-21 Thread vinay
Hi Claus, Sorry about the delayed response I tried, adding "{Exchange it -> .}" but didn't worked. .process ({ Exchange it -> println "in processor: ${it.in.body}" it.out.body = it.in.body.toUpperCase() } ) following works... .process ({ Excha

Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-18 Thread Claus Ibsen
Hi Yeah wonder why it cannot infer it as Exchange? You can take a peak at the unit tests of camel-groovy to see some examples https://github.com/apache/camel/tree/master/components/camel-groovy And the docs for groovy dsl is here https://camel.apache.org/groovy-dsl.html Though you can try with

Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-18 Thread vinay
Thanks Claus, that fixed it.but have another problem now, I changed route as follows and I get exception for .process closure class MyRouteBuilder extends org.apache.camel.builder.RouteBuilder { void configure() { from("direct://foo") .to("log://camelLogger?level=INFO") .proces

Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-17 Thread Claus Ibsen
Hi Try with ctx.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS, "true"); On Thu, Jul 18, 2013 at 7:07 AM, vinay wrote: > Hi All, > > I am new to camel, here is what I am trying and is giving me exception. > > $groovy -v > Groovy Version: 2.1.3 JVM: 1.7.0_11 Vendor: Oracle Corporation O

camel error with simple program with camel-core-2.11.1.jar

2013-07-17 Thread vinay
Hi All, I am new to camel, here is what I am trying and is giving me exception. $groovy -v Groovy Version: 2.1.3 JVM: 1.7.0_11 Vendor: Oracle Corporation OS: Linux $groovy CallCallista1.groovy give following exception... [main] INFO camelLogger - Exchange[ExchangePattern:InOut,