Jetty banner & stacktrace while using cxf component: camel 3.0.1

2020-03-25 Thread Vikas Jaiswal
Hi I have a issue with the Jetty banner that comes up while a 404 error occurs. This is what I did to fix it: 1) Extended org.eclipse.jetty.server.handler.ContextHandler to create a custom contexhandler. 2) This custom context handler is configured in camel-config.xml (I

RE: KafkaComponent: Authentication failed

2020-03-25 Thread Klug Andreas (CI/OSI3)
Hi Pasquale, Thanks for the quick answer - you spotted that well, but the port answers with 0x15 0x03 0x03 0x00 0x02 0x02 0x50 - TLSv1.2. Seems to be a specialty in the Confluent Cloud offering. They're generating the configuration automatically anyhow, thus I assume the port is correct. I

Re: Testing Route in camel-quarkus

2020-03-25 Thread Dennis Holunder
thanks, works fine except logging: quarkus.log.file.enable = true quarkus.log.file.path = log/myquarkus.log quarkus.log.console.enable = true When running tests from IDE there is no console log and empty target/quarkus.log file is created instead of log/myquarkus.log as in defined in config.

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
Hi, all I think I found the problem. When running with a LevelDB repository it fails but switching to a JDBC Repository it works. So somewhere deep in LevelDB then… M > On 25 Mar 2020, at 10:16, Mikael Andersson Wigander > wrote: > > Hi > > Yes, I tried that but maybe I implement4d it

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
Hi Yes, I tried that but maybe I implement4d it wrong: final List body = exchange.getIn().getBody(List.class); final Class aClass = body.get(0).getClass(); final CodeSource codeSource = aClass.getProtectionDomain().getCodeSource(); log.info("* onCompletion **");

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
Running inside IDE and also from a maven run, same issue M > On 25 Mar 2020, at 10:12, Maria Arias de Reyna Dominguez > wrote: > > Hi, > > So when debugging it fails and when not debugging it doesn't? > > Did you compile and run the test everything inside IntellijIDEA or are you > maybe

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Maria Arias de Reyna Dominguez
Hi, So when debugging it fails and when not debugging it doesn't? Did you compile and run the test everything inside IntellijIDEA or are you maybe compiling outside with plain maven and running on the IDE? I had this weird thing happening to me on eclipse several years ago and it was because

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Zoran Regvart
Hi Mikael, in the output you provided you're printing the name of the class, my remark was about the fact that in Java you can have the same named class loaded by two classloaders result in a ClassCastException. I also provided a way to check for that. zoran On Wed, Mar 25, 2020 at 9:59 AM

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
I implemented CompletionAwareAggregationStrategy and in onCompletion() I checked the class but it crashes with an Ex eption in there as well… > On 25 Mar 2020, at 09:59, Mikael Andersson Wigander > wrote: > > > >> On 25 Mar 2020, at 09:28, Zoran Regvart wrote: >> Thx > > I have tried

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
> On 25 Mar 2020, at 09:28, Zoran Regvart wrote: > Thx I have tried this and they are the same * onCompletion ** 2020-03-25 09:57:16.747 INFO 77480 --- [nio-8080-exec-9] s.t.m.u.ArrayListAggregationStrategy : Class: se.tradechannel.mifid.gateway.model.Gateway

Re: Some questions on CamelK

2020-03-25 Thread Zoran Regvart
Hi Raymond, On Mon, Mar 23, 2020 at 7:38 PM ski n wrote: > The code for every example could be added in a tab for every support > language (so all examples are supported languages are treated equally). A > little bit like vert.x does on it website (See polyglot --> > https://vertx.io/) I think

Re: XML routes config problem

2020-03-25 Thread Zoran Regvart
Hi Joe, also have a look at this FAQ entry: https://camel.apache.org/manual/latest/faq/how-do-i-use-uris-with-parameters-in-xml.html zoran On Mon, Mar 23, 2020 at 8:04 PM Gagnon, Joseph - 0553 - MITLL wrote: > > Oh, that's ugly. But, it works. Thanks. > > -Original Message- > From:

Re: rest-swagger. Request swagger spec with auth by http

2020-03-25 Thread Zoran Regvart
Hi Mikhail, for Swagger support in Camel we use swagger-parser[1] which transparently supports loading both JSON and YAML. I would encourage you to try the OpenAPI support we have, that uses apicurio-data-models[2] which I find to be much more reliable and easier to use. You also get OpenAPI 3

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Zoran Regvart
Hi Mikael, ClassCastException with SameClass cannot be cast to SameClass means that there is an object passed from one classloader and being cast to a type loaded from another classloader. Look at the difference between obj.getClass() and SameClass.class, I usually check with

Re: Testing Route in camel-quarkus

2020-03-25 Thread Alex Dettinger
Hi Dennis, Interesting idea, this may work in jvm mode and would need to be excluded when executing @NativeImageTest. You may also be able to inject a ProducerTemplate in the test to feed the route directly. Alex On Wed, Mar 25, 2020 at 7:55 AM Dennis Holunder wrote: > I could create a

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
Well the computer never lies but when I revert to normal execution the code executes. I have tried to use the generics as in our production mode using aggregation with List but that gives me the same error… M > On 25 Mar 2020, at 08:50, Maria Arias de Reyna Dominguez > wrote: > > Hi, > >

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
Sorry Camel 2.25.0 Spring Boot 2.1.9.RELEASE M > On 25 Mar 2020, at 08:47, Claus Ibsen wrote: > > Hi > > What Camel version are you using? And what runtime do you use, karaf, spring > boot or something else? > > > On Wed, Mar 25, 2020 at 8:23 AM Mikael Andersson Wigander >

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Maria Arias de Reyna Dominguez
Hi, A very very wild guess: could it be a problem with dependencies so you have on your classpath two versions of the same class? The JVM should choose only one of them and use it, but to me it is clear it doesn't think that the first "se.tradechannel.mifid.gateway.model.Gateway" is the same as

Re: Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Claus Ibsen
Hi What Camel version are you using? And what runtime do you use, karaf, spring boot or something else? On Wed, Mar 25, 2020 at 8:23 AM Mikael Andersson Wigander < mikael.grevs...@gmail.com> wrote: > TL;DR > > We have a very interesting mystery in one of our Camel applications. > > We have a

Aggregation mystery - ClassCastException on same class

2020-03-25 Thread Mikael Andersson Wigander
TL;DR We have a very interesting mystery in one of our Camel applications. We have a route where we aggregate incoming messages. The messages are first unmarshalled from a JSON String to a Map and then processed thru a model ending up with a POJO of “Gateway objects". This POJO is then

Re: Testing Route in camel-quarkus

2020-03-25 Thread Dennis Holunder
I could create a quarkus test where the route is injected and external endpoint is mocked with quarkus mock support. Am Fr., 20. März 2020 um 11:52 Uhr schrieb Dennis Holunder : > > Hello, > > is it possible to test a non-http route in camel-quarkus like we do > with CamelTestSupport in camel? >