You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/10/01 15:07:00 UTC

[jira] [Resolved] (CAMEL-15612) Unable to find converter when using shade-plugin

     [ https://issues.apache.org/jira/browse/CAMEL-15612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-15612.
---------------------------------
    Resolution: Not A Bug

> Unable to find converter when using shade-plugin
> ------------------------------------------------
>
>                 Key: CAMEL-15612
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15612
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Shmakov Alexey
>            Priority: Major
>         Attachments: converterbug.zip
>
>
> Hello, we use shade-plugin for build and deploy services to k8s.
> After starting the service builded by the maven-shade-plugin, it is impossible to find the standart converter from String to DOM Document. At the same time, when launched through maven-camel-plugin, everything works fine. Example project in attachment.
> Example route:
> {code:java}
> from("timer:foo?period=1000")
>            .setBody(constant("<root>simple xml</root>"))
>           .process(x->{  
>                Document doc = x.getMessage().getBody(Document.class);                          
>                if (doc == null) x.setProperty("MSG", "impossible converted String to DOM");  
>                else x.setProperty("MSG", "String to DOM converted");          
>           })
>          .log("${exchangeProperty.MSG}");
> {code}
>  
> Log out by camel-plugin: _String to DOM converted_
> Log out by shade-plugin: _impossible converted String to DOM_
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)