Re: Exception on typeconversion, but result is ok?

2009-06-15 Thread cgveld
Hi, A colleague of mine found the problem. It seemed the problem wasn't in this piece of code indeed. The next piece of the total route picked up this exchange and caused the problem. In there, the xml was read from an InputStream. Since I put a Document on the exchange, this didn't work anymore

Re: Exception on typeconversion, but result is ok?

2009-06-08 Thread Claus Ibsen
Hi Ups the link was wrong. Here it is http://svn.apache.org/viewvc?view=rev&revision=782887 On Tue, Jun 9, 2009 at 8:02 AM, Claus Ibsen wrote: > Hi > > I have re produced an unit test that is a bit similar to yours. > I cannot get the type converter issue. > > I am using Camel 1.6.1. > > See the

Re: Exception on typeconversion, but result is ok?

2009-06-08 Thread Claus Ibsen
Hi I have re produced an unit test that is a bit similar to yours. I cannot get the type converter issue. I am using Camel 1.6.1. See the code here http://svn.apache.org/viewvc?view=rev I suggest that you check that the file really exists. That could be the issue. You can use the file.exist() t

Re: Exception on typeconversion, but result is ok?

2009-06-08 Thread cgveld
Hi, Thanks for your amazingly quick reply. :) Here is the part of the route what it is all about: from("activemq:out." + getPortalId()) // Because the xml fragment does not contain the usual expressions = new ArrayList(); expressions.add("//object[count(.//port...@id=" + portalId +

Re: Exception on typeconversion, but result is ok?

2009-06-05 Thread Claus Ibsen
On Fri, Jun 5, 2009 at 2:57 PM, cgveld wrote: > > Hi, > > I recently started using Camel. It seems to be very powerful and useful, but > also sometimes a bit complex. > Anyway... Most things work great, but I do have a question. > I get an Exception when I try to read a Document from a JmsMessage.

Exception on typeconversion, but result is ok?

2009-06-05 Thread cgveld
Hi, I recently started using Camel. It seems to be very powerful and useful, but also sometimes a bit complex. Anyway... Most things work great, but I do have a question. I get an Exception when I try to read a Document from a JmsMessage. I'll first try to explain what I am doing: 1. I get a mes