Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Amruta Jawlekar
Thanks a lot Tomohisa, I was able to fix the issue after putting a debug in the DataFormatDefinition. The dataformat bean was not correctly referenced in the route. And yes, as you said.. The error for java.lang.IllegalStateException does not mean anything :) -- View this message in context:

Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Tomohisa Igarashi
Hi, On 02/24/2017 01:36 PM, Amruta Jawlekar wrote: Thanks for your reply, Allan. Now I have removed all the routes from camel-context which were using bindy. So the bindy error message is gone. However, the main error in data conversion (unmarshalling) is still there. [

Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Amruta Jawlekar
I will define the data format as per the link that you've given, and update the forum. Thanks for the prompt response. -- View this message in context: http://camel.465427.n5.nabble.com/Error-in-Unmarshalling-to-custom-data-format-tp5794344p5794373.html Sent from the Camel - Users mailing list

Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Allan C.
I could be wrong, but I think the error message is saying you have not specified what type of format you would want to marshal/unmarshal it into/from. Thus I think you would need to define the data formats, if you haven't already done that. http://camel.apache.org/data-format.html#DataFormat-Using

Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Amruta Jawlekar
Thanks for your reply, Allan. Now I have removed all the routes from camel-context which were using bindy. So the bindy error message is gone. However, the main error in data conversion (unmarshalling) is still there. [ main] BeanUtils DEBUG No prope

Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Allan C.
I have limited experience in Bindy, but referring to the error message, it seems that the dataFormats section is not specified in the camel context, or does not have its properties specified. Also, before a certain version (I can't remember which), there's a limitation where Bindy can only recogni

RE: Passing parameters from routes to components

2017-02-23 Thread Steve Huston
You could inject property values from outside the routes. > -Original Message- > From: Erol [mailto:e...@erol.si] > Sent: Thursday, February 23, 2017 6:01 AM > To: users@camel.apache.org > Subject: Passing parameters from routes to components > > Hello all > > I'm dynamically building ro

Re: Multiple camel producers instantiated

2017-02-23 Thread John Poth
Hi Shiva, Not sure what Producer you're talking about but you might want to check out the isSingleton property [1] on some Producers/Endpoints which affects instance creation (returning true will only create one). Hope this helps, John. [1] https://github.com/apache/camel/blob/041e98bfaf45fd392

Re: Camel-CXF in tomee

2017-02-23 Thread Romain Manni-Bucau
Hi, probably remove the cxf libs from the webapp when already in the container or enforce cxf jars to be excluded (and probably camel ones) from the scanning Romain Manni-Bucau @rmannibucau | Blog | Old Blog

Camel-CXF in tomee

2017-02-23 Thread syadav
I am facing a issue when I am deploying my project in tomee. This is working fine in glashfish 4. I even tried to deploy a empty sample application where only a jar camel-cxf is added. Then tomee is not able to start gives following error. SEVERE - Unable to deploy collapsed ear in war StandardE

Multiple camel producers instantiated

2017-02-23 Thread Shiva
I am using apache camel 2.16.4. The issue I am having is the case where multiple producers are created for the same endpoint. I see the problem exists in doGetProducer() in org.apache.camel.impl.ProducerCache in the line answer = pool.acquire(endpoint); The endpoint is trying to be acquired before

Re: Camel Groovier DSL

2017-02-23 Thread souciance
Hi Sohrab Cool, look good, I will give it a try within next few days and let you know. Best Souciance On Thu, Feb 23, 2017 at 1:03 PM, sohrab [via Camel] < ml-node+s465427n5794343...@n5.nabble.com> wrote: > I've always felt that our Camel Groovy DSL is a bit of a cop-out, being > just a thin ve

Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Amruta Jawlekar
Actually, bindy is used for marshalling data in the latter step/route. But i have commented that route for now and jumped to the last route. So the code which deals with Bindy is all commented. Not sure why this below error comes up because the processItemDimensionFile route is commented and not

Re: Setting custom http headers from exchange objects to camel-cxfrs response

2017-02-23 Thread sohrab
Camel headers are only used if you have configured the CXFRS Component with simple binding style. If not using SimpleConsumer, then you need to construct the headers in the JAX-RS Response, set in the body. -- View this message in context: http://camel.465427.n5.nabble.com/Setting-custom-http-h

Re: Error in Unmarshalling to custom data format

2017-02-23 Thread Claus Ibsen
The error is from bindy data format, so somewhere you must be using that, and you have not configured bindy correct On Thu, Feb 23, 2017 at 1:06 PM, Amruta Jawlekar wrote: > I am getting error in unmarshalling to custom data format. It is working > successfully in Java DSL approach, now I need to

Error in Unmarshalling to custom data format

2017-02-23 Thread Amruta Jawlekar
I am getting error in unmarshalling to custom data format. It is working successfully in Java DSL approach, now I need to convert it in Spring DSL where I am getting error. camel-context.xml http://camel.apache.org/schema/spring";>

Camel Groovier DSL

2017-02-23 Thread sohrab
I've always felt that our Camel Groovy DSL is a bit of a cop-out, being just a thin veneer over Java DSL. It ignores all the features that Groovy offers when it comes to creating a new DSL. Also I find Java DSL gets a bit cumbersome, especially since builder pattern does not lend itself well to a

Passing parameters from routes to components

2017-02-23 Thread Erol
Hello all I'm dynamically building routes. Route consists of multiple components. Data for each component is saved in the database. Currently I have routes like this cecf4dec-530d-4d4c-aa31-6f88f6c558d1 d507ba3e-aa5a-4047-b662-c8ab3abd1f2b 6c8511cc-22fd-46e1-8333-70e4b8e2cda1

Re: Implementing custom endpoint with multiple methods or custom beans

2017-02-23 Thread Erol
Giovanni, thank you again for your reply. Just to clarify what I did. I ended up using custom components (sure I spent more time) but the final result is much better. Thank you again for all your help -- View this message in context: http://camel.465427.n5.nabble.com/Implementing-custom-endpo

Re: Camel JPA Thread Hung

2017-02-23 Thread Claus Ibsen
I would start look at your jdbc driver and connection pooling how that is configured to have a way of "heal" broken connections On Fri, Feb 17, 2017 at 12:06 AM, Gnana wrote: > Hi All,I have created one route which has JPA component to poll the records > from DB periodically. it is working good.

Setting custom http headers from exchange objects to camel-cxfrs response

2017-02-23 Thread prabhakaran
I am trying to send a custom header "myHeader" to the user from my exchange using a camel-cxfrs server component. But none of the headers i set by exchange.getIn().setHeader() are copied from my exchange to the cxf response header . Am i missing something ? -- View this message in context: htt

Re: Sending/Receiving active-mq with transferExchange silently removes Exchange headers

2017-02-23 Thread Claus Ibsen
Only primitive headers are supported, not arrays or collections See org.apache.camel.impl.DefaultExchangeHolder#getValidHeaderValue On Wed, Feb 22, 2017 at 5:38 PM, rsteppac2 wrote: > I was too rash. The exception stated in my first message is raised due to the > body of the exchange in-message,

Re: Mask password using log component

2017-02-23 Thread adondoni
Could you give me an example how can invoke a bean inside a log component? Thank Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794331.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Mask password using log component

2017-02-23 Thread souciance
I think you can write the invokation something like this: ${bean:orderService?method=getOrderType} where orderService is the name of your bean and the method name is the method of your masking. so perhaps something like .log("${bean:orderService?method=getOrderType}") On Thu, Feb 23, 2017 at 10

Re: Stop component "direct-vm" from another OSGI camelContext

2017-02-23 Thread alexey-s
I did not see the problem. It is clear the list "direct-vm". How to use camel-scr affects the "direct-vm"? -- View this message in context: http://camel.465427.n5.nabble.com/Stop-component-direct-vm-from-another-OSGI-camelContext-tp5794194p5794330.html Sent from the Camel - Users mailing list a

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
Hi I logged a ticket to see if we in the future can get such functionality out of the box https://issues.apache.org/jira/browse/CAMEL-10885 On Thu, Feb 23, 2017 at 10:12 AM, Claus Ibsen wrote: > On Thu, Feb 23, 2017 at 10:05 AM, adondoni wrote: >> Hi, >> I've already thinks this solution. >>

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
On Thu, Feb 23, 2017 at 10:05 AM, adondoni wrote: > Hi, > I've already thinks this solution. > But if mask a password into a bean before log, I modify a message that > continue in a route a lost password value. > You dont call the bean before, but call the bean from within the so it does NOT cha

Re: Mask password using log component

2017-02-23 Thread adondoni
Hi, I've already thinks this solution. But if mask a password into a bean before log, I modify a message that continue in a route a lost password value. My blueprint xml is: ... ... -- View this message in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp579430

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
Hi Okay so its in json format. Masking password from the message body depends on what format is it in json, xml, text, pojo (toString) etc. There is no out of the box mask function you can use. Camel does mask passwords in endpoint uris, but that is easier because its uri parameters with key=va

Re: Mask password using log component

2017-02-23 Thread adondoni
Hello Claus, thanks for your reply. My message body is a jsor RPC request like this { "method": "login", "id": "341182007", "params": { "username": "x", "password": "" }, "jsonrpc": "2.0" } -- View this message in context: http://camel.465427.n5.nabble.com/Mask-passw

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
Hi How is your password represented in the message body that is logged? On Wed, Feb 22, 2017 at 11:24 PM, adondoni wrote: > Hello, > I've implemented a route that receive JSON-RPC request from cxfrs. > > Before processing message, trace body request as: > > > > My problem is that request could

Mask password using log component

2017-02-23 Thread adondoni
Hello, I've implemented a route that receive JSON-RPC request from cxfrs. Before processing message, trace body request as: My problem is that request could be contains password value. Question is how can I mask password value when log body message. Thank in advance -- View this message in

Re: using apache camel : org.apache.http.NoHttpResponseException after 10 seconds of request

2017-02-23 Thread ishant_ag
Souciance, Following is the final request, though with bigger body when it takes more than 10 seconds. http4://order-update:8099/orders/v1/update/?httpClient.socketTimeout=6&httpClient.connectTimeout=6, Headers - {CamelHttpMethod=PUT, CamelHttpRawQuery=auth=lm4Gg6b4df6x44C%2BI9q5wA%3D%3D,