Re: lazyLoad with CSV blows up on last line?

2014-05-05 Thread Willem Jiang
I filled JIRA[1] for it and the patch is on the way. [1]https://issues.apache.org/jira/browse/CAMEL-7415 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On May 6, 2

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Abby Van Rooyen
Ok my apologies, I will re direct my self to those groups... Abby Van Rooyen Practice Team Lead- Development Precision Sourcing > On 6 May 2014, at 4:16 pm, "Charles Moulliard" wrote: > > Hy Abby, > > Such a message should not be posted here on that mailing list. I would like > to invite yo

Issue with digital signature using raw keys

2014-05-05 Thread sreejeb2
Hi All,I'm using camel 2.13. I have my private key and public key generated. The secring and pubring file are also available. I'm getting an error when I try to sign the document. I'm trying to encrypt a text file and sign it before send to my client. I added the dataFormats

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Charles Moulliard
Hy Abby, Such a message should not be posted here on that mailing list. I would like to invite you to use social media like Apache Camel group on linkedin or Google+ Apache Camel for such announcement. Regards, On Tue, May 6, 2014 at 1:54 AM, Abby Van Rooyen < a...@precisionsourcing.com.au> wro

Re: The PayLoad elements cannot fit with the message parts of the BindingOperation.

2014-05-05 Thread Sudhil
Please if any one can help in this ?? - Thanks & Regards, Sudhil Mishra. -- View this message in context: http://camel.465427.n5.nabble.com/The-PayLoad-elements-cannot-fit-with-the-message-parts-of-the-BindingOperation-tp5750724p5750888.html Sent from the Camel - Users mailing list archive

WARN: Unable to register shutdown hook due to JVM state

2014-05-05 Thread amshf
I'm using Camel to route Activemq messages. Camel is boot with org.apache.camel.Main class like this: *problem:* when I send Ctrl+C to shutdown the camel, it logs this warning: Why? and how to fix this? -- View this message in context: http://camel.465427.n5.nabble.com/WARN-Unable-to-reg

Re: lazyLoad with CSV blows up on last line?

2014-05-05 Thread Willem Jiang
OK, I managed to reproduce the error. I will keep digging the code to see if I can find a solution here. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On May 6, 20

RE: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Abby Van Rooyen
Hey guys and girls! I wonder if you can help me at all? I am currently working with a client of mine to find some strong integration developers who have quality Fuse and Camel skills to work on either a contract or permanent basis in Sydney. Can anyone suggest a suitable candidate for me? W

best way to unit test quartz routes

