Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-25 Thread Mikael Koskinen
Hi, I have some issues when trying to export an integration to Quarkus runtime using Camel JBang if the integration uses kamelet:http-sink.The sample integration causing issues is available from here: https://gist.github.com/mikoskinen/71ce1d1ba5b5d7b690a4ec12af20e8ec The integration runs fine us

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-29 Thread Mikael Koskinen
uarkus uses for servlet as there are many of them) > > > > On Fri, Nov 25, 2022 at 8:30 PM Mikael Koskinen > > wrote: > > > >> Hi, > >> > >> I have some issues when trying to export an integration to Quarkus > >> runtime using Camel JBang if

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-30 Thread Mikael Koskinen
s like the camel-quarkus-catalog (needed for export to Q) > is not downloaded and resolved correctly so we fallback to core camel maven > GAVs > > Can you try to export to spring boot and look in the generated pom.xml that > the GAVs are using camel-xxx-starter ? > > > > > O

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-30 Thread Mikael Koskinen
Hey, I tested with Mac and it worked from the get go with 3.20.0-SNAPSHOT: all the dependencies are quarkus versions as expected. Haven't been able to test the Spring boot & Windows combination yet. ke 30. marrask. 2022 klo 11.25 Mikael Koskinen (mijap...@gmail.com) kirjoitti: > &

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-11-30 Thread Mikael Koskinen
rk for windows too > > https://issues.apache.org/jira/browse/CAMEL-18778 > > > > On Wed, Nov 30, 2022 at 1:48 PM Mikael Koskinen > > wrote: > > > >> Hey, > >> > >> I tested with Mac and it worked from the get go with 3.20.0-SNAPSHOT: >

YAML DSL/Karavan: HTTPS request to server which has self-signed certificate/invalid certificate

2022-11-30 Thread Mikael Koskinen
Hi, I'm wondering if it possible to use just YAML DSL/Karavan to create a route where HTTP/Netty-http/Undertow component makes a HTTPS request to server where server has either: a) Self-signed but otherwise valid certificate b) Expired or otherwise invalid certificate I was kind of hoping to fin

Re: YAML DSL/Karavan: HTTPS request to server which has self-signed certificate/invalid certificate

2022-12-01 Thread Mikael Koskinen
(of some sorts), > that could be = true. > > We can maybe find that old code, and put it into a new kamelet. > > > > On Thu, Dec 1, 2022 at 7:15 AM Mikael Koskinen wrote: > > > Hi, > > > > I'm wondering if it possible to use just YAML DSL/Karavan to c

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-12-01 Thread Mikael Koskinen
;s the difference between camel-kamelets and camel-kamelets-catalog. ke 30. marrask. 2022 klo 20.21 Mikael Koskinen (mijap...@gmail.com) kirjoitti: > > Hi, > > Thanks! I'll try the SNAPSHOT tomorrow and report back on how it works. > > ke 30. marrask. 2022 klo 15.05 Claus Ibs

Re: Camel JBang http-sink issue when exporting to Quarkus runtime: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

