The JSON data format and the jsonpath language are different things in
Camel.

You should add the camel-jsonpath module to your classpath, or if you are
on OSGi and Karaf, simply install the feature with the same name.

Hope that helps,
Raúl.
On 25 Aug 2015 22:44, "shuston" <shus...@riverace.com> wrote:

> I am trying to run the following route. The purpose of this is to look in
> the
> body (json) and based on the header's name field, unmarshall to a POJO then
> continue. If there's a better way to accomplish this (there will need to be
> more types, of course) I am very happy to hear that too.
>
>     <dataFormats>
>       <json id="VerifyEmployeeRequest" library="Jackson"
> unmarshalTypeName="my.class.path.VerifyEmployeeRequest"/>
>     </dataFormats>
>
>     <route>
>       <from uri="seda:from_rraa"/>
>       <choice>
>         <when>
>           <jsonpath>$.header[?(@.name ==
> "VerifyEmployeeRequest")]</jsonpath>
>           <unmarshal ref="VerifyEmployeeRequest"/>
>         </when>
>       </choice>
>       <process ref="myMock"/>
>       <to uri="seda:to_rraa"/>
>     </route>
>
> At runtime I get this exception:
> Caused by: org.apache.camel.NoSuchLanguageException: No language could be
> found for: jsonpath
>
> What language is this looking for and how do I get it?
>
> Thank you,
> Steve Huston
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/What-language-is-jsonpath-looking-for-tp5770979.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to