Re: Forwarding PDF files to HTTP endpoint gives TypeConversionException

2024-11-25 Thread Jeremy Ross
I don’t see why that exception would be thrown, from the example you provided. But the example you provided is just from the docs. So, if you could share more of your actual route/processor, it would be easier to help. On Nov 25, 2024 at 2:05:38 PM, Penagos Jaime < jaime.pena...@ub.uni-muenchen.d

Re: Camel use case

2024-01-31 Thread Jeremy Ross
"seda:foo") > > Any insight on whether the loop EIP is safe to use (no longer suffers from > memory overrun) here is greatly appreciated. > > On Wed, Jan 31, 2024 at 8:45 AM Jeremy Ross > wrote: > > > If you keep copy=false (default), loop sends the same exchange

Re: Camel use case

2024-01-31 Thread Jeremy Ross
loop EIP crossed my mind as well, but I'm uncertain > about the feasibility of manipulating headers for each iteration. > > I appreciate your concern. > > Thank you. > > Le lun. 29 janv. 2024 à 18:35, Jeremy Ross a > écrit : > > > > To achieve thi

Re: How to stop aggregate on exception

2024-01-31 Thread Jeremy Ross
Aditya > > On Wed, 31 Jan 2024, 12:58 am Jeremy Ross, > wrote: > > > Using a standalone aggregator as you've configured will result in the > > aggregations completing in a separate thread with the side effect that > the > > aggregated exchange is completely disconn

Re: How to stop aggregate on exception

2024-01-30 Thread Jeremy Ross
Using a standalone aggregator as you've configured will result in the aggregations completing in a separate thread with the side effect that the aggregated exchange is completely disconnected from the split. And you're correct that if you use the splitter's aggregation slot that you don't get to p

Re: Camel use case

2024-01-29 Thread Jeremy Ross
> To achieve this, I iterated through the route X times, each time executing a query with a different offset. I utilized Camel headers to store the offset and other flags, as mentioned in my initial email. This is a perfectly reasonable approach IMO. > Does Camel have any built-in functionality t

Re: Camel JMS headers not updated by producer

2024-01-07 Thread Jeremy Ross
I think Camel only sets those headers when a JMS message is received. https://camel.apache.org/components/4.0.x/jms-component.html#_message_format_when_receiving On Thu, Jan 4, 2024 at 5:56 AM Ephemeris Lappis wrote: > Hello. > > I've observed that some JMS headers are not updated after a messa

Re: How to use ZipSplitter to uncompress GBK encoding zip file

2023-06-24 Thread Jeremy Ross
It appears that the camel-zipfile data format does not support non-UTF-8 file names. However, the InputStream produced should be character set agnostic. So, it's up to you to do something with that stream that involves a character set, such as a Reader, or the Convert Body To EIP ( https://camel.ap

Re: Using specificAvroReader with Camel JBang and kafka

2023-03-19 Thread Jeremy Ross
https://issues.apache.org/jira/projects/CAMEL/issues On Fri, Mar 17, 2023 at 1:17 PM Ramesh Venkitaswaran < venkitaswa...@gmail.com> wrote: > Sure. Where would I make this ticket at? Is there a JIRA board link > that I can get? > -- > Ramesh > > On Fri, Mar 17, 2023 at 11:02 AM Claus Ibsen > wro

Re: Deployment Issue

2023-02-27 Thread Jeremy Ross
Looks like the attachment didn't come through. On Mon, Feb 27, 2023 at 4:07 AM KOPPARTHI Prasad V < prasad.koppar...@hexagon.com> wrote: > Hi Team, > > We are using the Camel 3.20.1 version. > > We have used https and the Jetty components; our aim is to hit the rest > endpoint. We are able to run

Re: how to create Camel HTTP route with async handling

2022-09-26 Thread Jeremy Ross
The REST component as well. https://camel.apache.org/components/3.18.x/rest-component.html On Mon, Sep 26, 2022 at 8:40 AM ski n wrote: > I would check the Jetty component: > > https://camel.apache.org/components/3.18.x/jetty-component.html > > The Jetty component can consume HTTP requests and

Re: Encrypt header value.

