camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade
Date Sat, 20 Sep 2014 17:05:53 GMT
Hi

Don't you have more in the stacktrace or some other error? There is
maybe some NPE that hides this error.

On Fri, Sep 19, 2014 at 1:53 PM, David Karlsen <davidkarlsen@gmail.com> wrote:
> With the config:
> <camel:unmarshal>
>                 <camel:json prettyPrint="true" library="Jackson" />
>             </camel:unmarshal>
>
> I get:
>
> .. because of Failed to set property: prettyPrint on:
> org.apache.camel.component.jackson.JacksonDataFormat@77ab22be. Reason:
> java.lang.IllegalArgumentException: Could not find a suitable setter for
> property: prettyPrint as there isn't a setter method with same type: [null]
> nor type conversion possible: null
>
>         at
> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1364)
>
>         at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:122)
>
>         at
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:327)
>
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
>
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:773)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)
>
>         at
> org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
>
>         at
> org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
> after this upgrade:
>
> -    <camel.version>2.13.2</camel.version>
>
> +    <camel.version>2.14.0</camel.version>
>
>
> jira https://issues.apache.org/jira/browse/CAMEL-7639 says it was fixed for
> 2.14.0 - but it actually worked before on 2.13.2?
> --
> --
> David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message