Re: Consumer Polling Retry Issue

2015-03-25 Thread yeandone
Hi Claus and Willem Do you happen to have any ideas? -- View this message in context: http://camel.465427.n5.nabble.com/Consumer-Polling-Retry-Issue-tp5764711p5764731.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SFTP connection issue with private key

2015-03-25 Thread yeandone
Hi, Camel Friends. Any ideas about the exception? -- View this message in context: http://camel.465427.n5.nabble.com/SFTP-connection-issue-with-private-key-tp5764710p5764732.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SFTP connection issue with private key

2015-03-25 Thread yeandone
Hi, Greg. Thank you so much for your reply! In my camel route, I did not specify any preferredAuthentications. Our route runs twice a day. Can you explain why it threw the exception after a long period time of inactive connectivity (the first run) and the re-connection worked after a few hours

Re: Consumer Polling Retry Issue

2015-03-25 Thread yeandone
Hi Claus. Thank you so much for your reply! I read of the doc before, but how do I catch the exception and handle it after 5 retries? Currently in my route I set consumer.bridgeErrorHandler=true. So when an exception is thrown at the first try, it will go to my on exception block inside the

Re: SFTP connection issue with private key

2015-03-25 Thread yeandone
Thanks Greg for your detailed explanation! Your response helped me hugely!!! -- View this message in context: http://camel.465427.n5.nabble.com/SFTP-connection-issue-with-private-key-tp5764710p5764790.html Sent from the Camel - Users mailing list archive at Nabble.com.

SFTP connection issue with private key

2015-03-24 Thread yeandone
Hi, Claus, Willem, and Camel friends, I am writing a camel route that connects to, logs into and polls files from a SFTP location with private key file. But when the application was deployed to server and ran for the first time, it threw the following the exception below. But when the app ran

Consumer Polling Retry Issue

2015-03-24 Thread yeandone
Hi, Camel friends. I am trying to poll files from a remote SFTP server. I am currently setting consumer.bridgeErrorHandler=true at the from URI. When it cannot connect the server, exception is thrown and caught by error handler. If I do not set consumer.bridgeErrorHandler=true, then when an

Re: Apache Camel Base64 Encoding Issue: java.lang.NoSuchMethodError

2015-01-26 Thread yeandone
Hi, Willem. It seems there might be a different version of common codec in the class patch. In our QA server, there are many different projects installed and they share the same JVM\Classpath so it seems there may be another maven project is currently using a lower version of commons codec jar.

Re: Apache Camel Base64 Encoding Issue: java.lang.NoSuchMethodError

2015-01-25 Thread yeandone
Hi, Claus, Willem, and Camel Friends. Do you have any idea how to resolve the issue above? Any idea and help will be greatly appreciated. Thanks. Will -- View this message in context:

Apache Camel Base64 Encoding Issue: java.lang.NoSuchMethodError

2015-01-23 Thread yeandone
Hi, Claus and Camel Friends. I am encountering an issue with base64 marshal while my code is running on QA server. When the code was deployed to dev server, it didn't have any issues. But recently when it's deployed to QA server, it couldn't perform base64 marshal which specified in my

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-13 Thread yeandone
Reji On 9 Jan 2015 12:36, yeandone [hidden email] http:///user/SendEmail.jtp?type=nodenode=5761660i=0 wrote: Hi, All. I have an issue deleting a file with delete=true from a SFTP consumer. My route looks like the following: route id=A_ROUTE from uri= sftp:[hidden

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-13 Thread yeandone
the consumer in onExchangeDone http://camel.apache.org/routepolicy.html On Mon, Jan 12, 2015 at 8:31 AM, yeandone [hidden email] http:///user/SendEmail.jtp?type=nodenode=5761580i=0 wrote: Will there be any risks if I stop route like that? After the exchange is processed by both end endpoints direct

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-11 Thread yeandone
properly without any risks? On Sun, Jan 11, 2015 at 9:36 PM, Claus Ibsen-2 [via Camel] ml-node+s465427n5761572...@n5.nabble.com wrote: On Sun, Jan 11, 2015 at 3:48 AM, yeandone [hidden email] http:///user/SendEmail.jtp?type=nodenode=5761572i=0 wrote: Thanks, Claus. Will try a new version

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-10 Thread yeandone
+s465427n5761545...@n5.nabble.com wrote: Try with newer release, there may have been a bug fix On Fri, Jan 9, 2015 at 6:47 PM, yeandone [hidden email] http:///user/SendEmail.jtp?type=nodenode=5761545i=0 wrote: HI, Claus. Thanks for the prompt reply! I am using Camel 2.12. I also tried adding

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-09 Thread yeandone
HI, Claus. Thanks for the prompt reply! I am using Camel 2.12. I also tried adding aync=true in controlbus to uri=controlbus:route?routeId=A_Routeamp;aync=trueamp;action=stop / It does help delete the file, but it has some issues with polling. Until the file get deleted and control bus

Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-08 Thread yeandone
Hi, All. I have an issue deleting a file with delete=true from a SFTP consumer. My route looks like the following: route id=A_ROUTE from uri=sftp:am...@xxx.com?password=xxxamp;delete=trueamp;filter=#fileFilter/ choice when

How to delete a file if any exception happens

2015-01-08 Thread yeandone
Hi, All. I have a question on how to delete a file if any exception happens: route id=eroute from uri=sftp://abc.com/pickupamp;preMove=process / marshal ref=myJaxb / to uri=sftp://abc.com/done; /