file-to-file copy gives unreliable results (not entire file is copied)

2015-06-02 Thread rwijngaa
Hi, I'm trying to reproduce a problem we have in production with one of our camel routes, in the process i found some strange behaviour when just copying a file with a simple blueprint camel route (see below). Small (zip) files seem to be copied correctly, but large files (i used 162MB)

Re: Parallel processing/multiple file consumer threads with readLock=changed and long timeout?

2015-06-02 Thread Tom Duncalf
Thanks Claus - unfortunately, there is a requirement to support existing client workflows, which are usually not able to upload a done file without additional development work on their end, and it seems that ProFTPD is not able to do this automatically. Are you aware of any way to prevent the

Re: file-to-file copy gives unreliable results (not entire file is copied)

2015-06-02 Thread rwijngaa
When i tweak the route some more (added options readLockTimeout and readLockCheckInterval), the succesrate seems to be 100% now. Is this expected behaviour? I mean, you would expect the files to be copied with a 100% successrate no matter what the (timing) options right ? Improved route: --

Re: How to react when there is a fixed period of inactivity (no traffic) in a route?

2015-06-02 Thread Claus Ibsen
Hi I have logged a ticket to add a start timestamp then its easier for you to know https://issues.apache.org/jira/browse/CAMEL-8824 On Tue, Jun 2, 2015 at 9:20 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Mon, Jun 1, 2015 at 12:26 PM, s.marjanovic slavisa.marjanovic...@gmail.com wrote: Hi,

Re: ConcurrentModificationException DefaulUnitOfWork.class

2015-06-02 Thread Claus Ibsen
Hi What version of Camel do you use? And can you tell us a bit more about which camel endpoints you use in the poll enricher? On Mon, Jun 1, 2015 at 4:36 PM, s.lefort s.lef...@artis.fr wrote: Hi, An error occurs in the class DefaulUnitOfWork. On line 216 (it.remove) throw this error because

Apache Camel Simple Language regex fails

2015-06-02 Thread tesla
Hi , I need a regex filter for msisdn(mobile telephone number) . I need to check first 3 digits then i need to check 2 following digits.First 3 digits should be 974 then following two digit should be 44.Therefore these two msisdns should pass : tel:+97444549697 and 97444549697. So I write the

Re: Parallel processing/multiple file consumer threads with readLock=changed and long timeout?

2015-06-02 Thread Claus Ibsen
Hi If possible then using done file names is IMHO a better strategy. Though that would require the other party to do this when it uploads to the FTP server. On Mon, Jun 1, 2015 at 6:10 PM, Tom Duncalf t...@tomduncalf.com wrote: Hi, I am building a Camel route to consume files uploaded by

Re: Can simple() be made to compare strings in a case insensitive way?

2015-06-02 Thread Claus Ibsen
Hi Yeah I am not sure if end users would be surprised if we change == to be case insensitive for strings? Or we could consider having =~ as an alternative comparison operator (although =~ may not be though as insensitive operator?) If we have a new operator or change the default behavior it

Re: file-to-file copy gives unreliable results (not entire file is copied)

2015-06-02 Thread rwijngaa
BTW: My colleague copying a 1GB file with the same blueprint route on Windows 8 seems to have no problem at all ! -- View this message in context: http://camel.465427.n5.nabble.com/file-to-file-copy-gives-unreliable-results-not-entire-file-is-copied-tp5767775p5767779.html Sent from the Camel -

Re: Parallel processing/multiple file consumer threads with readLock=changed and long timeout?

2015-06-02 Thread Claus Ibsen
Hi You could either try to implement your own read lock, or alternative try with a statefull file filter. Then in the filter you can return false for files that hasn't waited long enough and this allow to advance to the next file instead of blocking. Well in fact the read lock could also be

Re: Parallel processing/multiple file consumer threads with readLock=changed and long timeout?

2015-06-02 Thread Tom Duncalf
Thanks Claus - those are both interesting ideas, I'll give it some more thought! Thanks, Tom Tom Duncalf / Software Developer tomduncalf.com http://www.tomduncalf.com / @tomduncalf http://twitter.com/tomduncalf On 2 June 2015 at 10:04, Claus Ibsen-2 [via Camel]

Re: file-to-file copy gives unreliable results (not entire file is copied)

2015-06-02 Thread Claus Ibsen
The various read locks works differently on different file systems. Especially when another process is writing a large file, then changed and rename may require a higher timeout / check interval to ensure the file is really ready. On Tue, Jun 2, 2015 at 11:07 AM, rwijngaa

Re: Schematron component: Not supported: http://saxon.sf.net/feature/linenumbering

2015-06-02 Thread Ayache Khettar
Hi Dan I have written a simple schematron service which can be deployed into karaf: https://github.com/akhettar/zotix/tree/master/schematron-service. Hope this will help. Ayache On 1 June 2015 at 21:58, Davis, Daniel davi...@si.edu wrote: Thanks. I am grabbing a copy to build. -- Dan On

Jackson JSON Dataformat can not unmarshal what it has marshaled

2015-06-02 Thread Pontus Ullgren
Hi, I'm trying to build a solution when I marshal POJO into JSON and send over JMS to a remote machine. On the remote machine message is also consumed by a Camel route. However the JSON on the remote machine is unable to marshal the JSON that the dataformater created. To show the error I

Re: Can simple() be made to compare strings in a case insensitive way?

