Re: Camel 2.17.x, null values are gone

2016-05-31 Thread fabryprog
my solution is: Please, insert this line into official documentation for backward compatibility! king regards! -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-17-x-null-values-are-gone-tp5783253p5783274.html Sent from the Camel - Users ma

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread imranrazakhan
Hi Claus, I did some more testing and it works only one scenario from("timer://foo?fixedRate=true&period=6000") .setHeader("mobilenumbers", simple("12345")) .to("sql:select status from subscriber where mobilenumber in (:#in:mobilenumbers)?dataSource=#oracleDS")

Re: LinkedIn Component

2016-05-31 Thread S-camel
When I put lazyAuth on false I get the following error: Caused by: java.lang.SecurityException: Invalid CSRF code! at org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.getRefreshToken(LinkedInOAuthRequestFilter.java:214) at org.apache.camel.component.linkedin.api.LinkedInOAuthRequ

Re: placeHolder

2016-05-31 Thread fabryprog
hello, try to change http://{{fromUrl}}/occupations?matchOnUriPrefix=true"; /> -- View this message in context: http://camel.465427.n5.nabble.com/placeHolder-tp5783268p5783284.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Routing question

2016-05-31 Thread miri eyni
thanks for your answer. in this case i am lose the orig request? -- View this message in context: http://camel.465427.n5.nabble.com/Routing-question-tp5782945p5783285.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: placeHolder

2016-05-31 Thread miri eyni
thanks working :) -- View this message in context: http://camel.465427.n5.nabble.com/placeHolder-tp5783268p5783286.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel delta-spike: How to share properties between conexts ?

