Re: [camel-cxf] Stripping headers

2009-06-22 Thread Willem Jiang
Hi Thanks for your test case. I already committed a quick fix of the issue. Can you try to download the latest snapshot[1] and give it a try? BTW, there are some error on the current CAMEL 2.0 snapshot deploying, if you are using Camel 2.0 snapshot , you may need to use svn download the code and b

Issues with Quickstart docs and examples

2009-06-22 Thread xgeoff
I don't know if anyone else had these problems with the quickstart example in the Camel docs, but it took me a while to figure out how to get it to work. Here is my final test class (working) with some commentary about what is in the docs, and why they didn't work for me, and why I can't understa

Re: Bug in ScheduledPollingConsumer? (Unit-Test added)

2009-06-22 Thread Siegfried.Wirth
Wrote a small unit test demonstrating the issue: http://www.nabble.com/file/p24151188/ScheduledPollingConsumerIssueTest.java ScheduledPollingConsumerIssueTest.java Hi, when testing some ftp functionality I found the following issue which may indicate a bug in ScheduledPollingConsumer: 1) I st

Bug in ScheduledPollingConsumer?

2009-06-22 Thread Siegfried.Wirth
Hi, when testing some ftp functionality I found the following issue which may indicate a bug in ScheduledPollingConsumer: 1) I start a route using FtpConsumer (and thus a ScheduledPollingConsumer) 2) This route encounters an error, because the ftp server is not available and thus an excpetion is

Re: XML Validation throws NoXmlBodyValidationException

2009-06-22 Thread Hadrian Zbarcea
And we highly appreciate contributions :). If you want to have some fun and try writing the unit test yourself that'd be awesome. Cheers, Hadrian On Jun 22, 2009, at 11:36 AM, Claus Ibsen wrote: Hi This is a bug. The InputStreamCache is not convertable to DOMSource as the validator expect

Re: XML Validation throws NoXmlBodyValidationException

2009-06-22 Thread Claus Ibsen
Hi This is a bug. The InputStreamCache is not convertable to DOMSource as the validator expects. The other cache types looks okay at first glance. Do you mind creating a ticket in JIRA and attach you xsd and the route you use? Then we can use that as a base for an unit test to implement a fix.

Re: configure SEDA URI/options with Spring PropertyPlaceholderConfigurer?

2009-06-22 Thread Doug Douglass
Thanks for the links Willem. I hadn't seen/used the endpoint element before -- it seems like a much "cleaner" solution than the one I had arrived at. Cheers! On Sat, Jun 20, 2009 at 9:56 PM, Willem Jiang wrote: > Sorry , I forgot to past the FAQ URL before click the send button. > > Here is the l

XML Validation throws NoXmlBodyValidationException

2009-06-22 Thread SwenVogel
Hi, i created the following simple route: from("jetty:http://localhost:8080/test";).to("validator:file:c:\\ http://www.nabble.com/file/p24147734/in.xsd in.xsd "); and after sending a sample xml file ( http://www.nabble.com/file/p24147734/in.xml in.xml ) with curl: curl -...@in.xml http://local

Re: [camel-cxf] Stripping headers

2009-06-22 Thread S. Ali Tokmen
Cool 8) I've also attached readable headers and the sample code to the bug. Thanks S. Ali Tokmen savas-ali.tok...@bull.net Office: +33 4 76 29 76 19 GSM:+33 66 43 00 555 Bull, Architect of an Open World TM http://www.bull.com Willem Jiang a écrit : Hi, You hit a bug of camel-cxf's He

Re: Information required about IN/OUT pattern of splitter EIP

2009-06-22 Thread Charles Moulliard
+1 ;-) On Mon, Jun 22, 2009 at 12:11 PM, Claus Ibsen wrote: > Hi > I created a ticket for this > https://issues.apache.org/activemq/browse/CAMEL-1722 > > And have committed the fix right now. > > When you upgrade > to latest camel core and using AggregationStrategy then the body is > now always

Re: Message body lost when message moved by exception clause

2009-06-22 Thread Claus Ibsen
On Mon, Jun 22, 2009 at 12:10 PM, RuneB wrote: > > No, it's not the JAXB unmarshaller that throws the exception. Unmarshalling > seems to work fine. > > It's for exceptions thrown *after* unmarshalling that the message body is > lost. My testing indicates that the presence of the unmarshalling st

Re: Information required about IN/OUT pattern of splitter EIP

2009-06-22 Thread Claus Ibsen
Hi I created a ticket for this https://issues.apache.org/activemq/browse/CAMEL-1722 And have committed the fix right now. When you upgrade to latest camel core and using AggregationStrategy then the body is now always in IN and OUT is null. This eliminates the confusion as you should just always