2022-09-10 Thread Jeremy Ross
Yep. On Sat, Sep 10, 2022 at 3:39 PM ski n wrote: > @Jeremy Don't you mean Jasypt: > > https://camel.apache.org/components/3.18.x/others/jasypt.html > > On Sat, Sep 10, 2022 at 7:12 PM Jeremy Ross > wrote: > > > Have you looked at the jsypt component? With it,

Re: Encrypt header value.

2022-09-10 Thread Jeremy Ross
Have you looked at the jsypt component? With it, you can store your password encrypted, then access it using property placeholder syntax: ftps://?password={{my_ftp_password}} Of course, if your file system security is sufficient, you can skip the jsypt part. Everything else would be the same. O

Re: Camel File Component avoid rollback on specific cases

2022-08-18 Thread Jeremy Ross
You can either use noop=true and have your route move the file after done processing, or you could try adding an onComplete() that moves the file from the error folder back into the original folder. On Thu, Aug 18, 2022 at 12:27 AM Alexander Lex wrote: > Hi, > > I am using the camel file compone

Re: SFTP fails after upgrade to Camel 3.18.0

2022-08-10 Thread Jeremy Ross
This was on Java 11 btw. On Wed, Aug 10, 2022 at 11:38 AM Jeremy Ross wrote: > Also, there are endpoint parameters for these settings, but I can't get > camel to accept them: > > There are 2 parameters that couldn't be set on the endpoint. Check the uri > if the param

Re: SFTP fails after upgrade to Camel 3.18.0