2022-12-02 Thread Mikael Koskinen
ad to resolve correct dependencies for the generated pom.xml. > > > > > > > > > > On Thu, Dec 1, 2022 at 6:10 PM Mikael Koskinen wrote: > > > >> Hey, > >> > >> I was now able to test things using the latest 3.20.0-SNAPSHOT in >

Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
Hi, I'm testing how the route reload works if one file has multiple routes. I've defined two routes in a single file and assigned ids to both: - route: id: firstRoute from: uri: "timer:yaml" parameters: period: "2000" steps: - setBody: constant: "Hello Camel from yaml timer 30" - log: "${body}"

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
Ibsen (claus.ib...@gmail.com) kirjoitti: > > And it can use camelCase too, so routeId or route-id are both possible. > However routeId is recommended so you use same case as XML, Java DSL etc. > > On Mon, Dec 26, 2022 at 11:00 AM Claus Ibsen wrote: > > > Hi > > > >

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
2022 klo 13.08 Mikael Koskinen (mijap...@gmail.com) kirjoitti: > > Thanks! I tried routeId and route-id but got the following error on both: > > Unsupported field: routeId > in file:timers.yaml, line 2, column 5: > routeId: firstRoute

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
> Hi > > See some unit tests > https://github.com/apache/camel/blob/main/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/RoutesTest.groovy#L198 > > You can also use Apache Camel Karavan to design yaml routes as it builds > the YAML correct > > > &g

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
rectly.\nUnassigned routes:\n{}", sj); } ma 26. jouluk. 2022 klo 15.30 Mikael Koskinen (mijap...@gmail.com) kirjoitti: > > Hey, > > Hmm, I'm not sure. The unit test you linked seems to use the "id" > field like I used when d

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-28 Thread Mikael Koskinen
should be NOT custom id assigned. > > You are welcome to send a PR > > > > BTW is there a reason you turn off remove all routes? > > > > > > So the code should be like: > > > > if (!route.isCustomId()) { > > > > > > > > On Mo

Camel JBang OpenAPI to REST DSL generator issue with enums: Unsupported field: allowableValues

2022-12-29 Thread Mikael Koskinen
Hi, I'm testing the Camel JBang 3.20 OpenAPI to REST generator and encountering some issues with enums when trying to run the generated file. The schema in the error message looks peculiar when trying to run the XML DSL as it points to spring but I'm not sure if it should look like that. Error wi

Re: Camel JBang OpenAPI to REST DSL generator issue with enums: Unsupported field: allowableValues

2022-12-29 Thread Mikael Koskinen
Hey, Just a quick update: Here's a minimal gist which shows the issue: camel run https://gist.github.com/mikoskinen/dccfffd7b6fa6d95f5a0bce66e491765 Hope this helps. Best regards, Mikael to 29. jouluk. 2022 klo 11.08 Mikael Koskinen (mijap...@gmail.com) kirjoitti: > > Hi, > >

Re: Camel JBang OpenAPI to REST DSL generator issue with enums: Unsupported field: allowableValues

2022-12-29 Thread Mikael Koskinen
can you create a JIRA ticket > > On Thu, Dec 29, 2022 at 10:24 AM Mikael Koskinen wrote: > > > Hey, > > > > Just a quick update: Here's a minimal gist which shows the issue: > > > > camel run > > https://gist.github.com/mikoskinen/dccfffd7b6fa6d95f5

Re: How to get docker stats ?

2023-01-11 Thread Mikael Koskinen
Hey, Can you use PollEnrich to work around this? Here's an example in YAML: - route: from: uri: timer:test steps: - pollEnrich: expression: constant: expression: docker:stats?containerId=fa05264a1bed - to: uri:

Jira Source Kamelet / Jira component & 3.20.1: Could not find artifact com.atlassian.sal:sal-api:jar:4.4.2 in central (https://repo1.maven.org/maven2)/

2023-01-28 Thread Mikael Koskinen
Hi, I'm trying to get the Jira component to work but without success. The error I'm getting is: Caused by: java.lang.IllegalArgumentException: Cannot find component with name: jira. Did you mean: gora, irc, jcr, jpa, mina And from the stacktrace I can see the following: Caused by: org.eclipse.a

Re: Jira Source Kamelet / Jira component & 3.20.1: Could not find artifact com.atlassian.sal:sal-api:jar:4.4.2 in central (https://repo1.maven.org/maven2)/

2023-01-28 Thread Mikael Koskinen
laus Ibsen (claus.ib...@gmail.com) kirjoitti: > > atlassian does not release to maven central so you need to add their maven > repo to jbang or have it pre downloaded. > > lør. 28. jan. 2023 kl. 17.54 skrev Mikael Koskinen : > > > Hi, > > > > I'm trying to get t

ProducerTemplate (or something similar) support in Camel JBang?

2023-01-31 Thread Mikael Koskinen
Hi, I've been wondering if it would be possible or a good idea to add something like the ProducerTemplate to Camel JBang? I mean the ability to send messages to running integrations using the CLI. Use case for me would be a scenario where I could start direct endpoints when our application starts

Using Java processors/aggregators with YAML & Camel JBang

2023-02-15 Thread Mikael Koskinen
Hi, I'm trying but failing to use Java processors/Java classes when writing integrations with YAML and running them with Camel JBang. I started by cloning this example: https://github.com/apache/camel-karavan/tree/main/karavan-demo/aggregator But running with using simple: camel run aggregator.

Re: Using Java processors/aggregators with YAML & Camel JBang

2023-02-15 Thread Mikael Koskinen
would be great :) Best regards, Mikael to 16. helmik. 2023 klo 8.21 Mikael Koskinen (mijap...@gmail.com) kirjoitti: > > Hi, > > I'm trying but failing to use Java processors/Java classes when > writing integrations with YAML and running them with Camel JBang. > > I

KameletBinding & CloudEvents & Camel JBang & Documentation

2023-02-22 Thread Mikael Koskinen
Hi, I'm wondering if KameletBinding works differently if run through Camel JBang vs running the binding using Camel-K. The documentation states that if I use http or https-endpoint as a sink, I should receive a CloudEvent from the source but this doesn't seem to be the case based on my testing us

Re: KameletBinding & CloudEvents & Camel JBang & Documentation

2023-02-22 Thread Mikael Koskinen
on why you don't see the messages transformed in a > local execution. > > Cheers, > Pasquale. > > On Wed, Feb 22, 2023 at 2:33 PM Mikael Koskinen wrote: > > > Hi, > > > > I'm wondering if KameletBinding works differently if run through Camel > > JBan

JQ: Function strftime/1 does not exist

2023-04-17 Thread Mikael Koskinen
Hi, When using the following JQ expression: now | strftime("%Y-%d-%m") I get the following error: CaughtExceptionType: org.apache.camel.RuntimeCamelException CaughtExceptionMessage: net.thisptr.jackson.jq.exception.JsonQueryException: Function strftime/1 does not exist StackTrace: org.apache

Camel Jbang & JSON Logging & ExchangeId as mdc/ndc?

2023-05-10 Thread Mikael Koskinen
Hi, I'm wondering if it would be possible to include ExchangeId into log messages when using Camel Jbang to run integration with JSON Logging? The idea is to be able to group the log messages by the exchange. Currently the ExchangeId is included in the "message" field when an error happens: "m

3.20.4 Bug(?): Route's ErrorHandler not working if exception happens on Kamelet

2023-05-19 Thread Mikael Koskinen
Hi, I'm encountering a problem where route configuration's error handler isn't run if the exception happens on a Kamelet. Here's the gist with tries to show the issue: https://gist.githubusercontent.com/mikoskinen/4e3e3a8efdf891890a2a46dfddae1d48/raw/09055bcdc1c2252a77a069fcebd07d6f727db555/camel-

Re: 3.20.4 Bug(?): Route's ErrorHandler not working if exception happens on Kamelet

2023-06-01 Thread Mikael Koskinen
Hey, I wonder if anyone has any info regarding this issue? It's possible (and maybe quite likely!) that I'm using the routeConfiguration/errorHandler incorrectly. Thanks in advance. Best regards, Mikael pe 19. toukok. 2023 klo 15.24 Mikael Koskinen (mijap...@gmail.com) kirjoit

Re: 3.20.4 Bug(?): Route's ErrorHandler not working if exception happens on Kamelet

2023-06-02 Thread Mikael Koskinen
mechanism in Camel. However, I haven't followed by near the recent > >> developments in Camel 4 to tell you if this is going to be included in the > >> new version or not. > >> > >> Regards, > >> Pasquale. > >> > >> [1] > >&

Re: Issue in resolving endpoint with property having period

2023-06-09 Thread Mikael Koskinen
Hi, Does the following syntax work: from("timer:notification?period={{time:1000}}") pe 9. kesäk. 2023 klo 12.21 Sujeet Singh (sujeetkumarsi...@gmail.com) kirjoitti: > > Hi, > The same issue was reported in stackoverflow 11 months ago. > > java - Using Timer Component with Apache Camel and the pe

Re: 3.20.4 Bug(?): Route's ErrorHandler not working if exception happens on Kamelet

2023-06-14 Thread Mikael Koskinen
melet component that can turn on old > >> behaviour for users that somehow want the old way (just in case). > >> https://issues.apache.org/jira/browse/CAMEL-19411 > >> > >> > >> On Fri, Jun 2, 2023 at 11:40 AM Mikael Koskinen > >> wrote: > &g

Kamelets that use other kamelets?

2023-08-18 Thread Mikael Koskinen
Hi, Should it be possible to use kamelets from other kamelets? I'm seeing some errors, making it feel this isn't supported. The use case is to to have a custom kamelet that handle logins etc. against a particular API. Then I would like to have a set of more custom kamelets which abstract away som

InterceptSendToEndpoint and access the intercepted endpoint details?

2023-09-06 Thread Mikael Koskinen
Hi, If I'm intercepting (using InterceptSendToEndpoint) the exchange before it is sent to an endpoint, can I somehow access the details of the endpoint which I intercepted? For example if I have Log-component in my route and I use InterceptSendToEndpoint to intercept the request, can I somehow ch

Re: Camel 4 migration blog post - Feedback welcome

2023-10-06 Thread Mikael Koskinen
Hi, For me the biggest issues regarding Camel 4 have been when Karavan VS Code extension updated itself to 4.0.0. I'm not sure things related to Karavan are discussed in the blog post but here's couple things we've encountered. In short, if you use Karavan 4.x.x to open a route which has been des

Any way to have "Named/Keyed Endpoints" in YAML / Karavan?

2024-02-29 Thread Mikael Koskinen
Hi, Property placeholders allow us to reuse single things like Jira username and password. But is there a concept in Camel that works with Camel YAML & Karavan where we could reuse "named" endpoint definitions? So the idea is that I could (hopefully in application.properties) define something lik

Re: Any way to have "Named/Keyed Endpoints" in YAML / Karavan?

2024-03-02 Thread Mikael Koskinen
so don't need to duplicate in YAML: > > camel.component.jira.jira-url=URL > camel.component.jira.password=PASSWORD > > > Marat > > On Thu, Feb 29, 2024 at 9:00 AM Mikael Koskinen > wrote: > > > Hi, > > > > Property placeholders allow us to reuse

Camel Jbang 4.4.1 not available?

2024-03-21 Thread Mikael Koskinen
Hi, I'm trying to install Camel Jbang 4.4.1 but the 4.4.0 always gets installed. --Force and --fresh parameters don't help. jbang app install --force --fresh camel@apache/camel I checked the CamelJBang.java and it still seems to refer to 4.4.0, is this something that needs to be changed on the s

Re: Camel Jbang 4.4.1 not available?

2024-03-21 Thread Mikael Koskinen
so you can as well now do this to > > install a specific version of Camel JBang command: > > > > $ jbang app install -Dcamel.jbang.version=4.4.1 camel@apache/camel > > > > Hope it helps, > > > > On Fri, Mar 22, 2024 at 2:10 PM Mikael Koskinen > > wrote: > &

Re: Call Kamelet from another kamelet

2024-12-05 Thread Mikael Koskinen
Hi, >From my testing, this hasn't changed in the latest versions. Meaning calling a kamelet from a kamelet doesn't work. Though Claus' comment make it sound that in theory it should be working so maybe this requires just a small fix. tiistai 3. joulukuuta 2024 Rohan Emmanuel kirjoitti: > @pasqu

Re: OpenTelemetry: SpanId and TraceId in logs missing Camel LTS

2025-02-05 Thread Mikael Koskinen
]. > > Cheers, > Pasquale. > > [1] > https://camel.apache.org/components/next/others/tracing.html#_mdc_logging > [2] > > https://camel.apache.org/components/next/others/opentelemetry.html#_mdc_logging > > On Wed, Feb 5, 2025 at 2:11 PM Mikael Koskinen wrote:

Re: OpenTelemetry: SpanId and TraceId in logs missing Camel LTS

2025-02-06 Thread Mikael Koskinen
y are %X{traceId} and %X{spanId} > > Cheers, > Pasquale. > > [1] > > https://camel.apache.org/components/next/others/opentelemetry.html#_using_with_standalone_camel > > On Wed, Feb 5, 2025 at 5:06 PM Mikael Koskinen wrote: > > > Hi Pasquale, > > > >

OpenTelemetry: SpanId and TraceId in logs missing Camel LTS

2025-02-05 Thread Mikael Koskinen
Hi, Enabling OpenTelemetry in Camel Main is straightforward, thanks to the good documentation on Camel JBang's page. I get telemetry, metrics and logs moving. But I have a problem with the logs that the OTEL Collector receives. The logs are missing trace and span ids. I have enabled mdc logging i

Pipe & camel run --prompt Camel 4.10

2025-02-25 Thread Mikael Koskinen
Hi, I'm wondering if it should be possible to use camel run --prompt with a Pipe where I have property placeholders? Currently I'm seeing this: camel run toslack.yaml --prompt 2025-02-25 20:20:12.678 INFO 16732 --- [ main] org.apache.camel.main.MainSupport : Apache Camel (JBang