Re: File component fails with charsets

2022-11-03 Thread Ephemeris Lappis
Hello again. Thanks a lot for your feedback and the links to the commits. Indeed, following your way, we've checked the source code from Red-Hat and the camel-core 2.17.0.redhat-630516 we use has a different code, that is not a backport of the Apache's commit, but leads to the same issue. The cod

Re: File component fails with charsets

2022-11-03 Thread Otavio Rodolfo Piske
Thank you for checking this with Camel 3.x! I created a ticket for it: https://issues.apache.org/jira/browse/CAMEL-18685 This behavior of the Charset is configurable and can be adjusted to report (the default), ignore or replace the unmappable character. Kind regards On Thu, Nov 3, 2022 at 4:57

Re: File component fails with charsets

2022-11-03 Thread Zheng Feng
Hi, For Red Hat Fuse, please check https://issues.redhat.com/browse/ENTESB-15441 and https://access.redhat.com/solutions/5649371. I think this could explain this issue. On Fri, Nov 4, 2022 at 12:07 AM Zheng Feng wrote: > I just checked the commits history. And it seems related to this change >

Re: File component fails with charsets

2022-11-03 Thread Zheng Feng
I just checked the commits history. And it seems related to this change [1] which switched to using Files.newBufferedWriter since camel-2.20.0. So your example is failing with camel > 2.20.0 For Red Hat Fuse, it might backport this commit to their products and your customer should check it with the

Re: File component fails with charsets

2022-11-03 Thread ski n
@Otavia I run the test and this also happens on Camel 3.19.0 (JDK11). The result: Caused by: java.nio.charset.UnmappableCharacterException: Input length = 1 I am not expert on charsets, but when a character is not available / unmappable I would expect that it is replaced by for example a '?'. Obv

Routetemplates Feature Request

2022-11-03 Thread Michael Rambichler
Hi all, we are working a lot with RouteTemplates. We often struggle the issue of the Route naming order dependency What do you think? I have already created a JIRA Issue in the backlog: https://issues.apache.org/jira/browse/CAMEL-18683 As a testcase: Name your RouteTemplate: ZTemplate and anothe

Re: File component fails with charsets

2022-11-03 Thread Ephemeris Lappis
Hello again. Perhaps you're right about RedHat Fuse. I can ask our customer to open a case... For other environments where we use pure Karaf+Camel I'm afraid we have to find the solution elsewhere... I don't understand the origin of this issue. In my understanding charsets and streams operations

Re: File component fails with charsets

2022-11-03 Thread Zheng Feng
Well, since you are using Fuse 6.3 and I think it is supported by Red Hat. So it would be better to open a case to get more support from them. On Thu, Nov 3, 2022 at 7:49 PM Ephemeris Lappis wrote: > Hello. > > I'm afraid we can't switch to a newer version. Our customer production > system is Fu

Re: File component fails with charsets

2022-11-03 Thread Ephemeris Lappis
Hello. I'm afraid we can't switch to a newer version. Our customer production system is Fuse 6.3 with its validated Camel version. And other systems are using the versions I've previously listed. For the future we can plan to use the latest Camel versions, but today it's almost impossible... No

Re: File component fails with charsets

2022-11-03 Thread Otavio Rodolfo Piske
Hi, I wouldn't know about the reason for this behavior, but my suggestion is to try with a newer version of Camel. Camel version 2.x is not maintained anymore. Please, can you try with a newer version of Camel? Something like 3.18.3 ... and let us know if this is still a problem? Kind regards O

Re: Route Template and dependency to Spring Boot Component Order initialization

2022-11-03 Thread Michael Rambichler
Hi Raymond, thanks for the investigation, but i don't want to override the spring framework and implement it myself. I really wonder if there is no better possibility for route templates. regards Michael Am Mi., 2. Nov. 2022 um 15:18 Uhr schrieb ski n : > Hi Michael, > > Interesting case. As f

Re: File component fails with charsets

2022-11-03 Thread Ephemeris Lappis
Hello. The issue happens on different versions of Camel with different configurations : - 2.25.4 / karaf 4.3.6 / jdk 1.8 - 2.25.4 / karaf 4.4.1 / jdk 18 - 2.17.0 / fuse 6.3 / jdk 1.8 The last one is the production environment where the issue is critical... What's strange, is that the same little