2022-08-10 Thread Jeremy Ross
> On Tue, Aug 9, 2022 at 10:37 PM Jeremy Ross > wrote: > > > I had to enable ssh-rsa keys and the following to KEXs that the server > > supported. Added this to a static block in my application. > > > > JSch.setConfig("server_host_key", JSch.getConfig(&qu

Re: SFTP fails after upgrade to Camel 3.18.0

2022-08-09 Thread Jeremy Ross
I had to enable ssh-rsa keys and the following to KEXs that the server supported. Added this to a static block in my application. JSch.setConfig("server_host_key", JSch.getConfig("server_host_key") + ",ssh-rsa"); JSch.setConfig("PubkeyAcceptedAlgorithms", JSch.getConfig( "PubkeyAcceptedAlgorithms"

Re: CamelSqlGeneratedKeyRows is not updated

2022-03-28 Thread Jeremy Ross
oot cause is the same. > The solution suggested by Jeremy should work; you need to insert > .removeHeader("CamelSqlGeneratedKeyRows") > before your second ".to("sql:INSERT..."). > > Regards, > Karen > > > On 24/03/2022 20:07, Je

Re: CamelSqlGeneratedKeyRows is not updated

2022-03-24 Thread Jeremy Ross
To clarify, I'm recommending *clearing* the CamelSqlGeneratedKeyRows header prior to the sql call. On Wed, Mar 23, 2022 at 9:34 PM Reto Peter wrote: > Hi > > I tried both with no success > a) it works as normal, I get the keys back if I only run the 2nd select > b) I set the Header before first

Re: CamelSqlGeneratedKeyRows is not updated

2022-03-23 Thread Jeremy Ross
FYI, I think I worked around this by removing the CamelSqlGeneratedKeyRows header prior to a sql call. On Wed, Mar 23, 2022 at 4:42 AM Reto Peter wrote: > Ya sorry. > Camel version: 3.15.0 > > On 23 March 2022 17:03:19 Andrea Cosentino wrote: > > Report the camel version, please > > Il mer 23 m

Re: Can't test Camel processor

2022-03-06 Thread Jeremy Ross
What do you mean by "Processor is not starting"? Is there an exception? Usually when I want to truly *unit* test a processor, I simply instantiate the processor in a test method, then pass an exchange to its `process` method that contains whatever headers and body are needed to exercise the proces

Re: sharing exchange properties in mutlicast route

2022-02-28 Thread Jeremy Ross
You could also set a map instance in a header or exchange property and any of the changes to map entries would be visible across sub routes and siblings. On Fri, Feb 25, 2022 at 8:04 PM Rohan Emmanuel wrote: > Thank you Claus so much for your quick reply.Much appreciated. > > On Fri, 25 Feb 2022

Re: Seda doesn't appear to be locking when queue is full

2022-02-03 Thread Jeremy Ross
I think you need to use blockWhenFull on the producer, so in your to() call. On Thu, Feb 3, 2022 at 10:33 AM Craig Taylor wrote: > I've got a scenario where I need to iterate through all users within a > system and send them to a remote as part of a routine "sync" to ensure that > both systems a

Re: Sending exchanges in parallel within a component?

2022-01-27 Thread Jeremy Ross
I replied to you a few days ago on Zulip. I'm not quite sure what you mean by "component". Is this a custom Component you're creating? On Tue, Jan 25, 2022 at 3:12 PM Steve973 wrote: > Hello. I sent another message a few days ago, but perhaps it got lost in > the shuffle. I am trying to send e

Re: Aggregator issue

2021-11-19 Thread Jeremy Ross
Your diagram came across jumbled, so hard for me to read it. But your AggregationStrategy is responsible for handling and/or propagating exceptions. If it swallows an exception, and doesn't pass it on via the "newExchange", it won't be available to the route's error handler. On Fri, Nov 19, 2021 a

Re: Oath2 Component?

2021-09-28 Thread Jeremy Ross
it reuses the token. > > > > Raymond > > > > Op di 28 sep. 2021 om 17:16 schreef Andrea Cosentino >: > > > > > I think he is talking about a generic component which it's not the case > > for > > > the moment > > > > >

Re: Oath2 Component?

2021-09-28 Thread Jeremy Ross
I believe some components handle OAuth (somewhat) transparently. What's the use case? On Fri, Sep 24, 2021 at 12:20 PM Andrea Cosentino wrote: > Not at the moment. > > Il giorno ven 24 set 2021 alle ore 19:11 Riggy Software < > riggy-softw...@hotmail.com> ha scritto: > > > Hi, > > > > Does Camel

Re: Camel 3.4 documentation

2021-09-28 Thread Jeremy Ross
I like this idea, but have no idea what's involved in making it happen. On Tue, Sep 28, 2021 at 8:06 AM Calle Andersson wrote: > Sure, it is possible to find the documentation in the source code but > unfortunately it isn't as easy to browse the documentation there as it is > on the documentatio

Re: Announcement: New component for creating PDFs from HTML and CSS.

2021-07-19 Thread Jeremy Ross
; > zoran > > On Mon, Jul 19, 2021 at 5:28 PM Jeremy Ross > wrote: > > > > Hi Claus, > > > > I am using this component in production. I'll add to the external > component > > section. > > > > On Mon, Jul 19, 2021 at 10:12 AM Claus Ibsen

Re: Announcement: New component for creating PDFs from HTML and CSS.

2021-07-19 Thread Jeremy Ross
link to it at the Camel website from the list of > external components > https://camel.apache.org/community/user-stories/ > > On Mon, Jul 19, 2021 at 4:23 PM Jeremy Ross > wrote: > > > > Hi all, > > > > I've created a new component called camel-openhtmltopd

Announcement: New component for creating PDFs from HTML and CSS.

2021-07-19 Thread Jeremy Ross
Hi all, I've created a new component called camel-openhtmltopdf that will enable your integrations to generate beautiful PDFs from HTML, CSS, images, etc. Due to license incompatibility with transitive dependencies, it cannot be included in the official Camel project. Below are links to the projec

Re: Access camel internal cache

2021-04-12 Thread Jeremy Ross
Can you provide more details on how you'll be using this cache? On Thu, Apr 8, 2021 at 9:57 AM Gv, Shivakumar wrote: > Hi Team, > > How can I access camel internal cache to fetch/store key value pairs > .which I have to reload every 24 hrs . > > Thanks, > Shiva >

Re: salesforce connection with camel

2021-04-09 Thread Jeremy Ross
You don't have to specify grant_type. Your authentication failed. If you're using password auth, make sure your password is actually password+API token. On Thu, Apr 8, 2021 at 10:49 AM WEIQUAN YUAN wrote: > It is proxy issue, now I moved application out of proxy env , the problem > fixed. > but

Re: Salesforce streaming issue

2020-12-16 Thread Jeremy Ross
Nice work! On Wed, Dec 16, 2020 at 8:44 AM Zoran Regvart wrote: > Hi Cameleers, > I've created a PR[1], which I think fixes the problem, I encourage > folk to provide feedback and test on your end if possible. > > I've tested with the `SubscriptionHelperIntegrationTest`. And manually by: > > 1/

Testing camel-main

2020-12-01 Thread Jeremy Ross
What's the best way to test a simple camel-main project? I'm trying to use org.apache.camel.test.junit5.CamelTestSupport, but I can't figure out how to get it to load application.properties like Main does. TIA!

Intellij will only install very old version of Camel plugin

2020-10-13 Thread Jeremy Ross
Hi, I'm wondering if anyone else is seeing this. I'm running Intellij 2020.2.3 (Build #IU-202.7660.26), and Intellij will only let me install version 0.5.6 of the Camel plugin, which is really old. Latest version is 0.6.4. I tried to download the plugin and install from disk, but I got this: [ima

Re: Camel JDBC or SQL component vs SpringJDBCTemplate

2020-08-12 Thread Jeremy Ross
The SQL component is backed by spring-jdbc, and I believe it uses JdbcTemplate extensively under the hood. I haven't compared performance of SQL vs JDBC components, but a further benefit of the SQL component is that it can be used in Camel's transaction support. On Fri, Aug 7, 2020 at 10:56 PM WEI

Re: Unmarshal Map to POJO with Jackson data format

2020-08-03 Thread Jeremy Ross
sonLibrary.Jackson) .unmarshal().json(JsonLibrary.Jackson, > MyClass.class) > > Regards, > Sneharghya > > > On Mon, 3 Aug 2020, 10:25 pm Jeremy Ross, wrote: > > > Howdy, > > > > Is it possible to unmarshal from a Map to POJO w

Re: Usage of CamelContext

2020-08-03 Thread Jeremy Ross
> > Hey Paul, I've yet to use multiple contexts in a single integration. But I've always thought to myself that when I start running out of endpoint "namespace" (since a context is basically a global namespace), then maybe that's a good test for having multiple contexts. Also, contexts can be ind

Unmarshal Map to POJO with Jackson data format

2020-08-03 Thread Jeremy Ross
Howdy, Is it possible to unmarshal from a Map to POJO with the Jackson data format? When I pass it a map, I get: org.apache.camel.InvalidPayloadException: No body available of type: java.io.InputStream but has value... ObjectMapper#convertValue supports this, but I'm not sure how to play nice wi

Re: hash (pound sign) notation in Camel 3.x

2020-06-09 Thread Jeremy Ross
See this FAQ entry for more info: https://camel.apache.org/manual/latest/faq/how-do-i-configure-endpoints.html#HowdoIconfigureendpoints-ReferringbeansfromEndpointURIs On Mon, Jun 8, 2020 at 3:06 AM Vojtech Fried wrote: > Thanks. Works perfectly. > > > From: Claus

Re: Camel plugin no longer shows up in hawtio

2020-06-05 Thread Jeremy Ross
onger shows up in hawtio > > Might be a version issue. I had the same problem and that is what it was. > Also, debugging is not there unless I drop back camel versions. > > On Thu, Jun 4, 2020, 7:38 PM Jeremy Ross wrote: > > > Hey camel folks, > > > > At some poi

Camel plugin no longer shows up in hawtio

2020-06-04 Thread Jeremy Ross
Hey camel folks, At some point the Camel plugin stopped showing up in hawtio. I can access hawtio just fine, but Camel is not in the menu navigation. I don't recall seeing anything in the upgrade guides about it. Did I miss something? Thanks, Jeremy

Re: GsonDataFormat "useList" option?

2020-06-02 Thread Jeremy Ross
catch (DateTimeParseException e) { throw new JsonParseException(e); } throw new IllegalArgumentException("unknown type: " + type); } }).create(); gsonDataFormat = new GsonDataFormat(gson, new TypeToken>(){}.getType()); On Tue, Jun 2, 2020 at 12:12 PM Jeremy R

Re: GsonDataFormat "useList" option?

2020-06-02 Thread Jeremy Ross
kus/component/dataformats/json/JsonDataformatsRoute.java#L58..L61 > > hth, > Alex > > On Tue, Jun 2, 2020 at 6:42 PM Jeremy Ross > wrote: > > > Hi All, > > > > Is it possible to unmarshal a List of some type with the GsonDataFormat? > > JacksonDataFormat has

GsonDataFormat "useList" option?

2020-06-02 Thread Jeremy Ross
Hi All, Is it possible to unmarshal a List of some type with the GsonDataFormat? JacksonDataFormat has this options, and lots others, but not seeing any such option for gson. Thanks!

GSON unmarshalTypeName

2020-05-22 Thread Jeremy Ross
Hi all, Using the GSON data format, is it possible to specify unmarshalTypeName for each invocation of unmarshal()?

Re: REST API - Basic Authentication?

2020-05-13 Thread Jeremy Ross
I discovered that exchange headers are used for HTTP headers. Setting a header called `Authorization` on the exchange to `Basic ` worked for me. On Tue, May 12, 2020 at 11:55 AM Alex Soto wrote: > Hello, > > I am facing the same issue, using Camel Rest DSL on top of Servlet, > Blueprint, Karaf,

Re: How to configure basic auth w/ REST Swagger

2020-05-08 Thread Jeremy Ross
I discovered I can just set an "Authorization" header on the exchange, which the http component seems happy to include in the http request. On Fri, May 8, 2020 at 2:19 PM Jeremy Ross wrote: > Hi, > > I can't seem to find a way to configure basic auth with the REST Sw

How to configure basic auth w/ REST Swagger

2020-05-08 Thread Jeremy Ross
Hi, I can't seem to find a way to configure basic auth with the REST Swagger component (using http component under the hood). Any pointers?

blocked thread in salesforce producer

2020-05-08 Thread Jeremy Ross
Hi, Any idea why I'd get a blocked thread in the salesforce component? 2020-05-08 10:25:01.355 WARN 92020 --- [SpringContextShutdownHook] .c.i.e.DefaultAsyncProcessorAwaitManager : Interrupted while waiting for asynchronous callback, will release the following blocked thread which was waiting fo

Cannot determine current route from Exchange

2020-05-02 Thread Jeremy Ross
Hi, I've started seeing "Cannot determine current route from Exchange" and "will fallback and use first error handler" when an exception is thrown inside a splitter. I haven't been able to come up with a simple repro yet, but want to check with you all and see if anyone knows what would cause this

Stub component usage patterns

2020-01-13 Thread Jeremy Ross
Hi all, I'm not sure I understand how the Stub component is intended to be used. The canonical example seems to be a JMS consumer in production. Camel in Action says "stub any Camel endpoint by prefixing the endpoint with stub:". Cool, well if I'm testing production routes, I don't want to modify

Re: Stack trace after upgrading to Camel 3.0

2020-01-10 Thread Jeremy Ross
Camel 3 requires Java 11, or will soon. Also, make sure you've made necessary changes outlined here https://camel.apache.org/manual/latest/camel-3-migration-guide.html. On Fri, Jan 10, 2020 at 7:49 AM Tom Coudyzer wrote: > Hi, > > Probably a stupid question but seems can't find a solution. I up

Re: Aggregator within Splitter

2019-12-15 Thread Jeremy Ross
Looking at my example code again, I am passing an Aggregator to the Splitter, along with a completion predicate. The issue is that it appears that when using an aggregator with a large number of split items, you eventually run out of stack space. On Sun, Dec 15, 2019 at 9:55 AM Jeremy Ross wrote

Re: Aggregator within Splitter

2019-12-15 Thread Jeremy Ross
during splitter EIP. Are you sure you aren't looking > for that? > > On Sun, Dec 15, 2019 at 5:53 AM Jeremy Ross > wrote: > > > > Hi, > > > > I have a use case that involves splitting a very large list, then > > aggregating it into smaller lists and proces

Aggregator within Splitter

2019-12-14 Thread Jeremy Ross
Hi, I have a use case that involves splitting a very large list, then aggregating it into smaller lists and processing those lists once they reach a certain size. I'm getting a StackOverflowError (good luck googling 'Camel stackoverflow'), which makes me think I'm doing something wrong. Here's a r

“IOException: Stream closed” with Rest DSL + salesforce (and maybe other HTTP-based connectors)

2019-05-01 Thread Jeremy Ross
I’m running Camel 2.23.2 on Spring Boot with web-starter/Tomcat. The salesforce route will fail if it’s called from the rest route, but works fine if it’s called from the timer route. One interesting bit is that if I configure the REST DSL to use spark-rest, it works fine. Config is below, stack t