Re: java NullPointer exception in NotifyBuilder with camel-kafka component

2015-06-22 Thread Rahul Jain
Thanks. I'll submit a patch for this. On Mon, Jun 22, 2015 at 11:40 PM, Claus Ibsen wrote: > Hi > > Yeah well spotted. You are welcome to log a JIRA and work on a patch / PR > http://camel.apache.org/support > > On Mon, Jun 22, 2015 at 7:29 PM, Rahul Jain wrote: > > Camel-kafka component (2.15.

Re: n00b routing question

2015-06-22 Thread Claus Ibsen
Ah use .routeId to set the route nane in Java code. You cannot use name attribute in xml Den mandag den 22. juni 2015 skrev Pratt, Jason : > Hi claus - sorry mate. > I am using 2.15.2 running in a karaf 3.0.3 container > > When I list the routes via camel:route-list I get a generic route number >

RE: n00b routing question

2015-06-22 Thread Pratt, Jason
Hi claus - sorry mate. I am using 2.15.2 running in a karaf 3.0.3 container When I list the routes via camel:route-list I get a generic route number for both 1 and 2. Currently they are 33 and 34 respectively. Jason -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com]

Re: n00b routing question

2015-06-22 Thread Claus Ibsen
Hi Can you tell a bit more about which Camel version. And what CLI do you use? And what command or what you do type. On Mon, Jun 22, 2015 at 8:30 PM, Pratt, Jason wrote: > Hello everyone - I am trying to get my routes to show up when I list them in > the CLI. I can get the context to display 'm

Camel standalone with embedded activemq broker

2015-06-22 Thread hooty223
I am running a standalone camel app with an embedded activemq broker where the broker and route definitions are defined in xml file. I just created a timer to trigger messages to be sent to a queue. When I run in eclipse, everything is fine - both producers and consumers are happy. However, when

n00b routing question

2015-06-22 Thread Pratt, Jason
Hello everyone - I am trying to get my routes to show up when I list them in the CLI. I can get the context to display 'myId', but not route1 or route2. What am I doing wrong? http://camel.apache.org/schema/blueprint"; id="myId"> Regards, Jason

Re: REST DSL conundrum

2015-06-22 Thread Tim Dudgeon
No, it wasn't that (though I've been caught be that in the past). It turned out that its something strange with the result needing to be set to the body of the Out message, not the In message. Not totally sure about it, but I have something that works now. Tim On 22/06/2015 18:21, Claus Ibsen

Re: java NullPointer exception in NotifyBuilder with camel-kafka component

2015-06-22 Thread Claus Ibsen
Hi Yeah well spotted. You are welcome to log a JIRA and work on a patch / PR http://camel.apache.org/support On Mon, Jun 22, 2015 at 7:29 PM, Rahul Jain wrote: > Camel-kafka component (2.15.1) gives a NullPointer exception in > NotifyBuilder causing our assertions to fail. > > The error seems to

Re: Getting a javax.jms.JMSException: java.io.InterruptedIOException

2015-06-22 Thread yogu13
Not sure what version you are using... try upgrading activemq and see Cheers! -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Getting-a-javax-jms-JMSException-java-io-InterruptedIOException-tp5764382p5768482.html Sent from the Camel - Users mailing list archive at N

Re: customizing recipientList

2015-06-22 Thread lilw
I did start looking at the error handling framework. Right now I have something in the spirit below, but I still am not sure, what would be the best replacement recipientList or for inOnly. java.net.Conne

Re: REST DSL conundrum

2015-06-22 Thread Claus Ibsen
Hi If it works without the log, then see this http://camel.apache.org/why-is-my-message-body-empty.html On Mon, Jun 22, 2015 at 7:18 PM, Tim Dudgeon wrote: > I'm struggling with a REST DSL. It handles a POST request for a file upload, > so the request body is binary type, and the response is JSO

java NullPointer exception in NotifyBuilder with camel-kafka component