Re: Message body lost when message moved by exception clause

2009-06-22 Thread RuneB
No, it's not the JAXB unmarshaller that throws the exception. Unmarshalling seems to work fine. It's for exceptions thrown *after* unmarshalling that the message body is lost. My testing indicates that the presence of the unmarshalling step causes message body loss if an exception occurs afterwar

Re: Camel http: How to disable cookies ?

2009-06-22 Thread Claus Ibsen
On Mon, Jun 22, 2009 at 11:24 AM, Jörn Kottmann wrote: > Claus Ibsen wrote: > >> Hi Jorn >> Could you verify if this works. Then I would like to add a little bit of >> documentation to the wiki how to disable cookies. >> >> > Yes, it works thanks. > > BTW, I am a committer over at Apache UIMA and

Re: Camel http: How to disable cookies ?

2009-06-22 Thread Jörn Kottmann
Claus Ibsen wrote: Hi Jorn Could you verify if this works. Then I would like to add a little bit of documentation to the wiki how to disable cookies. Yes, it works thanks. BTW, I am a committer over at Apache UIMA and there we use docbook for our documentation, maybe thats also something for

Re: [camel-cxf] Stripping headers

2009-06-22 Thread Willem Jiang
Hi, You hit a bug of camel-cxf's HeaderFilter, I just went through the code, and find we should add the below lines in the initialize() method of CxfHeaderFilterStrategy. // filter headers begin with "Camel" or "org.apache.camel" setOutFilterPattern("(Camel|org\\.apache\\.camel)[\\.|a-z|A-z|0-9]*

Re: Message body lost when message moved by exception clause

2009-06-22 Thread Claus Ibsen
On Thu, Jun 18, 2009 at 3:28 PM, RuneB wrote: > > A couple of more points: > > * 1.6.0 behaves like 1.6.1, as far as I can tell. > > * Loss of message body only occurs if *unmarshalling has taken place*. > We've > an element like this: > > contextPath="no.spk.felles.domene.melding

Re: etl example and message conversion

2009-06-22 Thread Claus Ibsen
Hi Yeah there is an issue there. Will create a ticket for this bug https://issues.apache.org/activemq/browse/CAMEL-1735 On Mon, Jun 22, 2009 at 10:29 AM, jrobens wrote: > > Running it as follows: > > #cd camel-example-etl > #mvn clean compile camel:run > -- > View this message in context: > http

Re: etl example and message conversion

2009-06-22 Thread jrobens
Running it as follows: #cd camel-example-etl #mvn clean compile camel:run -- View this message in context: http://www.nabble.com/etl-example-and-message-conversion-tp24142904p24143456.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: etl example and message conversion

2009-06-22 Thread Claus Ibsen
Hi How do you start / run the sample? On Mon, Jun 22, 2009 at 10:10 AM, jrobens wrote: > > Error from the etl example is: > > org.apache.camel.RuntimeCamelException: > org.apache.camel.NoTypeConversionAvailableException: No type converter > available to convert from type: org.apache.camel.examp

[camel-cxf] Stripping headers

2009-06-22 Thread S. Ali Tokmen
Hello I'm currently doing advanced experiences with CAMEL-CXF, namely MTOM support. It's working as a marvel, the only points to be careful on: 1. The javax.xml dependency doesn't have MTOM classes and that you'll need to use the Geronimo packages 2. It's the client that decides that

Re: etl example and message conversion

2009-06-22 Thread jrobens
Error from the etl example is: org.apache.camel.RuntimeCamelException: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.camel.example.etl.PersonDocument to the required type: org.apache.camel.example.etl.CustomerEntity with value P

Re: etl example and message conversion

2009-06-22 Thread jrobens
Sure - as per camel etl example public class EtlRoutes extends SpringRouteBuilder { public void configure() throws Exception { from("file:src/data?noop=true").convertBodyTo(PersonDocument.class) .to("jpa:au.com.hearing.talingaBroker.CustomerEntity"); // the follow

Re: etl example and message conversion

2009-06-22 Thread Willem Jiang
Hi, Can you show use your camel routing rule? It's hard to locate the error just from the Exception that you show us. Willem jrobens wrote: > Hi > > I am using M2 and trying to run the etl example. > > Comes up with the following error: > org.apache.camel.RuntimeCamelException: > org.apache.

etl example and message conversion

2009-06-22 Thread jrobens
Hi I am using M2 and trying to run the etl example. Comes up with the following error: org.apache.camel.RuntimeCamelException: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: au.com.hearing.talingaBroker.PersonDocument to the required type