Maybe you need to enable stream caching, if the route input is from a streaming source http://camel.apache.org/why-is-my-message-body-empty.html
On Fri, Apr 29, 2016 at 7:51 PM, catshout <gerald.kal...@web.de> wrote: > mailing list seems to swallow the raw parts .. again .. > > Dear community, > > I've following JSON body > > { > "PARTNER": [{ > "APPLICATION": "Filiale", > "ADAPTER": "SAPEIB", > "QUEUE": [], > "PROJECT_ID": "225", > "PROJECT_NAME": "RETFIL010", > "COMMUNICATION": [{ > "VALUE": "C:\\cfs\\host\\inbound", > "NAME": "FILE_DIR" > }, > { > "VALUE": "WBBDLD_#IDOCNR#_#RCVPRN#.xml", > "NAME": "FILE_NAME" > }, > { > "VALUE": "WBBDLD", > "NAME": "MESSAGE_TYPE" > }] > }], > "PROJECT": [{ > "ARCHIVE": "10", > "RETRY": { > "INTERVAL": "0", > "COUNT": "0" > }, > "FLOWQUEUE": "SIB.data.out.queue", > "PROJECT_ID": "225", > "PROJECT_NAME": "RETFIL010" > }], > "GLOBAL_PARAMETER": { > "SOURCE": { > "SYSTEM": "JMS", > "APPLICATION": "SAP PI", > "COMMUNICATION": { > "ADAPTER": "SAPEIB", > "PARAMETER": [{ > "VALUE": "WBBDLD", > "NAME": "MESTYP" > }, > { > "VALUE": "C11100", > "NAME": "SNDPRN" > }] > } > } > } > } > > the expression > > <jsonpath resultType="java.lang.String">$.PARTNER[0].COMMUNICATION[?(@.NAME > == "FILE_DIR")].VALUE</jsonpath> > > gives > > C:\\cfs\\host\\inbound > > in an online JSonPath validator but an empty string in Camel. Any ideas? > > Best > - Gerald > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/JSonPath-expression-works-in-online-validator-but-not-within-Camel-route-tp5781987p5781989.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2