RE: Seconds since 1970

2015-04-17 Thread Hans Orbaan
Hi, Try java.lang.System -Oorspronkelijk bericht- Van: angelo.rlcosta [mailto:angelo.rlco...@gmail.com] Verzonden: Friday 17 April 2015 16:49 Aan: users@camel.apache.org Onderwerp: Re: Seconds since 1970 Hi Guys, I'm doing as you told me but i am now getting a No bean could be found i

Re: Camel SFTP,quartz2 component gives:Cannot retrieve file :caused by GenericFileOperationFailedException,when polling multiple files from sftp

2016-04-23 Thread Hans Orbaan
Hi, Does the issue also occur when you use a delay and not a quartz2 schedule? If it does not occur with a delay it could be because of an already fixed issue: https://issues.apache.org/jira/browse/CAMEL-9752 Van: nikhilesh Verzonden: vrijdag 22 april 2

RE: Manually trigger a scheduled route for testing

2016-05-20 Thread Hans Orbaan
if (null == this.scheduler) { QuartzComponent quartz = exchange.getContext().getComponent("quartz2", QuartzComponent.class); this.scheduler = quartz.getScheduler(); } return this.scheduler; } {code} Met vriendelijke groet, Docdata Commerce B.V. Hans Or

Error in smtp/mail documentation

2016-05-24 Thread Hans Orbaan
like cc and bcc With kind regards, Hans Orbaan

RE: File Consumer Exchange

2016-06-02 Thread Hans Orbaan
Hi, You can use the "no operation" functionality. See noop=true @ http://camel.apache.org/file2.html -Oorspronkelijk bericht- Van: bwest [mailto:bwesterfi...@gmail.com] Verzonden: Friday 3 June 2016 1:19 Aan: users@camel.apache.org Onderwerp: File Consumer Exchange Can I ignore an exc

RE: Problem transfer from SMB to FTP OutMemory Java Heap Space

2016-06-03 Thread Hans Orbaan
not really locate the issue though. With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: Pontus Ullgren [mailto:ullg...@gmail.com] Verzonden: Friday 3 June 2016 13:15 Aan: users@camel.apache.org Onderwerp: Re: Problem transfer from SMB to FTP OutMemory Java Heap Space

RE: FileFilter to error queue

2016-06-15 Thread Hans Orbaan
Hi, You could not filter and then use a bean to throw an exception if they need to move to failed. -Oorspronkelijk bericht- Van: redpower1989 [mailto:redpower1...@hotmail.com] Verzonden: Wednesday 15 June 2016 16:02 Aan: users@camel.apache.org Onderwerp: FileFilter to error queue Hello

failing move to processed, processing over and over again

2016-06-29 Thread Hans Orbaan
repository so they won't be processed as many times. Does anyone have a workable solution to prevent processing over and over again which can be used with current versions? Any solution that is feasible for future releases? Thanks for any help!!1 With kind regards, Hans Orbaan

RE: failing move to processed, processing over and over again

2016-06-29 Thread Hans Orbaan
@camel.apache.org Onderwerp: Re: failing move to processed, processing over and over again You can move the failed files to an error folder. But you need to think generally about error handling and how you want to deal with that. On Wed, Jun 29, 2016 at 11:43 AM, Hans Orbaan wrote: > Hi All, > &g

Re: FTP Consumer Issue - File operation failed: 227

2016-07-24 Thread Hans Orbaan
Did you try disconnect=true? Op 24 jul. 2016 1:16 p.m. schreef Michele : Hi everyone, I have these routes (Read several file from FTP folder and process each of them) ftp://username@host?password=x&readLock=changed&delete=true&&passiveMode=true"; /> After several succes

Re: PollEnrich with file language

2016-09-08 Thread Hans Orbaan
Hi, Can you try $simple{file:onlyname.noext}_$simple{date:now:yyyMMddHHmmssSSS}.$simple{file:name.ext}. Not sure if it will work though. With kind regards, Hans Orbaan Van: souciance Verzonden: donderdag 8 september 2016 20:16 Aan: users@camel.apache.org

Re: PollEnrich with file language

2016-09-09 Thread Hans Orbaan
What os are you using? Your test worked Fine on windows Op 9 sep. 2016 3:12 p.m. schreef souciance : The strange thing is, it does not matter what expression I use, anything after &move= turns into a folder. I think pollEnrich with dynamic endpoints has an issue with move. Basically this fails:

RE: Copy current file in a folder

