6 Replies Latest reply on May 23, 2011 9:08 PM by Willem Jiang

    trying to get FTP example to work . . .

    Miles Poindexter Newbie

      Hi,

      newbie to Fuse ESB and trying to do a simple xml file using spring DM to grab a file from a polled folder and FTP to a server.

       

      This fails though:

       

       

            <camel:log message="Transferring emails to ServicePop via FTP. file: $"/>

            <camel:to uri="ftp://localhost?username=rpoindex&password=zzzz&passiveMode=true&binary=true&consumer.delay=60000"/>

             

            <!-- camel:to uri="file:target/sftp"/ -->

          </camel:route>

           

        </camel:camelContext>

       

      </beans>

       

      snippet of error msg:

       

       

      org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[null]

           at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1155)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

           at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:271)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

           at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:53)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

           at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

       

      Edited by: miles on May 20, 2011 9:44 PM

        • 1. Re: trying to get FTP example to work . . .
          Claus Ibsen Master

          Do you see more exceptions/errors in the logs?

           

          It appears to be a NPE exception but the root cause is not in your snippet.

          • 2. Re: trying to get FTP example to work . . .
            Miles Poindexter Newbie

            full error msg:

             

             

            13:37:03,890 | WARN  | //src/servicePop | GenericFileOnCompletion          | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@55de5f0b for file: GenericFile[message.txt]

            13:37:04,387 | INFO  | //src/servicePop | route1                           | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Transferring emails to ServicePop via FTP. file: message.txt

            13:37:04,387 | INFO  | //src/servicePop | FtpProducer                      | ?                                   ? | 260 - org.apache.camel.camel-ftp - 1.5.1.fuse | Connected and logged in to ftp://rpoindex@localhost:21

            13:37:04,388 | ERROR | //src/servicePop | DefaultErrorHandler              | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Failed delivery for exchangeId: ID-ist-rpoindex-6692-advancemags-com-62342-1306170650484-0-6280. Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[null]

            org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[null]

                 at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1155)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:271)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:53)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:330)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:157)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:121)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:97)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_24]

                 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_24]

                 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_24]

                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_24]

                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_24]

                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_24]

                 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_24]

                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_24]

                 at java.lang.Thread.run(Thread.java:680)[:1.6.0_24]

            Caused by: java.lang.VerifyError: Cannot inherit from final class

                 at java.lang.ClassLoader.defineClass1(Native Method)[:1.6.0_24]

                 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)[:1.6.0_24]

                 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)[:1.6.0_24]

                 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:580)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:550)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:481)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:469)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)[osgi-3.6.0.v20100517.jar:]

                 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)[:1.6.0_24]

                 at java.lang.Class.forName0(Native Method)[:1.6.0_24]

                 at java.lang.Class.forName(Class.java:247)[:1.6.0_24]

                 at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)[:1.6.0_24]

                 at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)[:1.6.0_24]

                 at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)[:1.6.0_24]

                 at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:50)[:1.6.0_24]

                 at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:120)[:1.6.0_24]

                 at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)[:1.6.0_24]

                 at sun.reflect.generics.repository.ClassRepository.getSuperclass(ClassRepository.java:66)[:1.6.0_24]

                 at java.lang.Class.getGenericSuperclass(Class.java:677)[:1.6.0_24]

                 at org.apache.camel.impl.DefaultEndpoint.getExchangeType(DefaultEndpoint.java:197)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.DefaultEndpoint.createExchange(DefaultEndpoint.java:183)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.component.file.remote.FtpProducer.process(FtpProducer.java:51)[260:org.apache.camel.camel-ftp:1.5.1.fuse]

                 at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 ... 37 more

            13:37:04,389 | ERROR | //src/servicePop | GenericFileOnCompletion          | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Caused by: [org.apache.camel.CamelExecutionException - Exception occurred during execution on the exchange: Exchange[null]]

            org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[null]

                 at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1155)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:271)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:53)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:330)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:157)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:121)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:97)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_24]

                 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_24]

                 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_24]

                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_24]

                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_24]

                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_24]

                 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_24]

                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_24]

                 at java.lang.Thread.run(Thread.java:680)[:1.6.0_24]

            Caused by: java.lang.VerifyError: Cannot inherit from final class

                 at java.lang.ClassLoader.defineClass1(Native Method)[:1.6.0_24]

                 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)[:1.6.0_24]

                 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)[:1.6.0_24]

                 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:580)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:550)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:481)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:469)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)[osgi-3.6.0.v20100517.jar:]

                 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)[osgi-3.6.0.v20100517.jar:]

                 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)[:1.6.0_24]

                 at java.lang.Class.forName0(Native Method)[:1.6.0_24]

                 at java.lang.Class.forName(Class.java:247)[:1.6.0_24]

                 at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)[:1.6.0_24]

                 at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)[:1.6.0_24]

                 at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)[:1.6.0_24]

                 at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:50)[:1.6.0_24]

                 at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:120)[:1.6.0_24]

                 at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)[:1.6.0_24]

                 at sun.reflect.generics.repository.ClassRepository.getSuperclass(ClassRepository.java:66)[:1.6.0_24]

                 at java.lang.Class.getGenericSuperclass(Class.java:677)[:1.6.0_24]

                 at org.apache.camel.impl.DefaultEndpoint.getExchangeType(DefaultEndpoint.java:197)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.impl.DefaultEndpoint.createExchange(DefaultEndpoint.java:183)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 at org.apache.camel.component.file.remote.FtpProducer.process(FtpProducer.java:51)[260:org.apache.camel.camel-ftp:1.5.1.fuse]

                 at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[68:org.apache.camel.camel-core:2.6.0.fuse-01-09]

                 ... 37 more

            • 3. Re: trying to get FTP example to work . . .
              Miles Poindexter Newbie

              Tried an sftp endpoint: and get:

               

              <camel:to uri="sftp://cba@test.server.com?password=xxxx&binary=true&consumer.delay=30000//cba@test.server.com?password=xxxx&amp;binary=true&amp;consumer.delay=30000"/>

                     

              and get this:

               

              Exception in thread "SpringOsgiExtenderThread-16" java.lang.NoSuchMethodError: org.apache.camel.util.ObjectHelper.isNotNullAndNonEmpty(Ljava/lang/String;)Z

                   at org.apache.camel.component.file.remote.SftpEndpoint.createSession(SftpEndpoint.java:55)

                   at org.apache.camel.component.file.remote.SftpEndpoint.createProducer(SftpEndpoint.java:42)

                   at org.apache.camel.component.file.remote.SftpEndpoint.createProducer(SftpEndpoint.java:30)

                   at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:358)

                   at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:93)

                   at org.apache.camel.impl.ProducerCache.startProducer(ProducerCache.java:124)

                   at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:146)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)

                   at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:74)

                   at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)

                   at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:74)

                   at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)

                   at org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:429)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)

                   at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:74)

                   at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:847)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)

                   at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:74)

                   at org.apache.camel.processor.DefaultChannel.doStart(DefaultChannel.java:146)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)

                   at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:86)

                   at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:893)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)

                   at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:74)

                   at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)

                   at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:74)

                   at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)

                   at org.apache.camel.impl.RouteService.startChildService(RouteService.java:250)

                   at org.apache.camel.impl.RouteService.warmUp(RouteService.java:146)

                   at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1800)

                   at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1726)

                   at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1528)

                   at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1420)

                   at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1321)

                   at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

                   at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

                   at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1299)

                   at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)

                   at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)

                   at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238)

                   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)

                   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)

                   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)

                   at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)

                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)

                   at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

                   at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

                   at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)

                   at java.lang.Thread.run(Thread.java:680)

              • 4. Re: trying to get FTP example to work . . .
                Miles Poindexter Newbie

                I have just tried this in apache servicemix 4.3 and it FTPs the file without problem. So I think this is a bug in Fuse ESB?

                OR . . .  I have installed something in my Fuse ESB OSGi container that is screwing this up.

                Is there a quick way to revert Fuse ESB to original state?

                 

                <camel:to uri="ftp://rpoindex@localhost/Public/?password=xxxx&binary=true&consumer.delay=60000"/>

                • 5. Re: trying to get FTP example to work . . .
                  Miles Poindexter Newbie

                  Well, I guess this is not a real issue.

                  I just did a fresh install of Fuse ESB using: apache-servicemix-4.3.1-fuse-01-15

                  After starting it up and installing the camel-ftp feature, I dropped in the xml file and the FTP transfer is working fine.

                  • 6. Re: trying to get FTP example to work . . .
                    Willem Jiang Master

                    Maybe there are multi-versions of camel which mess up the ServiceMix.