Re: How to change directory while using sftp component

2010-09-28 Thread Lorrin
I just bumped into the same problem. I'm running 2.5-SNAPSHOT. SftpConsumer 2010-09-28 10:31:28,094 -- ERROR -- Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot retrieve file: tmp/mult/dummy-5.log] org.apache.camel.component.file.GenericFileOperationFailedE

Re: How to change directory while using sftp component

2010-09-28 Thread Lorrin
Hi, thanks for the reply. It sounds like you're saying I should use a URI relative to the user's home directory and then it will work. That's true and I'm using that as a work-around for now. But it seems like a bug to me that I am constrained to polling within the user's home directory. If I sp

snapshots stale?

2010-09-06 Thread Lorrin Nelson
Browsing around https://repository.apache.org/content/repositories/snapshots/org/apache/camel/, it looks like all the JARs were last built on August 10th. -Lorrin

aggregation from single vs multiple original exchanges

2010-09-10 Thread Lorrin Nelson
/splitter.html involve a single original exchange whereas http://camel.apache.org/aggregator.html are primarily multiple sources, but I don't see what the key distinction in the Java DSL is. Cheers -Lorrin

Re: Managing configuration in components, routes, projects

2010-09-22 Thread Lorrin Nelson
t;jms-opps", this.amqc); //finally, hook into Camel context: this.camelContext.addRoutes(this); } Cheers -Lorrin On Sep 22, 2010, at 1:41 PM, David Yang wrote: > > I'm curious how others are solving the problem of managing configuration > across various ro

sftp -> seda yields GenericFileOperationFailedException during GenericFileOnCompletion move processing

2010-09-28 Thread Lorrin Nelson
t;${body}"); But this fails. It does log the contents of the file, but then dies trying to move the file. Exception below. from(uri).to("seda:foobar"); from("seda:foobar").log("${body}"); Thanks for any advice! -Lorrin RemoteFilePollingC

Re: How to change directory while using sftp component

2010-09-29 Thread Lorrin Nelson
8) at java.lang.Thread.run(Thread.java:637) On Sep 29, 2010, at 2:46 AM, Claus Ibsen wrote: > Hi > > I have committed a fix to the SFTP component. Can you try with latest > source code from trunk? > > > On Tue, Sep 28, 2010 at 7:36 PM, Lorrin wrote: >> &g

Re: How to change directory while using sftp component

2010-09-29 Thread Lorrin Nelson
tDirectory(SftpOperations.java:350) ... 15 more Cheers! -Lorrin On Sep 29, 2010, at 12:32 PM, Claus Ibsen wrote: > Hi > > Can you try again with latest source code from trunk. I have changed > the logic to change dir one folder at a time. > > > On Wed, Sep 29, 201

Re: How to change directory while using sftp component

2010-10-01 Thread Lorrin Nelson
4: at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:285) at org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:370) ... 16 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(S

Re: How to change directory while using sftp component

2010-10-04 Thread Lorrin Nelson
ith no leading slash, unlike the polling stage where it says "doPollDirectory from absolutePath: /tmp/activity_logs". Cheers -Lorrin SftpConsumer 2010-10-04 15:45:07,445 -- INFO -- Connected and logged in to: sftp://tom...@host:22 SftpConsumer 2010-10-04 15:45:07,494 -- TRACE -- doPo

Re: How to change directory while using sftp component

2010-10-05 Thread Lorrin Nelson
8,367 -- TRACE -- Changing directory: >> activity_logs That looks awfully like Camel isn't even asking the SFTP library to go to / first when it comes time to retrieve the file. Cheers! -Lorrin On Oct 5, 2010, at 12:02 AM, Claus Ibsen wrote: > Hi > > Great that the relative works.

Re: How to change directory while using sftp component

2010-10-05 Thread Lorrin Nelson
if (path != null) { changeCurrentDirectory("/" + path); } Cheers -Lorrin ScheduledPollConsumer 2010-10-05 11:05:48,540 -- TRACE -- Starting to poll: Endpoint[sftp://tom...@host//tmp/pitch_activity_logs/?delay=15000&idempotent=true&idempotentRepository=%23apacheLogFilenameRepositoryAccep

DefaultShutdownStrategy can't shutdown DefaultErrorHandler's retries?

2010-11-22 Thread Lorrin Nelson
occurring), it proceeds. * DefaultShutdownStrategry logs "Timeout occurred. Now forcing the routes to be shutdown now.", but actually does nothing. The route keeps retrying and Tomcat still can't shutdown. Is this broken or have I misconfigured somehow? -Lorrin

Re: DefaultShutdownStrategy can't shutdown DefaultErrorHandler's retries?

2010-11-26 Thread Lorrin Nelson
d place back on JMS queue * or decide message has been in system for too many days, move to dead letter queue Is it safe to have route #2 sometimes place exchanges back on the same JMS queue it's reading from? Would something else be better suited than JMS? Cheers -Lorrin On Nov