2015-06-02 Thread Pontus Ullgren
I would rather see a new operator than changing the behaviour of == On Tue, 2 Jun 2015 at 09:44 Claus Ibsen claus.ib...@gmail.com wrote: Hi Yeah I am not sure if end users would be surprised if we change == to be case insensitive for strings? Or we could consider having =~ as an

File Component : scheduledExecutorService throwing Error

2015-06-02 Thread Kondalarv
I am using scheduledExecutorService for File Component but I am getting the below Error. Could not find a suitable setter for property: scheduledExecutorService as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert

Failed to load type converters because of: Cannot find any type converter classes org.apache.camel.component.jetty.JettyConverter

2015-06-02 Thread cloud
hi all, I want to know , which jar or project include the class: org.apache.camel.component.jetty.JettyConverter . cause Exception show that I need this class ( the wired is that not the ClassNotFind Error ). Failed to load type converters because of: Cannot find any type converter classes

Re: Failed to load type converters because of: Cannot find any type converter classes org.apache.camel.component.jetty.JettyConverter

2015-06-02 Thread Willem Jiang
You need to put the camel-jetty-common jar in your war as well. 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 Wed, Jun 3, 2015 at 11:27 AM, cloud

Re: No component found with scheme: jetty in Intellij IDEA

2015-06-02 Thread Willem Jiang
It’s a common issue of Camel, you need to make sure the camel-jetty or camel-jetty{8|9}(if you uses Camel 2.15.x)  is in your class path from IDEA. Reimport the project from the pom module could help you with that.  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

No component found with scheme: jetty in Intellij IDEA

2015-06-02 Thread chunfeng tian
hi all, We recently made a decision that use Camel in our project . We should integrate the camel with springframework , and use servlet to redirect http rest querst to background inner-firewall server. I use camel-jetty as servlet server , the problem what I meet is that : when use console

Re: Caching the upstream queue

2015-06-02 Thread Ravindra Godbole
Camel stores information in various headers and information related to original queue can be captured from the same. Based on the scenario/use case this information can be used dynamically as well to route the message [ Routing slip EIP ]. Is this what you are looking for ? It will be great if

Caching the upstream queue

2015-06-02 Thread mohanradhakrishnan
I am new to EIP. Recently I came across code that serializes com.ibm.mq.jms.MQQueue. This is done in order to remember which queue to post to when the downstream queues - there are multiple layers of queues - respond later. Can someone help me understand how an integration framework caches or

When I use Xquery in Camel Route getting No script engine could be created for: xquery

2015-06-02 Thread MadhuB
Hi , please any one have idea on below error.I am using xquery inside camel route.xml as below: ?xml version=1.0 encoding=ASCII? routes xmlns=http://camel.apache.org/schema/spring; route xmlns:tns=urn:switchyard-quickstart:camel-saxon:0.1.0 from uri=switchyard://RoutingService/ log

IBM MQ putAsyncAllowed=1 is not valid

2015-06-02 Thread infopad
I have a Camel route that listens to a Queue where a C++/MQ client application publishes messages. The client application sets a parameter on the destination resulting that results in the following exception as listed below. Is there a way to get around this? A JMS listener application processes

Re: Tip: speed up camel-ftp download/upload by setting bufferSize on the FTPClient

2015-06-02 Thread Claus Ibsen
Hi Thanks for the tip. What Camel version do you use? I think we have fixed setting the default receive buffer size to 32kb in Camel 2.15.1 onwards. On Tue, Jun 2, 2015 at 3:51 PM, rwijngaa rino.van.wijngaar...@gmail.com wrote: Just a tip for those experiencing performance problems using ftp

why should I modify jre.properties to run camel osgi example in fuseesb

2015-06-02 Thread nono
to run camel-example-cxf-osgi\2.9.0 example on on Apache ServiceMix 4.x or Apache Karaf 2.2.x. it is required to do below change. why should I do this? a) edit the etc/jre.properties file to add the following packages to be exported jre-1.6=, \ com.sun.org.apache.xerces.internal.dom, \

Camel approach pipeinputstream Aggregator

2015-06-02 Thread Nicolas Palumbo
Hello, I need to aggregate content and write to a pipe because that's the way I do a streamed Mysql bulk load. I've done this in a very dirty approach, I'd like to hear how can I implement this in a more Camelish way: https://gist.github.com/npalumbo/a972a504bc8e7fff6ccc Thanks, Nico

Re: Caching the upstream queue

2015-06-02 Thread Claus Ibsen
Hi The JMS spec has standard set of headers for the destination and reply-to etc. On Tue, Jun 2, 2015 at 1:05 PM, Ravindra Godbole godbol...@gmail.com wrote: Camel stores information in various headers and information related to original queue can be captured from the same. Based on the

Tip: speed up camel-ftp download/upload by setting bufferSize on the FTPClient

2015-06-02 Thread rwijngaa
Just a tip for those experiencing performance problems using ftp download with the localWorkDirectory option. We've got a camel route that downloads a file via ftp and upload this file to another ftp server. Since the files grew big, we added the localWorkDirectory option. The performance was

Camel-fop does not work properly with ServiceMix 5.4.0 - error creating XSL-FO

2015-06-02 Thread vladimir
Hi! I try to use camel-fop with ServiceMix. I made a route in Eclipse, test it in Eclipse - everything is Ok. But after deploying it in ServiceMix I've got the error: *javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Element fo:simple-page-master is missing