Re: [Very Likely Bug] Adding onException into RouteBuilder overwrites assigned route ID with default route ID

2013-01-23 Thread Mikael Fernandus Simalango
Oh, This is a very bad call. Thanks Claus. I just checked the source and found that id() is only for node ID. Should be much more cautious next time. Regards, Mike On Wed, Jan 23, 2013 at 4:51 PM, Claus Ibsen wrote: > Hi > > You should use .routeId to assign the ID of the route. > >

Re: [Very Likely Bug] Adding onException into RouteBuilder overwrites assigned route ID with default route ID

2013-01-23 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 9:00 AM, Mikael Fernandus Simalango wrote: > Oh, > > This is a very bad call. Thanks Claus. I just checked the source and > found that id() is only for node ID. Should be much more cautious next > time. > Yeah I have updated the javadoc of the code, to refer people to rout

Re: Found a bug in overriding URI using camel-http4 + documentation problem

2013-01-23 Thread Willem.Jiang
Hi, I just went through the unit test, I just found there is some miss understand between the URI that http4 endpoint use and the URI that the http4 producer use. As you know there are more than one component which can send the request to the HTTP server, such as camel-http, camel-http4 and camel

Exceptions management

2013-01-23 Thread developpef
Hello, This message to get more explanations on exceptions management on routes. Here is my app : I created a custom MyException extending RuntimeCamelException (wich extends Exception). My routes are : onException(MyException.class).handled(true).log("FATAL").end(); from("...").onException(E

Re: Tokenize Producing XML That is Not Well-Formed

2013-01-23 Thread Christian Müller
You should may consider to implement your own splitter bean for this case. Best, Christian Sent from a mobile device Am 23.01.2013 08:05 schrieb "gheidorn" : > Alright that wasn't quite it. I continue to have problems with tokenizing > elements missing optional children as originally stated. >

Producing files to ftp now working in 2.10.3

2013-01-23 Thread Wuyts Diether
Hi, We are trying to create a simple route that writes files to an ftp server. But we're unable to get this to work using version 2.10.3. However, if we use version 2.10.2 our Route is working correctly, and a file is created on the ftp server. Below you can see 2 traces . Our endpoint is: ft

Re: Producing files to ftp now working in 2.10.3

2013-01-23 Thread Aki Yoshida
There is a known bug ( reported in CAMEL-5989) introduced 2.10.2 for sftp using the stepwise directory traversal that results in a similar error. But yours is for ftp and it is happening independent of the stepwise property setting, it seems to be different. Could you describe which variations you

Re: Found a bug in overriding URI using camel-http4 + documentation problem

2013-01-23 Thread lleclerc
Thanks for the quick responses, the modified unit test and the update in the doc ! I would add a sentence in the wiki to say the Exchange.HTTP_URI exclude any CAMEL_URI. Because the current example can be counter intuitive since there is a camel component called "http" too. Thanks again ! -- V

Python in camel classpath

2013-01-23 Thread crina
Hello, I managed to do a in a spring xml route But can I execute a python script which is not on the classpath? (imagine users will configure files and that i will dynamically create my camel routes using their python files) Thank you Crina -- View this message in context: http://camel.46542

Re: Producing files to ftp now working in 2.10.3

2013-01-23 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 2:10 PM, Wuyts Diether wrote: > Hi, > > We are trying to create a simple route that writes files to an ftp server. > But we're unable to get this to work using version 2.10.3. > > However, if we use version 2.10.2 our Route is working correctly, and a file > is created on

Re: Producing files to ftp now working in 2.10.3

2013-01-23 Thread Diether
We tried with stepwise true/false Also tried the different file separators (UNIX, Windows or the default). All with the same result. If the directory doesn’t exist, it is created on the correct location though. We also tried the sftp component, but it's also not working. Instead of a 550 we just

Re: Tokenize Producing XML That is Not Well-Formed

2013-01-23 Thread gheidorn
I attached my camel.xml configuration, but here is the route pseudocode where the issue lies: route sftp doTry to validator:my.xsd split strategyRef=myAggregationStrategy tokenize token=ad xml=true log message=in.body camel.xml

Re: Cannot change directory to: \

2013-01-23 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 4:40 PM, iyusuf wrote: > Can someone help. Can someone at least validate that my code syntax are > right? I am trying to introduce Camel to my organization as a viable > alternative option for integration tasks. > Use an earlier release of Camel which do not have this bug.

Re: Python in camel classpath

2013-01-23 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 2:11 PM, crina wrote: > Hello, > > I managed to do a in a > spring xml route > But can I execute a python script which is not on the classpath? (imagine > users will configure files and that i will dynamically create my camel > routes using their python files) > Thank you

add custom soap - header

2013-01-23 Thread Gabriel
Hi, I'am facing a problem adding an custom soap-header to an web-service request. My route is setup in pojo-mode and looks like this: abc123   I whant to invoke the route by sending an request – object to the direct – component

add custom soap - header

2013-01-23 Thread Gabriel Wetzler
Hi, I'am facing a problem adding an custom soap-header to an web-service request. My route is setup in pojo-mode and looks like this: abc123 I whant to invoke the route by sending an request – object to the direct – compo

Re: Tokenize Producing XML That is Not Well-Formed

2013-01-23 Thread gheidorn
I wrote a short JUnit and found that if the tag has a closing tag, then the tokenizeXML works correctly. If the tag is self-closing, then tokenizeXML fails. I have attached the JUnit and am currently walking the code to see if I can pinpoint the class that does the tokenizeXML to see if I can pat

Re: Tokenize Producing XML That is Not Well-Formed

2013-01-23 Thread gheidorn
I tracked the code back to the TokenXMLPairExpressionIterator, which as the name indicates, doesn't check to see if the token is self-closing. I'm going to open a JIRA Issue to see if we can build in support for self-closing XML tokens. I'll see if I can submit a patch for review today. -- Vie

Re: Tokenize Producing XML That is Not Well-Formed

2013-01-23 Thread gheidorn
Christian, I created a JUnit that illustrates the issue (see attached). I believe we should enhance the TokenXMLPairExpressionIterator to account for self-closing XML tokens. If you agree, I'll submit a JIRA issue and can work on a patch. -- View this message in context: http://camel.465427.n

Re: Cannot change directory to: \

2013-01-23 Thread Diether
I had a similar problem. 2.10.2 worked for me. -- View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722p5726082.html Sent from the Camel - Users mailing list archive at Nabble.com.

Websphere 6.1.0.45: Unable to return data from a camel-cxf component (POJO mode)

2013-01-23 Thread panzerhans
I have created a CXF webservice and exposed it with camel. The webservice is code first (JSR-181) annotated Java class, springed up in my application context. The class looks like this: @WebService(name="DataExport", serviceName="DataExport", targetNamespace="com.somecompany.dataexport.v1") publi

Re: Websphere 6.1.0.45: Unable to return data from a camel-cxf component (POJO mode)

2013-01-23 Thread panzerhans
NB: Camel version: 2.6.0 (latest possible on Websphere 6.1). -- View this message in context: http://camel.465427.n5.nabble.com/Websphere-6-1-0-45-Unable-to-return-data-from-a-camel-cxf-component-POJO-mode-tp5726083p5726084.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Tokenize Producing XML That is Not Well-Formed

2013-01-23 Thread Christian Müller
+1 We love contributions ;-) Have a look at http://camel.apache.org/contributing.html Best, Christian Sent from a mobile device Am 23.01.2013 17:37 schrieb "gheidorn" : > Christian, I created a JUnit that illustrates the issue (see attached). I > believe we should enhance the TokenXMLPairExpres

