Re: Jetty consumer responds with a 500 error java.io.IOException: Response header too large

2017-12-20 Thread Laurentiu Trica
Camel version: 2.16.3 Thanks! On Tue, Dec 19, 2017 at 6:27 PM, Andrea Cosentino < ancosen1...@yahoo.com.invalid> wrote: > What version of camel are you using? > > Inviato da Yahoo Mail su Android > > Il mar, 19 dic, 2017 alle 16:45, Laurentiu Trica moredevs.ro> ha scritto:

Re: Question about using Splitter

2017-12-20 Thread Charles Berger
> You should be able to convert your ImageCollection into List > by simply doing something like: > > from("activemq:requestQueue") > .convertBodyTo(ImageCollection.class) > .setBody(simple("${body.images}")) > .log("${body}") > .split(body()) >

Re: Question about using Splitter

2017-12-20 Thread Charles Berger
Hi, Thanks for replying. > Instead of splitting ImageCollection as the body, I think you just need to > split List as the body. Are you suggesting that the ImageCollection class is actually superfluous and I should use the List as the output from the bean uploadRequestQueue instead? Or is

Re: Question about using Splitter

2017-12-20 Thread Tadayoshi Sato
Hi, The point is that to split object message body using Splitter DSL it needs to be either Collection, Iterator, or array. ImageCollection is a custom class so there's no way for Camel to know how to split it. You should be able to convert your ImageCollection into List by simply doing

Re: Invoke Camel Backlog Tracer

2017-12-20 Thread Joery Vreijsen
Thanks, i believe it is working now. Unfortunately i don’t think logging to log files will do it for me. My goal is to create an api endpoint that can retrieve the traced messages from the Backlog Queue. In the api endpoint i have access to the Camel Context (and thus the backlogTracer), but i’m

Re: Invoke Camel Backlog Tracer

2017-12-20 Thread Claus Ibsen
Hi Replying again as there may be an issue with Joery seeing the mails from here If you just want to have tracing to log files, then using "trace=true" in is not deprecated and you can use that. On Tue, Dec 19, 2017 at 5:09 PM, Joery Vreijsen wrote: > Hi There! > >

Re: Jetty consumer responds with a 500 error java.io.IOException: Response header too large

2017-12-20 Thread Roman Vottner
Do you somehow store the received file into camel headers? Camel will return most headers to the invoker and usually HTTP headers > 8kb will produce that kind of exception. You might want to introduce a customized HttpHeaderFilterStrategy similar to the sample below to avoid returning certain

Re: MockEndpoint does not receive message if error occures in subroute

2017-12-20 Thread Quinn Stevenson
I’m not sure why this is working in the real world, but the reason the test is failing is the default error handler is picking up the exception from the call to the direct://Validate route. If you add ".errorHandler(new NoErrorHandlerBuilder())” to the direct://Validate route, your test

Re: HL7/Using terser in Bean

2017-12-20 Thread Quinn Stevenson
If I understand what you’re asking, you could use a HAPI Terser (https://hapifhir.github.io/hapi-hl7v2/base/apidocs/ca/uhn/hl7v2/util/Terser.html ) in your bean. HTH Quinn Stevenson qu...@pronoia-solutions.com

Re: JMS Acknowledge mode

2017-12-20 Thread Quinn Stevenson
I’m not sure I’m following you, but I can tell you what I normally do. My JMS Consumers use “transacted=true”, which will use a JMS Session transaction. You don’t need the acknowledgementModeName, and I don’t think you need ‘.transacted()’ (I believe this is for XA). I then setup exception

RE: netty4-http send chunked response

2017-12-20 Thread Sharples, Colin
Even weirder, this only seems to happen on Solaris. If I run my route on Linux, then I get the proper string without the chunked encoding characters. I found this, which suggests that it might just be a bug in the JDK: http://www-01.ibm.com/support/docview.wss?uid=swg21255293 I'd still like to