You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/12/22 09:18:47 UTC

[GitHub] [camel-kamelets] lburgazzoli opened a new issue #651: [json-serialize-action] Unsupported field: unmarshalTypeName

lburgazzoli opened a new issue #651:
URL: https://github.com/apache/camel-kamelets/issues/651


   When using the _json-serialize-action_ action with camel-jbang (camel 3.14.0) with jbang, I get:
   
   ```
   2021-12-22 10:13:58.628  INFO 45033 --- [           main] o.a.c.m.BaseMainSupport                  : Auto-configuration summary
   2021-12-22 10:13:58.630  INFO 45033 --- [           main] o.a.c.m.BaseMainSupport                  :     camel.main.name=CamelJBang
   2021-12-22 10:13:58.630  INFO 45033 --- [           main] o.a.c.m.BaseMainSupport                  :     camel.main.shutdownTimeout=5
   2021-12-22 10:13:58.630  INFO 45033 --- [           main] o.a.c.m.BaseMainSupport                  :     camel.main.routesReloadEnabled=false
   2021-12-22 10:13:58.630  INFO 45033 --- [           main] o.a.c.m.BaseMainSupport                  :     camel.main.routesIncludePattern=file:r.yaml
   2021-12-22 10:13:58.631  INFO 45033 --- [           main] o.a.c.m.BaseMainSupport                  :     camel.component.kamelet.location=classpath:/kamelets,github:apache:camel-kamelets/kamelets
   2021-12-22 10:13:59.162  INFO 45033 --- [           main] o.a.c.m.DownloaderHelper                 : Downloaded dependency: org.apache.camel.kamelets:camel-kamelets-utils:0.5.0 took: 440ms
   2021-12-22 10:13:59.171  WARN 45033 --- [           main] o.a.c.i.e.AbstractCamelContext           : Lifecycle strategy org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler@1a4ae53d vetoed initializing CamelContext (CamelJBang) due to: Failure creating route from template: json-serialize-action
   2021-12-22 10:13:59.171  INFO 45033 --- [           main] o.a.c.i.e.AbstractCamelContext           : CamelContext (CamelJBang) vetoed to not initialize due to Failure creating route from template: json-serialize-action
   org.apache.camel.RuntimeCamelException: org.apache.camel.VetoCamelContextStartException: Failure creating route from template: json-serialize-action
   	at org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:66)
   	at org.apache.camel.support.service.BaseService.doFail(BaseService.java:413)
   	at org.apache.camel.impl.engine.AbstractCamelContext.doFail(AbstractCamelContext.java:3482)
   	at org.apache.camel.support.service.BaseService.fail(BaseService.java:342)
   	at org.apache.camel.impl.engine.AbstractCamelContext.failOnStartup(AbstractCamelContext.java:5026)
   	at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2579)
   	at org.apache.camel.support.service.BaseService.start(BaseService.java:111)
   	at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2586)
   	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:247)
   	at org.apache.camel.main.KameletMain.doStart(KameletMain.java:128)
   	at org.apache.camel.support.service.BaseService.start(BaseService.java:119)
   	at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:233)
   	at org.apache.camel.dsl.jbang.core.commands.Run.call(Run.java:94)
   	at org.apache.camel.dsl.jbang.core.commands.Run.call(Run.java:37)
   	at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
   	at picocli.CommandLine.access$1300(CommandLine.java:145)
   	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
   	at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
   	at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
   	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
   	at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
   	at picocli.CommandLine.execute(CommandLine.java:2078)
   	at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:41)
   	at main.CamelJBang.main(CamelJBang.java:35)
   Caused by: org.apache.camel.VetoCamelContextStartException: Failure creating route from template: json-serialize-action
   	at org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.onContextInitialized(KameletComponent.java:422)
   	at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2870)
   	at org.apache.camel.support.service.BaseService.init(BaseService.java:83)
   	at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2567)
   	... 18 more
   Caused by: java.lang.IllegalArgumentException: Unsupported field: unmarshalTypeName on org.apache.camel.model.dataformat.JsonDataFormat
   ```
   
   The route is:
   
   ´´´yaml
   - from:
       uri: "kamelet:timer-source"
       parameters:
         period: "1s"
         message: '{ "msg": "Hello Json" }'
       steps:
       - to: "kamelet:json-serialize-action"
       - to: "log:info"    
   ´´´
   
   The command to run it is:
   
   ´´´
   jbang -Dcamel.jbang.version=3.14.0 CamelJBang@apache/camel run my-route.yaml
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kamelets] davsclaus commented on issue #651: [json-serialize-action] Unsupported field: unmarshalTypeName

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #651:
URL: https://github.com/apache/camel-kamelets/issues/651#issuecomment-999421818


   The option is renamed
   https://camel.apache.org/manual/camel-3x-upgrade-guide-3_12.html#_data_formats


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kamelets] davsclaus commented on issue #651: [json-serialize-action] Unsupported field: unmarshalTypeName

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #651:
URL: https://github.com/apache/camel-kamelets/issues/651#issuecomment-999421128


   When the 0.6.0 is released we should remember to update the kamelets, eg this one is using
   camel-kamelets-utils:0.5.0 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kamelets] oscerd closed issue #651: [json-serialize-action] Unsupported field: unmarshalTypeName

Posted by GitBox <gi...@apache.org>.
oscerd closed issue #651:
URL: https://github.com/apache/camel-kamelets/issues/651


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kamelets] davsclaus commented on issue #651: [json-serialize-action] Unsupported field: unmarshalTypeName

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #651:
URL: https://github.com/apache/camel-kamelets/issues/651#issuecomment-999425467


   unmarshalTypeName -> unmarshalType


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org