2015-06-22 Thread Rahul Jain
Camel-kafka component (2.15.1) gives a NullPointer exception in NotifyBuilder causing our assertions to fail. The error seems to be due to the fact that the Exchange created by the component has fromEndPoint set to null. In KafkaEndpoint.java public Exchange createKafkaExchange(MessageAndMeta

RE: Difficulty in extracting data from CxfPayload

2015-06-22 Thread siddhesh
Hi Stephen When I use Document document = exchange.getIn().getBody(Document.class); i see document object content as follows [#document: null] any additional changes that will fix this ? -- View this message in context: http://camel.465427.n5.nabble.com/Difficulty-in-extracting-data-from-CxfP

REST DSL conundrum

2015-06-22 Thread Tim Dudgeon
I'm struggling with a REST DSL. It handles a POST request for a file upload, so the request body is binary type, and the response is JSON describing the result. The container is Jetty. My DSL looks like this: rest("/rest/v1/datasets") .post().description("Upload file to create new dataset") .b

Re: swagger + jetty with REST DSL

2015-06-22 Thread Claus Ibsen
Hi You need to use the camel-swagger as a servlet http://camel.apache.org/swagger How you configure this can be done with web.xml or some fancy @servlet annotations. The camel route can be in java dsl and camel-swagger servlet discovers this using JMX - so they have to be in the same JVM, or bet

swagger + jetty with REST DSL

2015-06-22 Thread Tim Dudgeon
Can someone provide some info on how to get swagger set up with the REST DSL in a simple jetty environment. e.g. something very similar to what Christian described here: http://blog.christianposta.com/camel/easy-rest-endpoints-with-apache-camel-2-14/ e.g. Java only, no Spring. Thanks Tim

Re: Configure ActiveMQ queue forwarding based on wildcard destinations

2015-06-22 Thread Claus Ibsen
Hi The "dynamic to" in Camel is this FAQ / eip http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html You can also set a header to reuse, see section _Reuse endpoint and send to different destinations computed at runtime_ at http://camel.apache.org/jms On Mon, Jun 22, 2015 at 4:02 PM, elric

Re: http4 component: Possible to post message attachments as "multipart/mixed" ?

2015-06-22 Thread barthorre
I was indeed referring to the link. Sorry for the confusion. Bart Horré Anova r&d bvba On Fri, Jun 19, 2015 at 7:40 PM, Ettoregia [via Camel] < ml-node+s465427n5768421...@n5.nabble.com> wrote: > Hi, > > unless you mean the link you posted in your first message, I don't seem to > be able to find

Configure ActiveMQ queue forwarding based on wildcard destinations

2015-06-22 Thread elrick.dutoit
Good day, I am very new to Camel and ActiveMQ. I have configured two ActiveMQ instances and would like to use Camel to forward queue messages from the one instance to the other using the same queue names. I would like to configure this using wildcards, basically something like: from=ActiveMQ1:que

Re: Getting a javax.jms.JMSException: java.io.InterruptedIOException

2015-06-22 Thread Joris
Hi, We have a similar problem. Did you find a solution? Kind regards, Joris

Re: DeadLetterQueue -- Access the object before shutDown

2015-06-22 Thread udaykumarjonna
Hi Claus , Can u please add some example ,how we can configure inflightRepository and how to access the class before shuttingdown the context . Thanks uday -- View this message in context: http://camel.465427.n5.nabble.com/DeadLetterQueue-Access-the-object-before-shutDown-tp5768069p57

RE: Difficulty in extracting data from CxfPayload

2015-06-22 Thread Siano, Stephan
Hi, The error message indictes that you haven't passed a definition of the loc namespace prefix to the XPath. Aside from that your code is rather inefficient. You are first mashalling your parsed XML document into a String, then instantiate a DOM parser to parse it as a DOM and finally apply an

Re: Reliable camel routing with early reply and transactions

2015-06-22 Thread Gabowsky
Thanks Claus, its indeed a more elegant way to do it! :) Btw, I love your book, keep up the good work! Gabor -- View this message in context: http://camel.465427.n5.nabble.com/Reliable-camel-routing-with-early-reply-and-transactions-tp5768420p5768459.html Sent from the Camel - Users mailing l

RE: Difficulty in extracting data from CxfPayload

2015-06-22 Thread siddhesh
Hi Siano, Thanks I tried this code String bodyStr = exchange.getIn().getBody(String.class); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder; builder = factory.newDocumentBuilder(); Document document = builder.parse(new InputSource(new StringReader(