Hi All,

I am using ServiceMix 2.1 SNAPSHOT version under linux.
I have an esb configuration file in it i am using FilePoller and Groovy and FileWriter components.

The scenario is i am polling a particular directory and then i am storing it on a location and then
passing to another component and then to Groovy component and then writing to some location.

when the navigation is passed immediately after poller to Groovy component and then to remote location
is working fine. but when i change the navigation after polling to two other components and then to Groovy
then it is giving error for reading "inMessage.bodyText" .
i am reading the xml file which is coming to Groovy component via above property.

The exception is

Caused by: groovy.lang.GroovyRuntimeException: Cannot read property: bodyText
        at groovy.lang.MetaClass.getProperty(MetaClass.java:596)
        at org.codehaus.groovy.runtime.Invoker.getProperty(Invoker.java:726)
        at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:194)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:274)
        at Script1.run(Unknown Source)
        at com.sun.script.groovy.GroovyScriptEngine.eval(GroovyScriptEngine.java:118)
        ... 71 more

 when i read like this "inMessage.toString()" and displaying to console it is howing this :

  [EMAIL PROTECTED]: {org.servicemix.file.name=ftp://userme:[EMAIL PROTECTED]/xyz/abc/12345.xml, org.servicemix.content.document=[#document: null]}}

here if we observe "org.servicemix.content.document=[#document: null]}" document is null.

Is this the problem ? anybody help..

how can i get the content of the file ?

Thanks,
uday garikapati




when i am using "inMessage.bodyText" property it is giving some errors.

Reply via email to