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

Shmakov Alexey updated CAMEL-15612:
-----------------------------------
    Description: 
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:

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}");

 

Log out by camel-plugin: String to DOM converted

Log out by shade-plugin: impossible converted String to DOM

 

 

 

 

  was:
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.

 


> 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:
> 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}");
>  
> 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)

Reply via email to