2016-12-06 Thread Hans Orbaan
Use antInclude or implement a fileFilter -Oorspronkelijk bericht- Van: axdz [mailto:hoida...@gmail.com] Verzonden: Tuesday 6 December 2016 11:38 Aan: users@camel.apache.org Onderwerp: Copy current file in a folder Dear all, I have a route from("file:D:\\folder1").to("file:D:\\folder2").

RE: Copy current file in a folder

2016-12-08 Thread Hans Orbaan
You could try stuff like this: Date now = new Date(); now.setHours(5); //now.setHours(17); long longTime = now.getTime(); return longTime >= file.getLastModified(); But you are asking basic Java questions which you could better google. You could also try a cron.schedule on your "from" and only l

RE: Camel Multicast behaving strangely - please help

2016-12-09 Thread Hans Orbaan
Can you try: multicast(.) .to("direct://route1") .to("direct://route2") -Oorspronkelijk bericht- Van: nishat [mailto:nishat.dhil...@gmail.com] Verzonden: Friday 9 December 2016 15:36 Aan: users@camel.apache.org Onderwerp: Camel Multicast behaving strangely - please help Hello All i

RE: SFTP Multiple Files Using Camel

2017-01-22 Thread Hans Orbaan
Hi, This might help (in Java): from(file://) .threads(10) .to(SFTP); -Oorspronkelijk bericht- Van: praneeth101 [mailto:praneeth...@yahoo.com] Verzonden: Friday 20 January 2017 21:27 Aan: users@camel.apache.org Onderwerp: SFTP Multiple Files Using Camel Hi, I am using spring XML for

RE: NoTypeConversionAvailableException

2015-05-11 Thread Hans Orbaan
Hi, To generate @XmlRootElement annotations apparently you need to use anonymous inner types (unrelated example): And not: Other option would be to wrap it in a JAXBElement

null body after transform method exception

2015-06-14 Thread Hans Orbaan
Hello all, When an exception is thrown from a transform method I lose the content of the message body. Is that intentional or a bug? Because it does not happen when an exception is thrown from a bean call. .bean(ErrorBean.class, ErrorBean.METHOD) Vs. .transform().method(ErrorBean.class, Error

RE: null body after transform method exception

2015-06-14 Thread Hans Orbaan
().getBody(String.class); Assertions.assertThat(body).isEqualTo(BODY); throw new AssertionError(); } } } Van: Hans Orbaan [mailto:hans.orb...@docdata.eu] Verzonden: Monday 15 June 2015 8:51 Aan: users@camel.apache.org Onderwerp: null body after transform method exception He

RE: null body after transform method exception

2015-06-15 Thread Hans Orbaan
exception. But still Camel should behave the same so there is likely a little bug. But I suspect its because you use assertion and not a regular exception. On Mon, Jun 15, 2015 at 8:50 AM, Hans Orbaan wrote: > Hello all, > > > > When an exception is thrown from a transform method I l

RE: route specification in web.xml

2015-06-28 Thread Hans Orbaan
Hi, Apparently all code snippets on camel.apache.org are invisible at the moment. I think it is a syntax highlighter issue. You can still look up the code in the page source. Just right click and view page source -Oorspronkelijk bericht- Van: Tim Dudgeon [mailto:tdudgeon...@gmail.com]

RE: Idempotent consumer query

2015-08-27 Thread Hans Orbaan
Hi, You might want to consider implementing your own IdempotentRepository. You can increment a counter when add or confirm is called. Then the contains method should only return true when you have reached 5. With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: gilboy

Adding methods to the Route interface

2015-10-07 Thread Hans Orbaan
going on when using methods like isStarted, isStopped, etc. Anyway, I think the Route interface could use more methods from the StatefulService interface. With kind regards, Hans Orbaan

move to failed folder, with onException in place

2015-10-29 Thread Hans Orbaan
that been done, has this been fixed? http://camel.465427.n5.nabble.com/Component-file-move-and-moveFailed-td5685631.html I'm using 2.16.1-SNAPSHOT at the moment. Met vriendelijke groet, Docdata Commerce B.V. Hans Orbaan Developer Docdata Commerce Energieweg 2 5145 NW Waalwijk t +31 (0)4

RE: Characters getting escaped when read from properties file

2015-11-02 Thread Hans Orbaan
Hi, Use: RAW(yourPassword) See: http://camel.apache.org/configuring-camel.html With kind regards -Oorspronkelijk bericht- Van: Gustav Sinder [mailto:gustav.sin...@ferrologic.se] Verzonden: Monday 2 November 2015 14:46 Aan: users@camel.apache.org Onderwerp: Characters getting escaped w

RE: move to failed folder, with onException in place