2016-05-31 Thread nicolasduminil
Hello, I'm using delta-spike to manage camel routes as I've seen in the provided CDI samples. I have the following route builder: public class MyRouteBuilder extends RouteBuilder { @Override @ContextName("...") public void configure() { from("ftp:{{ftp.path}}").log("Uploading file ${f

Re: Camel delta-spike: How to share properties between conexts ?

2016-05-31 Thread Antonin Stefanutti
Hi Nicolas, In your unit tests, you should use Camel CDI test runner instead of extending CamelTestSupport. This is used in the example that illustrates CDI and DeltaSpike configuration properties so that you can have a look at the accompanying test class. See [2] for more information. [1]: h

Re: Returning response from external webservice using dynamicRouter

2016-05-31 Thread maskellp
Should I return null from the route method? The returned success xml from the redirected server is in the Exchange body, how can I return this as if the client had called the redirected server directly? -- View this message in context: http://camel.465427.n5.nabble.com/Returning-response-from

Re: Returning response from external webservice using dynamicRouter

2016-05-31 Thread Costash
Hi, I don't know if i get your question correctly, but DynamicRouter acts like a loop: it will send the exchange over and over to the endpoint name returned by the method "route." It will end the loop when the method "route" will returned "null". So your method should returned "null" when you wan

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread imranrazakhan
Hi, Same error org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; Number of parameters mismatch. Expected: 1, was: 2; nested exception is java.sql.SQLException: Number of parameters mismatch. Expe

Camel Tracer doesn't work

2016-05-31 Thread nicolasduminil
Hello, I'm trying to use the Camel Tracer and I set it up, as follows: getContext().setTracing(true); Tracer tracer = new Tracer(); tracer.setLogName("c:/temp/camel-trace.log"); tracer.getDefaultTraceFormatter().setShowProperties(true); tracer.getDefaultTraceFormatter().setSho

Re: Camel delta-spike: How to share properties between conexts ?

2016-05-31 Thread nicolasduminil
Hi Antonin, Many thanks for your reply. I have already seen these examples. My question was concerning the access to the properties. I modified my unit test as follows: @RunWith(CamelCdiRunner.class) public class UnitTests extends CamelTestSupport { @Inject @ConfigProperty(name = "ftp.path")

Re: Camel delta-spike: How to share properties between conexts ?

2016-05-31 Thread Antonin Stefanutti
Hi Nicolas, Have you tried with a non-static member: @Inject @ConfigProperty(name = "ftp.path") private String myProp; Injection of static field is not allowed. It should work without duplicating your logic. Antonin > On 31 May 2016, at 14:37, nicolasduminil > wrote: > > @Inject > @Config

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread yogu13
instead of simple("12345,56789") can you try new String[]{"12345", "56789"} Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/camel-sql-SQL-IN-Query-issue-2-17-1-tp5783264p5783293.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread yogu13
can you try removing the datasource as a parameter to the sql component and instead set the data source as and check // required for the sql component getContext().getComponent("sql", SqlComponent.class).setDataSource(db); Regards, -Yogesh -- View this message in context: http

Re: Camel delta-spike: How to share properties between conexts ?

2016-05-31 Thread nicolasduminil
Hi Antonin, Yes, of course, my bad. It works with non-static as expected. Many thanks for your help. Kind regards, Nicolas -- View this message in context: http://camel.465427.n5.nabble.com/Camel-delta-spike-How-to-share-properties-between-contexts-tp5783288p5783300.html Sent from the Camel

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread imranrazakhan
Following main class Main main = new Main(); main.addRouteBuilder( new GetAccountStatusBulk() ); main.getOrCreateCamelContext().getComponent("sql", SqlComponent.class).setDataSource(setupDataSource()); main.run(args); Following change in roue .to(

Camel :: MongoDB :: Save Operation - Does Not Upsert

2016-05-31 Thread web_nab...@sunilsamuel.com
Hello, I am using Apache Camel 2.14.0. I am calling the mongo endpoint in the following format: mongodb:product-reference-mongo?database=ProductReferenceMetaData&collection=productVersions&operation=save According to the documentation, the 'save' operation is supposed to update it if it exists

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread yogu13
your datasiyrce is not configured.. can you make sure its working? regards, -yogesh On Tuesday 31 May 2016, imranrazakhan [via Camel] < ml-node+s465427n5783303...@n5.nabble.com> wrote: > Following main class > > Main main = new Main(); > main.addRouteBuilder( new GetAccountStatus

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread yogu13
looks like the context for route and context where datasource is set are different and hence datasource is not found.. try setting the datasource first and pass the same camel context to your route builder regards, -Yogesh On Tuesday 31 May 2016, Yogesh Rao wrote: > your datasiyrce is not conf

Re: Camel Tracer doesn't work

2016-05-31 Thread Claus Ibsen
Yes setLogName is not a file name, but the name of the logger in use, eg it uses SLF4J API to log with that name. So you need to configure your slf4j logger to use a file for logging. On Tue, May 31, 2016 at 2:05 PM, nicolasduminil wrote: > Hello, > > I'm trying to use the Camel Tracer and I s

How to stop camel from logging Failed Delivery Error

2016-05-31 Thread Ed Welch
Hopefully this is an easy question, I have an exception handler: onException(UnknownTnException.class) .useOriginalMessage() .handled(true) .logStackTrace(false) .log(LoggingLevel.WARN, log, "Unknown TN: ${exception.message}"); Whi

Re: How to stop camel from logging Failed Delivery Error

2016-05-31 Thread Claus Ibsen
What version of Camel do you use? There was a bug recently that causes Camel to log handled exceptions. So try to upgrade. On Tue, May 31, 2016 at 4:14 PM, Ed Welch wrote: > Hopefully this is an easy question, I have an exception handler: > > onException(UnknownTnException.class) >

camel not supporting utf-8 character

2016-05-31 Thread Deepak kumar
I have a spring boot camel project. Then there is a route which fetches xml data from activemq. When i run the program through STS -> Run as Spring Boot app it works fine for UTF-8 char encoding. But when i make the fat jar and run it then in the logs i get junk characters for chinese fonts. My log

Re: How to stop camel from logging Failed Delivery Error

2016-05-31 Thread Ed Welch
Ah, I searched and found https://issues.apache.org/jira/browse/CAMEL-9558 which is likely the issue you are referring to, which would affect me (2.16.1), I will try upgrading to 2.16.3. Thanks! On Tue, 31 May 2016 16:22:28 +0200, Claus Ibsen wrote: > What version of Camel do you use? > > The

StartUp issue in camel-quartz

2016-05-31 Thread Arghya
In my camel project all Route builder are getting executed by quartz scheduler. The issue is when I am starting the camel context all of the route builder is getting executed. My expectation is when I start the camel context all the route builders should be ready for processing but execution will

Camel Route builder started autome

2016-05-31 Thread Arghya
In my camel project all Route builder are getting executed by quartz scheduler. The issue is when I am starting the camel context all of the route builder is getting executed. My expectation is when I start the camel context all the route builders should be ready for processing but execution will h

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread imranrazakhan
Hi Yogesh, it look like there is issue in Using IN queries with dynamic values, as its working for 1 value but not for multiple values, if here is issue in datasource parameter then it should not work for 1 value too. As mentioned earlier is expecting 1 value, below error clearly indicating org

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-05-31 Thread yogu13
i see unit tests written for supporting in clause not sure how r they passing regards, -Yogesh On Tuesday 31 May 2016, imranrazakhan [via Camel] < ml-node+s465427n5783319...@n5.nabble.com> wrote: > Hi Yogesh, > > it look like there is issue in Using IN queries with dynamic values, as > its worki

Warning out on naming Blueprint property-placeholder persistent-id="stuff-test"

2016-05-31 Thread Owain McGuire
![](https://link.nylas.com/open/ez36v71u7uh7qiundny4ougdd/local-dab1ed0a-250c) Finally found this: https://access.redhat.com/solutions/1535463 If you have a dash "-" in the persistent-id then if you override the properties file in $FUSE_HOME/etc with the name .cfg then it won't pick t

It IS possible to import routeContext in OSGi Blueprint

2016-05-31 Thread Owain McGuire
![](https://link.nylas.com/open/ez36v71u7uh7qiundny4ougdd/local-2413efdb-c652) Just come across this article https://access.redhat.com/solutions/259293 and it something not easily found in the community. http://camel.465427.n5.nabble.com/camel-blueprint-unit-tests-td5738925.html and http://camel.

Came CDI tests start non-test routes

2016-05-31 Thread Anton
Hello I have several unit tests that are annotated with @RunWith(org.apache.camel.test.cdi.CamelCdiRunner.class) and also inject @Inject @ContextName("camel-test-cdi") CamelContext context; I do not inject any non-test routes, yet, when I run the tests the routes start. How is it possible to ru

Re: It IS possible to import routeContext in OSGi Blueprint

2016-05-31 Thread souciance
I am not sure I understand completely your requirement but I have done something like this for my unit tests. 1. I created a separate blueprint.xml where only necessary routes are created in the routebuilder ref statements. Other routes are not started. 2. In my @Before I do some advice with stuff

Re: It IS possible to import routeContext in OSGi Blueprint

2016-05-31 Thread Brad Johnson
private static final String TEST_BLUEPRINT_XML = "camel-context-for-route-blueprint.xml,OSGI-INF/blueprint/blueprint.xml"; @Override protected String getBlueprintDescriptor() { return TEST_BLUEPRINT_XML; } Then create the camel context in your test resources dir

File2 Consumer - Multiple file problem

2016-05-31 Thread bwest
Greetings, I have the following question, I will try to lay the scenario as clearly as possible. If this isn't clear, my apologies up front. I have a directory, that will have multiple files dropped into it. The file are text files and as part of this generation process they will have a guid

Re: Warning out on naming Blueprint property-placeholder persistent-id="stuff-test"

2016-05-31 Thread Henrique Viecili
I found out it gets even weirder if you have *aux* in between dashes (* *-aux-**). Somehow karaf's config admin file management generates a .cfg file with random numbers. Cheers, Henrique Henrique Viecili On 1 June 2016 at 04:00, Owain McGuire wrote: > ![]( > https://link.nylas.com/open/ez36v7

Re: camel not supporting utf-8 character

2016-05-31 Thread souciance
I have routes which take in chinese char and arabic ones and it works fine. Is the data being sent actually in UTF-8? On Tue, May 31, 2016 at 4:18 PM, Deepak kumar [via Camel] < ml-node+s465427n5783310...@n5.nabble.com> wrote: > I have a spring boot camel project. Then there is a route which fetc

Re: Camel Route builder started autome

2016-05-31 Thread souciance
How do your routebuilders look? On Tue, May 31, 2016 at 5:11 PM, Arghya [via Camel] < ml-node+s465427n5783316...@n5.nabble.com> wrote: > In my camel project all Route builder are getting executed by quartz > scheduler. The issue is when I am starting the camel context all of the > route builder i

Re: File2 Consumer - Multiple file problem

2016-05-31 Thread souciance
1. You can collect the multiple txt files by placing a pattern i.e. (*.txt) in your file consumer URI. But first you need to configure a .done file in your file consumer route. Basically the .done means that only when the xml file is generate should you consume the txt files. 2. I am guessing the t

Re: Camel :: MongoDB :: Save Operation - Does Not Upsert

2016-05-31 Thread arno noordover
I checkout version 2.14.0 and looked at the call from a "save" to MongoDB. In see a call to the save-method in DBCollection (code is below). I can only say that I expect an insert will be done when there is no _id in the object you send to your route. If you send an object with an _id an update s

camel-swagger Type Reference Question

2016-05-31 Thread furi2
Hi, I have two classes, one of which is a request model, and the other one is a response model of a REST API. camel-swagger annotation and methods work great, when I use only the request type, or only response type(s). When I specified both the request object and the response object, the input bod