Re: java.net.BindException: Address already in use: bind

2017-06-12 Thread ActiveCamel
I answered my own question in my original post. I don't need to run a separate servercamel-netty4 will basically listen on the portOnly need a client to write to the socket. -- View this message in context: http://camel.465427.n5.nabble.com/java-net-BindException-Address-already-in-use-

Re: Nested doTry-doCatch blocks

2017-06-12 Thread stalbot
I ran into this today. I have a route with doTry/doCatch, where in the doCatch there is a choice()when()otherwise() block. The code never reaches "point 2" for me, even when MyHttpException is not thrown. .from() ... .doTry() ... .log(level.INFO, log, "Reaches point

Camel Route adding many listners to AMQ

2017-06-12 Thread vcamel9
I have written code for ..call processor with code below.. from("jmsamq:queue:*CamelWireTapOrdersTestQ*") .filter(header("JMSMessageID").isEqualTo(exchange.getIn().getHeader("JMSMessageID"))) .to("jmsamq:queue:PreIngestC

Re: Camel-JBPM component showing java.lang.NoSuchMethodError: org.kie.services.client.api.RemoteRuntimeEngineFactory.newRestBuilder()

2017-06-12 Thread vcamel9
Thanks. I'll try and see my observations. I thought I was the only one looking at this issue. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JBPM-component-showing-java-lang-NoSuchMethodError-org-kie-services-client-api-RemoteRuntimeEn-tp5795338p5803327.html Sent f

HTTP4 retrying with I/O exception in fuse 6.3

2017-06-12 Thread Kevin-Void
Hi All, I have used Http4 component in fuse 6.2.1 and it works fine as expected. In new version of fuse 6.3, the response is not as expected. It is as follows: 2017-06-12 18:34:54,886 | INFO | mer[SAMPLE.ROUTE] | RetryExec | 219 - org.apache.httpcomponents.httpclient - 4

MQTT to MQTT

2017-06-12 Thread Mariusz Koprowski
Hi All I need to build a simple component that will take messages from one MQTT topic and republish it on other MQTT topic (from one broker to another broker). Messages are binary so I can't add anything to the body of the message. The main questions are 1. how to effectively store topics map

Re: ERROR : com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'H' (code 72) in prolog; expected '<'

2017-06-12 Thread vgohel
It seems that the server is expecting a different content-type header than from what is send from the request or it can also be a case where the response is delivered with the incorrect content-type which the client may not be able to accept. Please check the Http headers for the content-type in th

CAMEL SFTP WITH MULTIPLE CONSUMERS

2017-06-12 Thread NikheelRanjan
Problem statement: 1.Multiple text files(assume 10k) of varying size from 100 to 800 kb come through an external file upload program to one specific directory . And we have to read and and save the data in a DB from those text files.Now the requirement is: a.)Process the files

Re: ERROR : com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'H' (code 72) in prolog; expected '<'

2017-06-12 Thread Zoran Regvart
Hi Siddharth, not sure if Camel users mailing list/forum is the best for this, probably CXF users[1] would be better. That being said I think that you should look at the responses from the server, you might be getting HTML instead of SOAP XML, common cause of which would be errors that occur on the

ERROR : com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'H' (code 72) in prolog; expected '<'

2017-06-12 Thread Siddharth Patil
Hi, I have a soap service for uploading documents through which I upload multiple documents. The service works fine but once in a while it fails giving the following error - "com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'H' (code 72) in prolog; expected '<'

AW: Deaf MockEndpoints when using Spring @DirtiesContext

2017-06-12 Thread Burkard Stephan
Yeah, I found this one: http://camel.465427.n5.nabble.com/spring-boot-test-mocks-td5773902.html It seems that at this time (Camel version 2.16.0) @MockEndpoints didn't work at all. With my Camel version (2.17.3) it basically works as long as the Spring context is not restarted. So I moved my

Re: Camel MQTT component fails when set sslContext

2017-06-12 Thread Claus Ibsen
Use # notation when you refer to a bean from the registry. See more details at: http://camel.apache.org/how-do-i-configure-endpoints.html eg sslContext=#mySSLContextParameters On Mon, Jun 12, 2017 at 12:43 PM, Rafa Ruiz wrote: > Hello: > I am trying to connect to a activemq broker within Openshi

Re: converting XML DSL example to Java

2017-06-12 Thread Claus Ibsen
Hi Or inline the expressions as a parameter argument transform( ) transform(simple("Hi ")) Then you don't need any kind of endChoice etc. On Mon, Jun 12, 2017 at 11:07 AM, Alessandro Rontani wrote: > I think you can use .endChoice() to end a branch, so you can try this: > > public

Camel MQTT component fails when set sslContext

2017-06-12 Thread Rafa Ruiz
Hello: I am trying to connect to a activemq broker within Openshift through MQTT + SSL My route is calling to activemq like this: and I have previously configured needed sslContext: If I set these cert. managers with

Re: converting XML DSL example to Java

2017-06-12 Thread Alessandro Rontani
I think you can use .endChoice() to end a branch, so you can try this: public void configure() { from("servlet:hello") .choice() .when(header("name")) .transform().simple("Hi ${header.name}") .endChoice() .otherwise() .transform().constant("no name") .endChoice()