Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 9168 invoked from network); 3 Mar 2009 12:14:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2009 12:14:13 -0000 Received: (qmail 46037 invoked by uid 500); 3 Mar 2009 12:14:12 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 46008 invoked by uid 500); 3 Mar 2009 12:14:12 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 45997 invoked by uid 99); 3 Mar 2009 12:14:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 04:14:12 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.142.188 as permitted sender) Received: from [209.85.142.188] (HELO ti-out-0910.google.com) (209.85.142.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 12:14:03 +0000 Received: by ti-out-0910.google.com with SMTP id j3so2981261tid.10 for ; Tue, 03 Mar 2009 04:13:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=72ufJpQPi9K3du7J/aaq+VRzrkTQXeCXi4ynYvWoK+Q=; b=v0c6DZgORYTtb6+J4mJ0mTlOR/vTBSERGUpu9wtYKqLqRzyEqnaSn5lFvn30mtVzoS eGoTZ6WVQqFvtPmAyhy0iP4/gk7e8S1l5cQRfOwVPIP9fZbVcJ9unlmafEOzEsB5TZhu XhCWdX5m1IpH0+nSRApWKA8ra6NbBjlBiKCHg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=nFDMGui3YDT5/yy5hkRAAIrrvOWOlezlKk6/B+5AsS1AzqFcP5WeF5gMP0P4UCe+iJ JQG9s/NrQxX1k7qr2LVAV96CY9NQHubyKqraDJb2LRpOGV69Q7ISoDVEGx7r0RO9vTAX jh+x1hYUlc3mS2xF4w5Zzl8S8PR041YuqFZTE= Received: by 10.110.11.4 with SMTP id 4mr9000685tik.55.1236082420069; Tue, 03 Mar 2009 04:13:40 -0800 (PST) Received: from ?192.168.0.131? ([123.113.119.1]) by mx.google.com with ESMTPS id y5sm550452tia.37.2009.03.03.04.13.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Mar 2009 04:13:39 -0800 (PST) Message-ID: <49AD1EDD.70904@gmail.com> Date: Tue, 03 Mar 2009 20:13:17 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.camel.component.file.GenericFileMessage to the required type - SMX4 ! References: <22289722.post@talk.nabble.com> <22291120.post@talk.nabble.com> <5380c69c0903020847h91d2b89h696695e8b4511773@mail.gmail.com> <49ACEB3E.90909@gmail.com> <22306918.post@talk.nabble.com> <5380c69c0903030348y5424272ao55e1c5e173a0525@mail.gmail.com> <22307302.post@talk.nabble.com> In-Reply-To: <22307302.post@talk.nabble.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Charles, I think you can get the ResolverUtil from the camel context. Maybe we need to do some changes on the bindy component. Willem cmoulliard wrote: > Do you see a temporary workaround because I'm blocked ? > > > Claus Ibsen-2 wrote: >> Hi >> >> Yeah this resolver needs to be OSGi aware also. >> >> I think we need to provide these resolvers on the CamelContext so >> component authors like you can use them to resolve classes and >> whatelse, and it would be transparent for you if it was regular or >> OSGi platforms. >> >> See ticket 1411 that is about this. Just need to add getResolverUtil >> as well, and we should probably rename it as its a bad name to put out >> in the open. >> We need an API for it as well in the SPI package. >> >> There is a mail on the dev forum about this as well to disucss it there. >> >> The DEBUG logging could maybe be toned down to TRACE >> >> >> On Tue, Mar 3, 2009 at 12:32 PM, cmoulliard wrote: >>> Hi Willem, >>> >>> It works (I mean the file can be processed by Camel) but >>> >>> 1) in DEBUG mode, the log of SMX4 server is polluted by hundreds of line >>> like this : >>> >>> 12:11:01,687 | DEBUG | omponent@1d4f279 | ResolverUtil >>> | >>> g.apache.camel.util.ResolverUtil 571 | Could not find class >>> 'org/apache/camel/converter/stream/StreamCacheConverter$InputStreamCache.class' >>> in classloader: BundleDelegatingClassLoader for [Report Incident >>> Interfaces >>> Bundle (reportincident.interfaces)]. Reason: >>> java.lang.ClassNotFoundException: >>> org.apache.camel.converter.stream.StreamCacheConverter$InputStreamCache >>> not >>> found from bundle [reportincident.interfaces] >>> java.lang.ClassNotFoundException: >>> org.apache.camel.converter.stream.StreamCacheConverter$InputStreamCache >>> not >>> found from bundle [reportincident.interfaces] >>> at >>> org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103) >>> at >>> org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >>> at >>> org.apache.camel.util.ResolverUtil.addIfMatching(ResolverUtil.java:561) >>> at >>> org.apache.camel.osgi.OsgiResolverUtil.loadImplementationsInBundle(OsgiResolverUtil.java:135) >>> at >>> org.apache.camel.osgi.OsgiResolverUtil.findInOsgiClassLoader(OsgiResolverUtil.java:92) >>> at >>> org.apache.camel.osgi.OsgiResolverUtil.find(OsgiResolverUtil.java:73) >>> at >>> org.apache.camel.util.ResolverUtil.findAnnotated(ResolverUtil.java:301) >>> at >>> org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:73) >>> at >>> org.apache.camel.impl.converter.DefaultTypeConverter.checkLoaded(DefaultTypeConverter.java:296) >>> at >>> org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:98) >>> at >>> org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:66) >>> at >>> org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:51) >>> at >>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:74) >>> at >>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52) >>> at >>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170) >>> at >>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103) >>> at >>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66) >>> at >>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) >>> at >>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) >>> at >>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) >>> at >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) >>> at >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) >>> at >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>> at java.lang.Thread.run(Thread.java:619) >>> Caused by: java.lang.ClassNotFoundException: >>> org.apache.camel.converter.stream.StreamCacheConverter$InputStreamCache >>> at >>> org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:566) >>> at >>> org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59) >>> at >>> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1371) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >>> at >>> org.apache.felix.framework.searchpolicy.ModuleImpl.getClassByDelegation(ModuleImpl.java:428) >>> at >>> org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1341) >>> at >>> org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:737) >>> at >>> org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99) >>> ... 26 more >>> >>> 2) I have a more serious problem. The classes of my model are not loaded. >>> In >>> DEBUG mode, we should see this on the console >>> >>> 2009-03-03 12:28:34,671 DEBUG ResolverUtil - Searching for annotations of >>> [interface org.apache.camel.dataformat.bindy.annotation.CsvRecord, >>> interface >>> org.apache.camel.dataformat.bindy.annotation.Link, interface >>> org.apache.camel.dataformat.bindy.annotation.Message] in packages: >>> [org.apache.camel.example.reportincident.model] >>> 2009-03-03 12:28:34,687 DEBUG ResolverUtil - Using only regular >>> classloaders >>> 2009-03-03 12:28:34,687 DEBUG ResolverUtil - Loading from directory: >>> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.interfaces\target\classes\org\apache\camel\example\reportincident\model >>> 2009-03-03 12:28:34,703 DEBUG ResolverUtil - Found: [class >>> org.apache.camel.example.reportincident.model.Order, class >>> org.apache.camel.example.reportincident.model.Client] >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Order, position : >>> 0, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=, name=, length=0, pos=0) >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Class linked : >>> org.apache.camel.example.reportincident.model.Order, Fieldpublic >>> org.apache.camel.example.reportincident.model.Client >>> org.apache.camel.example.reportincident.model.Order.client >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Order, position : >>> 4, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=, name=, length=0, pos=4) >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Order, position : >>> 5, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=, name=Name, length=0, pos=5) >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Order, position : >>> 6, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=, name=, length=0, pos=6) >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Order, position : >>> 7, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=, name=, length=0, pos=7) >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Order, position : >>> 8, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=dd-MM-yyyy, name=, length=0, pos=8) >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Client, position : >>> 1, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=, name=, length=0, pos=1) >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Client, position : >>> 2, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=, name=, length=0, pos=2) >>> 2009-03-03 12:28:34,703 DEBUG BindyCsvFactory - Position defined in the >>> class : org.apache.camel.example.reportincident.model.Client, position : >>> 3, >>> Field : >>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>> pattern=, name=, length=0, pos=3) >>> >>> >>> but nothing is displayed except : >>> >>> 12:11:01,765 | DEBUG | omponent@1d4f279 | ResolverUtil >>> | >>> g.apache.camel.util.ResolverUtil 324 | Searching for annotations of >>> [interface org.apache.camel.dataformat.bindy.annotation.CsvRecord, >>> interface >>> org.apache.camel.dataformat.bindy.annotation.Link, interface >>> org.apache.camel.dataformat.bindy.annotation.Message] in packages: >>> [org.apache.camel.example.reportincident.model] >>> >>> - Is the error due to the AnnotationModelLoader.java class of camel-bindy >>> ? >>> - Do we have to do something to convert camel-bindy into an OSGI bundle ? >>> >>> Regards, >>> >>> >>> willem.jiang wrote: >>>> Hi >>>> >>>> I just wrote a test to check the fallback converter's loading the >>>> registering. Every thing looks good. >>>> >>>> So I guess there are some thing wrong with the setting up of >>>> OsgiAnnotationTypeConverterLoader. >>>> >>>> @Charles, Can you change your camel context like this ? >>>> >>>> >>>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xmlns:camel="http://camel.apache.org/schema/spring" >>>> xsi:schemaLocation=" >>>> http://www.springframework.org/schema/beans >>>> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd >>>> http://camel.apache.org/schema/osgi >>>> http://camel.apache.org/schema/osgi/camel-osgi.xsd"> >>>> http://camel.apache.org/schema/spring >>>> http://camel.apache.org/schema/spring/camel-spring.xsd"> >>>> >>>> >>> >>>> class="org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat"> >>>> >>> value="com.xpectis.camel.bindy.model"/> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> com.xpectis.camel.bindy.routing >>>> >>>> >>>> >>> /> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Willem >>>> >>>> Claus Ibsen wrote: >>>>> Hi >>>>> >>>>> The @FallbackConverter type converter should kick in, when you use >>>>> file based components >>>>> >>>>> Willem is there something there that needs to be done in camel-osgi >>>>> for registering fallback converteres as well? >>>>> >>>>> >>>>> >>>>> On Mon, Mar 2, 2009 at 5:16 PM, cmoulliard >>>>> wrote: >>>>>> Yes Willem, >>>>>> >>>>>> Here it is : >>>>>> >>>>>> >>>>>> >>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>> xsi:schemaLocation=" >>>>>> http://www.springframework.org/schema/beans >>>>>> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd >>>>>> http://camel.apache.org/schema/spring >>>>>> http://camel.apache.org/schema/spring/camel-spring.xsd"> >>>>>> >>>>>> >>>>> >>>>>> class="org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat"> >>>>>> >>>>> value="com.xpectis.camel.bindy.model"/> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> com.xpectis.camel.bindy.routing >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Remark : I work with camel 2.0-SNAPSHOT. >>>>>> >>>>>> Regards, >>>>>> >>>>>> Charles >>>>>> >>>>>> >>>>>> willem.jiang wrote: >>>>>>> Hi Charles, >>>>>>> >>>>>>> What kind of camel context did you create? >>>>>>> Can you show me the Spring configuration file or the DSL rule? >>>>>>> >>>>>>> >>>>>>> Willem >>>>>>> >>>>>>> >>>>>>> On Mon, Mar 2, 2009 at 11:01 PM, cmoulliard >>>>>>> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I have a small camel - bindy project running perfectly in Eclipse or >>>>>>>> when >>>>>>>> launched using command camel:run but when I deploy it on Servicemix >>>>>>>> Kernel >>>>>>>> 4, I receive the following error : >>>>>>>> >>>>>>>> 15:48:05,936 | ERROR | omponent@1cb1d37 | DeadLetterChannel >>>>>>>> | >>>>>>>> rg.apache.camel.processor.Logger 207 | Failed delivery for >>>>>>>> exchangeId: >>>>>>>> ID-dell-charles-2356-1236005216593-0-1. On delivery attempt: 0 >>>>>>>> caught: >>>>>>>> org.apache.camel.NoTypeConversionAvailableException: No type >>>>>>>> converter >>>>>>>> available to convert from type: >>>>>>>> org.apache.camel.component.file.GenericFileMessage to the required >>>>>>>> type: >>>>>>>> java.io.InputStream with value GenericFileMessage: >>>>>>>> GenericFile[d:\temp\data\csv.txt] >>>>>>>> org.apache.camel.NoTypeConversionAvailableException: No type >>>>>>>> converter >>>>>>>> available to convert from type: >>>>>>>> org.apache.camel.component.file.GenericFileMessage to the required >>>>>>>> type: >>>>>>>> java.io.InputStream with value GenericFileMessage: >>>>>>>> GenericFile[d:\temp\data\csv.txt] >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:126) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:74) >>>>>>>> at >>>>>>>> org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:70) >>>>>>>> at >>>>>>>> org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:51) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.util.ExchangeHelper.getMandatoryInBody(ExchangeHelper.java:135) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.processor.UnmarshalProcessor.process(UnmarshalProcessor.java:44) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:80) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:194) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:129) >>>>>>>> at >>>>>>>> org.apache.camel.processor.Pipeline.process(Pipeline.java:115) >>>>>>>> at >>>>>>>> org.apache.camel.processor.Pipeline.process(Pipeline.java:89) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103) >>>>>>>> at >>>>>>>> >>>>>>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66) >>>>>>>> at >>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) >>>>>>>> at >>>>>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) >>>>>>>> at >>>>>>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) >>>>>>>> at >>>>>>>> >>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) >>>>>>>> at >>>>>>>> >>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) >>>>>>>> at >>>>>>>> >>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) >>>>>>>> at >>>>>>>> >>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>>>>>> at >>>>>>>> >>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>>>>>> at java.lang.Thread.run(Thread.java:619) >>>>>>>> >>>>>>>> Here is the output that I have in maven : >>>>>>>> >>>>>>>> 2009-03-02 15:58:23,155 DEBUG FileConsumer - Total 1 files to >>>>>>>> consume >>>>>>>> 2009-03-02 15:58:23,186 DEBUG FileEndpoint - Using Generic file >>>>>>>> process >>>>>>>> strategy: >>>>>>>> >>>>>>>> org.apache.camel.component.file.strategy.GenericFileNoOpProcessStrategy@1bca1c3 >>>>>>>> 2009-03-02 15:58:23,202 DEBUG FileConsumer - About to process file: >>>>>>>> GenericFile[d:\temp\data\csv.txt] using exchange: >>>>>>>> Exchange[GenericFileMessage: GenericFile[d:\temp\data\csv.txt]] >>>>>>>> 2009-03-02 15:58:23,249 DEBUG ResolverUtil - Searching for >>>>>>>> annotations >>>>>>>> of >>>>>>>> [interface org.apache.camel.dataformat.bindy.annotation.CsvRecord, >>>>>>>> interface >>>>>>>> org.apache.camel.dataformat.bindy.annotation.Link, interface >>>>>>>> org.apache.camel.dataformat.bindy.annotation.Message] in packages: >>>>>>>> [com.xpectis.camel.bindy.model] >>>>>>>> 2009-03-02 15:58:23,249 DEBUG ResolverUtil - Using only regular >>>>>>>> classloaders >>>>>>>> 2009-03-02 15:58:23,249 DEBUG ResolverUtil - Loading from directory: >>>>>>>> >>>>>>>> D:\Dvlpt\Java\workspace-ganymede\osgi\bindy\target\classes\com\xpectis\camel\bindy\model >>>>>>>> 2009-03-02 15:58:23,280 DEBUG ResolverUtil - Found: [class >>>>>>>> com.xpectis.camel.bindy.model.Client, class >>>>>>>> com.xpectis.camel.bindy.model.Order] >>>>>>>> 2009-03-02 15:58:23,280 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Client, position : 1, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=, name=, length=0, pos=1) >>>>>>>> 2009-03-02 15:58:23,280 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Client, position : 2, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=, name=, length=0, pos=2) >>>>>>>> 2009-03-02 15:58:23,280 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Client, position : 3, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=, name=, length=0, pos=3) >>>>>>>> 2009-03-02 15:58:23,280 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Order, position : 0, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=, name=, length=0, pos=0) >>>>>>>> 2009-03-02 15:58:23,280 DEBUG BindyCsvFactory - Class linked : >>>>>>>> com.xpectis.camel.bindy.model.Order, Fieldpublic >>>>>>>> com.xpectis.camel.bindy.model.Client >>>>>>>> com.xpectis.camel.bindy.model.Order.client >>>>>>>> 2009-03-02 15:58:23,280 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Order, position : 4, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=, name=, length=0, pos=4) >>>>>>>> 2009-03-02 15:58:23,280 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Order, position : 5, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=, name=Name, length=0, pos=5) >>>>>>>> 2009-03-02 15:58:23,280 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Order, position : 6, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=, name=, length=0, pos=6) >>>>>>>> 2009-03-02 15:58:23,296 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Order, position : 7, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=, name=, length=0, pos=7) >>>>>>>> 2009-03-02 15:58:23,296 DEBUG BindyCsvFactory - Position defined in >>>>>>>> the >>>>>>>> class : com.xpectis.camel.bindy.model.Order, position : 8, Field : >>>>>>>> @org.apache.camel.dataformat.bindy.annotation.DataField(precision=0, >>>>>>>> pattern=dd-MM-yyyy, name=, length=0, pos=8) >>>>>>>> 2009-03-02 15:58:23,296 DEBUG BindyCsvFactory - Skip First Line >>>>>>>> parameter >>>>>>>> of >>>>>>>> the CSV : false >>>>>>>> 2009-03-02 15:58:23,296 DEBUG BindyCsvFactory - Separator defined >>>>>>>> for >>>>>>>> the >>>>>>>> CSV : , >>>>>>>> 2009-03-02 15:58:23,296 DEBUG BindyCsvDataFormat - Counter 0 : >>>>>>>> content >>>>>>>> : >>>>>>>> 01,A,Albert,Cartier,BE12345678,Belgacom Ventage >>>>>>>> 10/10,1500,EUR,08-01-2009 >>>>>>>> 2009-03-02 15:58:23,296 DEBUG BindyCsvFactory - Pos : 0, Data : 01, >>>>>>>> Field >>>>>>>> type : int >>>>>>>> 2009-03-02 15:58:23,327 DEBUG BindyCsvFactory - Pos : 1, Data : A, >>>>>>>> Field >>>>>>>> type : class java.lang.String >>>>>>>> 2009-03-02 15:58:23,327 DEBUG BindyCsvFactory - Pos : 2, Data : >>>>>>>> Albert, >>>>>>>> Field type : class java.lang.String >>>>>>>> 2009-03-02 15:58:23,327 DEBUG BindyCsvFactory - Pos : 3, Data : >>>>>>>> Cartier, >>>>>>>> Field type : class java.lang.String >>>>>>>> 2009-03-02 15:58:23,343 DEBUG BindyCsvFactory - Pos : 4, Data : >>>>>>>> BE12345678, >>>>>>>> Field type : class java.lang.String >>>>>>>> 2009-03-02 15:58:23,343 DEBUG BindyCsvFactory - Pos : 5, Data : >>>>>>>> Belgacom >>>>>>>> Ventage 10/10, Field type : class java.lang.String >>>>>>>> 2009-03-02 15:58:23,343 DEBUG BindyCsvFactory - Pos : 6, Data : >>>>>>>> 1500, >>>>>>>> Field >>>>>>>> type : class java.lang.String >>>>>>>> 2009-03-02 15:58:23,343 DEBUG BindyCsvFactory - Pos : 7, Data : EUR, >>>>>>>> Field >>>>>>>> type : class java.lang.String >>>>>>>> 2009-03-02 15:58:23,343 DEBUG BindyCsvFactory - Pos : 8, Data : >>>>>>>> 08-01-2009, >>>>>>>> Field type : class java.util.Date >>>>>>>> 2009- >>>>>>>> >>>>>>>> ... >>>>>>>> >>>>>>>> and osgi config >>>>>>>> >>>>>>>> [ 73] [Active ] [ ] [ 60] camel-core (2.0.0.SNAPSHOT) >>>>>>>> [ 74] [Active ] [ ] [ 60] Spring Transaction (2.5.6) >>>>>>>> [ 75] [Active ] [ ] [ 60] camel-spring (2.0.0.SNAPSHOT) >>>>>>>> [ 76] [Active ] [ ] [ 60] camel-osgi (2.0.0.SNAPSHOT) >>>>>>>> [ 77] [Active ] [ ] [ 60] camel-bindy (2.0.0.SNAPSHOT) >>>>>>>> [ 78] [Active ] [Started] [ 60] camel csv bindy >>>>>>>> (1.0.0.SNAPSHOT) >>>>>>>> >>>>>>>> Where is the issue ? >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ----- >>>>>>>> Charles Moulliard >>>>>>>> SOA Architect >>>>>>>> >>>>>>>> My Blog : http://cmoulliard.blogspot.com/ >>>>>>>> http://cmoulliard.blogspot.com/ >>>>>>>> -- >>>>>>>> View this message in context: >>>>>>>> http://www.nabble.com/org.apache.camel.NoTypeConversionAvailableException%3A-No-type-converter-available-to-convert-from-type%3A-org.apache.camel.component.file.GenericFileMessage-to-the-required-type---SMX4-%21-tp22289722p22289722.html >>>>>>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>>>>>> >>>>>>>> >>>>>> ----- >>>>>> Charles Moulliard >>>>>> SOA Architect >>>>>> >>>>>> My Blog : http://cmoulliard.blogspot.com/ >>>>>> http://cmoulliard.blogspot.com/ >>>>>> -- >>>>>> View this message in context: >>>>>> http://www.nabble.com/org.apache.camel.NoTypeConversionAvailableException%3A-No-type-converter-available-to-convert-from-type%3A-org.apache.camel.component.file.GenericFileMessage-to-the-required-type---SMX4-%21-tp22289722p22291120.html >>>>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> ----- >>> Charles Moulliard >>> SOA Architect >>> >>> My Blog : http://cmoulliard.blogspot.com/ >>> http://cmoulliard.blogspot.com/ >>> -- >>> View this message in context: >>> http://www.nabble.com/org.apache.camel.NoTypeConversionAvailableException%3A-No-type-converter-available-to-convert-from-type%3A-org.apache.camel.component.file.GenericFileMessage-to-the-required-type---SMX4-%21-tp22289722p22306918.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> >> > > > ----- > Charles Moulliard > SOA Architect > > My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/