[
https://issues.apache.org/jira/browse/SMXCOMP-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970077#action_12970077
]
Long, Yonggang commented on SMXCOMP-830:
----------------------------------------
Very thanks to Gert Vanthienen's comments. You'are right, if I modify the
/home/omc/tmp to /tmp, it can get the files in the /home/omc/tmp directory.
the /tmp diretory is a relative directory, it's absolute directory is
/home/omc/tmp.
It seems that we only can use relative directory for ftp poller uri.
Can we use absolute directory? How to use?
> FTP poll provider endpoint can not work correctly
> -------------------------------------------------
>
> Key: SMXCOMP-830
> URL: https://issues.apache.org/jira/browse/SMXCOMP-830
> Project: ServiceMix Components
> Issue Type: Test
> Components: servicemix-ftp
> Affects Versions: servicemix-ftp-2009.01
> Environment: servicemix environment : windows xp
> ftp server environment : redhat linux
> Reporter: Long, Yonggang
> Fix For: servicemix-ftp-2009.01
>
>
> When i try to test the ftp component to get files from remote FTP server. It
> has connected to FTP server successfully, but can't download the files, and
> there don't have any exception logs. I don't know why.
> I have only created one ftp-su, and have packaged the only SU to SA. here is
> the configuration in the xbean.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- Generated by Apache ServiceMix Archetype -->
> <beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0"
> xmlns:ftptest="http://longyg.test/ftptest"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="
> http://servicemix.apache.org/ftp/1.0
> http://servicemix.apache.org/schema/servicemix-ftp-2010.01.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
> <ftp:poller service="ftptest:ftpPoller" endpoint="endpoint"
> targetService="ftptest:ftpSender" targetEndpoint="endpoint" deleteFile="true"
> uri="ftp://omc:[email protected]/home/omc/tmp">
> <property name="filter">
> <bean class="org.apache.commons.io.filefilter.WildcardFilter">
> <constructor-arg value="*.zip" />
> </bean>
> </property>
> <property name="marshaler">
> <bean
> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
> </property>
> </ftp:poller>
> <ftp:sender service="ftptest:ftpSender" endpoint="endpoint"
> uri="ftp://omc:[email protected]/home/omc/tmp" >
> <property name="marshaler">
> <bean class="org.apache.servicemix.components.util.BinaryFileMarshaler"
> />
> </property>
> </ftp:sender>
> </beans>
> And here is part of debug logs:
> 12:04:07,104 | DEBUG | Timer-2 | AutoDeploymentService |
> ramework.AutoDeploymentService 597 | Unpacked archive
> D:\tool\apache-servicemix-3.3.1\hotdeploy\ftp-sa-1.0-SNAPSHOT.zip to
> D:\tool\apache-servicemix-3.3.1\data\smx\tmp\ftp-sa-1.0-SNAPSHOT.0.tmp
> 12:04:07,120 | DEBUG | Timer-2 | AutoDeploymentService |
> ramework.AutoDeploymentService 334 | SA dependencies: [servicemix-ftp]
> 12:04:07,120 | DEBUG | Timer-2 | DeploymentService |
> bi.framework.DeploymentService 475 | Moving
> D:\tool\apache-servicemix-3.3.1\data\smx\tmp\ftp-sa-1.0-SNAPSHOT.0.tmp to
> D:\tool\apache-servicemix-3.3.1\data\smx\service-assemblies\ftp-sa\version_1\install
> 12:04:07,120 | DEBUG | Timer-2 | DeploymentService |
> bi.framework.DeploymentService 502 | Unpack service unit archive
> D:\tool\apache-servicemix-3.3.1\data\smx\service-assemblies\ftp-sa\version_1\install\ftp-su-1.0-SNAPSHOT.zip
> to
> D:\tool\apache-servicemix-3.3.1\data\smx\service-assemblies\ftp-sa\version_1\sus\servicemix-ftp\ftp-su
> 12:04:07,198 | DEBUG | Timer-2 | FtpComponent |
> .common.BaseServiceUnitManager 61 | Deploying service unit
> 12:04:07,198 | DEBUG | Timer-2 | FtpComponent |
> on.xbean.AbstractXBeanDeployer 57 | Looking for
> D:\tool\apache-servicemix-3.3.1\data\smx\service-assemblies\ftp-sa\version_1\sus\servicemix-ftp\ftp-su\xbean.xml:
> true
> 12:04:07,261 | DEBUG | Timer-2 | FtpComponent |
> .common.BaseServiceUnitManager 75 | Service unit deployed
> 12:04:07,323 | INFO | Timer-2 | ServiceAssemblyLifeCycle |
> ework.ServiceAssemblyLifeCycle 133 | Starting service assembly: ftp-sa
> 12:04:07,323 | INFO | Timer-2 | ServiceUnitLifeCycle |
> framework.ServiceUnitLifeCycle 78 | Initializing service unit: ftp-su
> 12:04:07,323 | DEBUG | Timer-2 | FtpComponent |
> .common.BaseServiceUnitManager 101 | Initializing service unit
> 12:04:07,323 | DEBUG | Timer-2 | ComponentContextImpl |
> framework.ComponentContextImpl 124 | Component: servicemix-ftp activated
> endpoint: {http://longyg.test/ftptest}ftpSender : endpoint
> 12:04:07,323 | DEBUG | Timer-2 | FtpComponent |
> icemix.common.DefaultComponent 94 | Querying service description for
> ServiceEndpoint[service={http://longyg.test/ftptest}ftpSender,endpoint=endpoint]
> 12:04:07,323 | DEBUG | Timer-2 | FtpComponent |
> icemix.common.DefaultComponent 102 | No description found for
> {http://longyg.test/ftptest}ftpSender:endpoint
> 12:04:07,323 | DEBUG | Timer-2 | WSDL1Processor |
> amework.support.WSDL1Processor 63 | Endpoint
> ServiceEndpoint[service={http://longyg.test/ftptest}ftpSender,endpoint=endpoint]
> has no service description
> 12:04:07,323 | DEBUG | Timer-2 | FtpComponent |
> icemix.common.DefaultComponent 94 | Querying service description for
> ServiceEndpoint[service={http://longyg.test/ftptest}ftpSender,endpoint=endpoint]
> 12:04:07,323 | DEBUG | Timer-2 | FtpComponent |
> icemix.common.DefaultComponent 102 | No description found for
> {http://longyg.test/ftptest}ftpSender:endpoint
> 12:04:07,323 | DEBUG | Timer-2 | WSDL2Processor |
> amework.support.WSDL2Processor 64 | Endpoint
> ServiceEndpoint[service={http://longyg.test/ftptest}ftpSender,endpoint=endpoint]
> has no service description
> 12:04:07,323 | DEBUG | Timer-2 | FtpComponent |
> .common.BaseServiceUnitManager 124 | Service unit initialized
> 12:04:07,323 | INFO | Timer-2 | ServiceUnitLifeCycle |
> framework.ServiceUnitLifeCycle 97 | Starting service unit: ftp-su
> 12:04:07,323 | DEBUG | pool-2-thread-1 | JCAFlow |
> cemix.jbi.nmr.flow.jca.JCAFlow 430 | ServiceMix: broadcasting info for
> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://longyg.test/ftptest}ftpSender,endpoint=endpoint]]
> 12:04:07,323 | DEBUG | Timer-2 | FtpComponent |
> .common.BaseServiceUnitManager 142 | Starting service unit
> 12:04:07,339 | DEBUG | pool-2-thread-1 | JMSFlow |
> i.nmr.flow.jms.AbstractJMSFlow 374 | ServiceMix: broadcasting info for
> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://longyg.test/ftptest}ftpSender,endpoint=endpoint]]
> 12:04:08,948 | DEBUG | pool-component.servicemix-ftp-thread-1 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:09,932 | DEBUG | pool-component.servicemix-ftp-thread-1 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:10,635 | DEBUG | Timer-2 | FtpComponent |
> .common.BaseServiceUnitManager 157 | Service unit started
> 12:04:10,650 | INFO | Timer-2 | AutoDeploymentService |
> ramework.AutoDeploymentService 659 | Directory: hotdeploy: Finished
> installation of archive: ftp-sa-1.0-SNAPSHOT.zip
> 12:04:13,946 | DEBUG | pool-component.servicemix-ftp-thread-2 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:15,492 | DEBUG | pool-component.servicemix-ftp-thread-2 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:18,976 | DEBUG | pool-component.servicemix-ftp-thread-3 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:19,725 | DEBUG | pool-component.servicemix-ftp-thread-3 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:23,990 | DEBUG | pool-component.servicemix-ftp-thread-4 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:24,786 | DEBUG | pool-component.servicemix-ftp-thread-4 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:29,004 | DEBUG | pool-component.servicemix-ftp-thread-5 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:29,753 | DEBUG | pool-component.servicemix-ftp-thread-5 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:34,018 | DEBUG | pool-component.servicemix-ftp-thread-6 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:34,767 | DEBUG | pool-component.servicemix-ftp-thread-6 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:39,032 | DEBUG | pool-component.servicemix-ftp-thread-7 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:39,781 | DEBUG | pool-component.servicemix-ftp-thread-7 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:44,046 | DEBUG | pool-component.servicemix-ftp-thread-8 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:44,811 | DEBUG | pool-component.servicemix-ftp-thread-8 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:49,060 | DEBUG | pool-component.servicemix-ftp-thread-9 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:49,794 | DEBUG | pool-component.servicemix-ftp-thread-9 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:54,073 | DEBUG | pool-component.servicemix-ftp-thread-10 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:54,839 | DEBUG | pool-component.servicemix-ftp-thread-10 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:04:59,087 | DEBUG | pool-component.servicemix-ftp-thread-11 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:04:59,853 | DEBUG | pool-component.servicemix-ftp-thread-11 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> 12:05:04,101 | DEBUG | pool-component.servicemix-ftp-thread-12 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 334 | Polling directory
> /home/omc/tmp
> 12:05:04,851 | DEBUG | pool-component.servicemix-ftp-thread-12 | FtpComponent
> | rvicemix.ftp.FtpPollerEndpoint 357 | Polling directory
> /home/omc/tmp/aaa
> From the logs, it has connected FTP server really, and execute polling
> directory /home/omc/tmp. There are xml and zip files in this directory, but
> they are not downloaded to the other server.
> Is anybody meet the similar situation?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.