2014-05-05 Thread Minh Tran
Hi Most of my routes start with either direct or jms. So to test I would use the @MockEndpoints and set all my expectations then trigger the route using a ProducerTemplate. But I'm struggling to understand how I can do the same when it's a quartz component at the start of the route. eg How

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Charles Moulliard
That means that Spring JDBC has not been able to load your MSQL Driver Class. I recommend that you have a look to the classpath. On Mon, May 5, 2014 at 8:00 PM, Shiv wrote: > I do not see any log statement from DriverManagerDataSource class in my log > file :(. > > Thanks > Shiv > > > > -- > Vi

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Shiv
I do not see any log statement from DriverManagerDataSource class in my log file :(. Thanks Shiv -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-NullPointerException-in-Camel-JDBC-component-for-Select-statement-tp5750783p5750881.html Sent from the Camel - Users mai

Re: lazyLoad with CSV blows up on last line?

2014-05-05 Thread Tim Dudgeon
I don't think that's the problem. I added long sleep before shutting down the camel context and still get the error (my test file is very small so gets processed almost instantly). So think it must be something else closing the stream prematurely. Tim On 05/05/2014 02:50, Willem Jiang wrote:

Re: smtp option contentType=text/html has no effect

2014-05-05 Thread cdryst
Hello, I know it's a little late for ask but I have this issue right now, I have put trace on and I can see that the contentType header is set to text/html and has not been overwritten. One curious thing is that when I test it on development mode it sends the email in the right format, but when I

Re: Fetching file name from jetty endpoint and passing it on to file consumer

2014-05-05 Thread Claus Ibsen
On Mon, May 5, 2014 at 10:58 AM, vkarkhanis wrote: > Hello, > Here is a situation we have: > > We intend to hit a http url with parameter as complete filePath and pass it > on to file Consumer for it to dynamically interpret it .. the scenario is > something like -- > > > > uri="jetty:htt

Re: Netty consumer fixed message size.

2014-05-05 Thread Claus Ibsen
On Mon, May 5, 2014 at 4:11 PM, Cecilio Alvarez wrote: > Hi, > > I'm sending a 100 bytes array to a netty consumer. > Is there a way to post a message in the route each 100 bytes received? > > I tried with a FixedLengthFrameDecoder of 100 bytes, but sometimes I receive > more than 100 bytes. > > >

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Charles Moulliard
Can you verify that in your log Spring has reported that the Driver has been loaded correctly ? https://github.com/spring-projects/spring-framework/blob/master/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DriverManagerDataSource.java#L133 On Mon, May 5, 2014 at 4:46 PM, Shiv wro

Re: Database polling w/o DB write access

2014-05-05 Thread buhhko
Hi akoufoudakis Yeps. I am using the SQL component and am using Camel 2.13.0.. The documented way using SQL component seems to be giving an update query using the onConsume parameter and filter by the updated discriminator in the select query. I will not have write access to the database.. -- V

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Shiv
conn maybe null if any of the parameters is invalid, right? If everything alright with below configuration for MS SQL Server? Also, if I understand the flow correctly, JDBC Producer class calls conn = dataSource.getConnection() which is handled by Simple

Re: Database polling w/o DB write access

2014-05-05 Thread akoufoudakis
Hello! Did you consider SQL component from camel 2.12? I use it to poll from a table. -- View this message in context: http://camel.465427.n5.nabble.com/Database-polling-w-o-DB-write-access-tp5750870p5750871.html Sent from the Camel - Users mailing list archive at Nabble.com.

Database polling w/o DB write access

2014-05-05 Thread buhhko
Hi. I have a scenario where I have to poll an event log table for new entries. Conceptually I do not have write access to the database as a whole thus I have no opportunity to mark messages as read or prune processed messages. Have considered two approaches: 1) Using the idempotent consumer app

Netty consumer fixed message size.

2014-05-05 Thread Cecilio Alvarez
Hi, I'm sending a 100 bytes array to a netty consumer. Is there a way to post a message in the route each 100 bytes received? I tried with a FixedLengthFrameDecoder of 100 bytes, but sometimes I receive more than 100 bytes. Thanks. -- View this message in context: http:

Unable to insert data using camel hibernate component.

2014-05-05 Thread V Santhosh Kumar Tangudu
Hi, I am using Apache Camel in Dropwizard framework to build the flow. I am trying to use the hibernate component of Apache-camel. When I am trying to insert a data, I am getting following exception. org.hibernate.HibernateException: No session currently bound to execution context at org.hib

Re: The PayLoad elements cannot fit with the message parts of the BindingOperation.

2014-05-05 Thread bharadwaj
Message body is matching with operation please find the camel code as below: http://minspa.csi.nsn.com "urn:unsubscribe" {http://minspa.csi.nsn.com}u

longish uri on file endpoint

2014-05-05 Thread ayilliath
Hi, (I think this should be more of a spring/xml question.. ) I have a long file producer url that looks something like this. Runs to about 270 characters and is a pain to debug. Any chance I could break this into multiple lines? Thanks Rakesh -- View this message in context: http://

Fetching file name from jetty endpoint and passing it on to file consumer

2014-05-05 Thread vkarkhanis
Hello, Here is a situation we have: We intend to hit a http url with parameter as complete filePath and pass it on to file Consumer for it to dynamically interpret it .. the scenario is something like -- http://{{jetty.host}}:{{jetty.port}}/fileAvailable"/>

AW: comparing two XML files

2014-05-05 Thread jhm
> It is simply a comparison of values in the files not of the structure > of the files. If you could compare via xpath then you could write that directly in Camel: from("direct:in") .switch() .when(xpath(...)).to(...) > Now I want to pull in some more data to the route to > allow m

Re: java.lang.NullPointerException in Camel JDBC component for Select statement

2014-05-05 Thread Charles Moulliard
IF you read the message, it tells you that it will create the connection (not that the connection has been created). So Spring logs the message before to call https://github.com/spring-projects/spring-framework/blob/master/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/SimpleDriverDa

Re: comparing two XML files

2014-05-05 Thread Stephen Cameron
Hi, Thanks for your kind advice. But I have not explained the problem well enough. It is simply a comparison of values in the files not of the structure of the files. A route seems a linear processing thing to my simple understanding. Now I want to pull in some more data to the route to allow me