HTTP Endpoint construction in CamelSpringTest

2013-01-23 Thread Zemin Hu
I am trying to use CamelSpringTestSupport to build my unit tests. Most of my routes are in Spring XML format. Here is my first test case: public class SimpeRouteTest extends CamelSpringTestSupport { protected AbstractXmlApplicationContext createApplicationContext() { return

Filtering XML exchange body content

2013-01-23 Thread Martin Stiborský
Hello guys, is it possible with standard Camel weapons, to filter XML body with XPath to contain only selected data? I tried various combination of .setBody(), .XPath() and filter(). I believe the solution needs .setBody(), but I can't find the correct solution. Thanks! -- S pozdravem / Best reg

Possible bug with multicast shareUnitOfWork

2013-01-23 Thread fredbasset
Hi, I think I may have found a bug with error handling in shareUnitOfWork multicasts... unless I have fundamentally misunderstood something! Starting from the camel-archetype-spring archetype and just changing the context as follows I would expect the dead letter log to happen once per input m

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-23 Thread Christian Müller
Which JDK do you use (Oracle, IBM, OpenJDK, ...)? Best, Christian Sent from a mobile device Am 24.01.2013 07:37 schrieb "Thibault Cassan" : > Hi all, > > I am using Camel 2.10.2 on Karaf 2.2.9 (JDK 1.7.0_09 or 1.6.0_37, I tried > with both), and i am facing a curious behavior. > Here is how to r

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-23 Thread Thibault Cassan
Christian, I am using Oracle's JDK. Regards, Thibault 2013/1/24 Christian Müller > Which JDK do you use (Oracle, IBM, OpenJDK, ...)? > > Best, > Christian > > Sent from a mobile device > Am 24.01.2013 07:37 schrieb "Thibault Cassan" : > > > Hi all, > > > > I am using Camel 2.10.2 on Karaf 2.2.9

Re: Possible bug with multicast shareUnitOfWork

2013-01-23 Thread Willem.Jiang
Hi, I can reproduce this kind of error in the trunk by adding a simple unit test as you said. If I remove the shareUnitOfWork setting, the error handler can get expect numbers messages. So I just fill a JIRA CAMEL-6005[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-6005 Willem --

Re: How to avoid that "" with camel cxf

2013-01-23 Thread Charles Moulliard
Is it documented in camel-cxf wiki page ? If this is not the case can you please mention that info please On Tue, Jan 22, 2013 at 4:37 PM, Willem Jiang wrote: > Hi Charles, > Setting the fault flag can tell camel-cxf consumer to treat the response > as a fault message not a normal response. In t

Re: How to avoid that "" with camel cxf

2013-01-23 Thread Willem jiang
Hi Charles, It was a part of camel-cxf wiki page. Please do a double check out it[1] [1]http://camel.apache.org/cxf.html#CXF-HowtothrowaSOAPFaultfromCamel -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://will

Re: Filtering XML exchange body content

2013-01-23 Thread David Karlsen
Maybe try an xslt transform? Den 23. jan. 2013 23:26 skrev "Martin Stiborský" følgende: > Hello guys, > is it possible with standard Camel weapons, to filter XML body with XPath > to contain only selected data? > I tried various combination of .setBody(), .XPath() and filter(). > I believe the so