2015-11-04 Thread Hans Orbaan
onden: Saturday 31 October 2015 18:26 Aan: users@camel.apache.org Onderwerp: Re: move to failed folder, with onException in place I think you need to tell us a bit more before we can help. Maybe show a bit more route code what you attempt. On Thu, Oct 29, 2015 at 2:28 PM, Hans Orbaan wrote: &g

RE: date:command:pattern

2016-02-10 Thread Hans Orbaan
Hi, Also you could try the more verbose way: $simple{date:now:yyyMMdd}. This is sometimes necessary. I am not sure why. Think it had something to do with loading from property files. With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: Claus Ibsen [mailto:claus.ib

RE: ampersand in ftp password

2016-03-01 Thread Hans Orbaan
Hi, try password=RAW(help&me) -Oorspronkelijk bericht- Van: yogu13 [mailto:yog...@gmail.com] Verzonden: Tuesday 1 March 2016 14:48 Aan: users@camel.apache.org Onderwerp: Re: ampersand in ftp password Hi, you could try using property placeholders

camel-jcifs SMB issues

2016-03-03 Thread Hans Orbaan
org.apacheextras.camel.component.jcifs.SmbProducer.process(SmbProducer.java:70) at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ... 21 more Any help and / or pointers are appreciated! With kind regards, Hans

null safe operator on exceptions

2016-03-04 Thread Hans Orbaan
6-03-04 09:04:46,978 [main] org.apache.camel.processor.FatalFallbackErrorHandler - ERROR - \--> New exception on exchangeId: ID-PC0480-55853-1457078686408-0-2 Is this something that could/should be fixed or are there reasons why that doesn't work? With kind regards, Hans Orbaan

Quartz schedule too many workers in route

2016-03-16 Thread Hans Orbaan
Hello all, We have a few very busy routes that are throwing FileNotFoundExceptions when processing files (full stacktrace below). Searching for those filenames in the log it is very clear that those files have already been processed in the past minute and thus are not there. After removing the

RE: Quartz schedule too many workers in route

2016-03-21 Thread Hans Orbaan
quartz component to trigger routes, but I would much rather keep using the file, ftp, etc components with a schedule. Any help would be appreciated. With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: Hans Orbaan [mailto:hans.orb...@docdata.eu] Verzonden: Wednesday 16 March 2016

RE: Quartz schedule too many workers in route

2016-03-21 Thread Hans Orbaan
rtz2&scheduler.triggerId=nl_bij-export-to-archive-276) to(file:///data/work/sl/work-archive/work/276/) But the same goes for any component used it looks like (ftp, sftp, etc) Thanks!! With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: Claus Ibsen [mailto:claus.ib...@gmai

RE: Not move file on custom exception thown (file component)

2016-03-22 Thread Hans Orbaan
Hi, Can't you change the permissions of the file to avoid it being written/moved? With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: fxthomas [mailto:felix.tho...@gmail.com] Verzonden: Tuesday 22 March 2016 13:31 Aan: users@camel.apache.org Onderwerp: Re: Not move fi

RE: Quartz schedule too many workers in route

2016-03-23 Thread Hans Orbaan
scheduler or when using a delay. Thanks! With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: Hans Orbaan [mailto:hans.orb...@docdata.eu] Verzonden: Monday 21 March 2016 16:52 Aan: users@camel.apache.org Onderwerp: RE: Quartz schedule too many workers in route Hi Claus, It was in

RE: Quartz schedule too many workers in route

2016-03-23 Thread Hans Orbaan
. Hope this helps... With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: Hans Orbaan [mailto:hans.orb...@docdata.eu] Verzonden: Wednesday 23 March 2016 9:52 Aan: users@camel.apache.org Onderwerp: RE: Quartz schedule too many workers in route Hi Claus, Did you have a chance

RE: Camel ftp component : JSCH-0.1.44 Vs OpenSSH_6.6.1 issue: Leads to error : com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read

2016-03-30 Thread Hans Orbaan
} {code} It simply makes gssapi-with-mic the last authentication that will be used when connecting. We had timeouts because of that authentication with a few servers... With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: Claus Ibsen [mailto:claus.ib...@gmail.com] Verzonden: We

RE: Camel ftp component : JSCH-0.1.44 Vs OpenSSH_6.6.1 issue: Leads to error : com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read

2016-03-30 Thread Hans Orbaan
thread through the connection procedure to find out what was going wrong. Starting in RemoteFileConsumer. With kind regards, Hans Orbaan -Oorspronkelijk bericht- Van: sharma_arun_se [mailto:arun.kaun...@gmail.com] Verzonden: Wednesday 30 March 2016 15:15 Aan: users@camel.apache.org