[esb-issues] [JBoss JIRA] Commented: (JBESB-510) Unable to transfer a file from ftp server to a local machine
Faisal Azizullah (JIRA)
jira-events at lists.jboss.org
Mon Apr 23 10:17:30 EDT 2007
[ http://jira.jboss.com/jira/browse/JBESB-510?page=comments#action_12360211 ]
Faisal Azizullah commented on JBESB-510:
----------------------------------------
I tried creating a temp file on my system and it works.
I removed the post dir form the jbossesb.xml file and now getting the file as a ESB message and thru my action classes copying it to local drive for backup purpose. I am able to operate on the file. But I was trying to get the file just with the jbossesb.xml ,with out invoking the action.
> Unable to transfer a file from ftp server to a local machine
> ------------------------------------------------------------
>
> Key: JBESB-510
> URL: http://jira.jboss.com/jira/browse/JBESB-510
> Project: JBoss ESB
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Transports
> Affects Versions: 4.0
> Environment: Jboss 4.05 GA, java version "1.5.0_05" and jbossesb -4.0 GA
> Reporter: Faisal Azizullah
> Assigned To: Daniel Bevenius
>
> I am trying to move a file from a ftp server to a local machine and I am getting some error. My Jbossesb.xml looks like following
> <?xml version = "1.0" encoding = "UTF-8"?>
> <jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.xsd" parameterReloadSecs="50">
> <providers>
> <!--******************BEGIN IDD****************************************-->
> <ftp-provider name="Chase" hostname="f0test.bankone.com" >
> <ftp-bus busid="ChaseFTPChannel" >
> <ftp-message-filter
> username="@username@"
> password="@password@"
> passive="true"
> directory="/outbound"
> input-suffix=".txt"
> work-suffix=".esbWorking"
> post-delete="false"
> post-directory="C:/IDDTest"
> post-suffix=".COMPLETE"
>
> />
> </ftp-bus>
> </ftp-provider>
> <jms-provider name="JBossMQ"
> connection-factory="ConnectionFactory"
> jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
> jndi-URL="localhost" >
>
> <jms-bus busid="IDDJMSBus">
> <jms-message-filter
> dest-type="QUEUE"
> dest-name="queue/A"
> selector="source='fromIDDFTPAction'"
> />
> </jms-bus>
>
> </jms-provider>
> <!--******************END IDD****************************************-->
> </providers>
> <services>
> <!--******************BEGIN IDD**************************************-->
> <service
> category="myCategory"
> name="TheFileGateway"
> description="IDD file gateway" >
> <listeners>
> <ftp-listener name="IddFtpGateway"
> busidref="ChaseFTPChannel"
> maxThreads="1"
> is-gateway="true">
> <property name="pollLatencySeconds" value="60"/>
> </ftp-listener>
>
> <jms-listener name="IDDListener"
> busidref="IDDJMSBus"
> maxThreads="1"
> />
> </listeners>
> </service>
>
> <!--******************END IDD**************************************-->
>
> </services>
> </jbossesb>
> The error I am getting is as follows
> 07:51:39,656 ERROR [STDERR] java.lang.reflect.InvocationTargetException
> 07:51:39,656 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
> Native Method)
> 07:51:39,656 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
> ativeMethodAccessorImpl.java:39)
> 07:51:39,656 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
> ke(DelegatingMethodAccessorImpl.java:25)
> 07:51:39,656 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
> 85)
> 07:51:39,656 ERROR [STDERR] at org.jboss.soa.esb.listeners.gateway.AbstractF
> ileGateway.doRun(AbstractFileGateway.java:150)
> 07:51:39,656 ERROR [STDERR] at org.jboss.soa.esb.listeners.lifecycle.Abstrac
> tThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:114)
> 07:51:39,656 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
> 07:51:39,656 ERROR [STDERR] Caused by: org.jboss.soa.esb.listeners.gateway.Gatew
> ayException: java.io.IOException: The system cannot find the path specified
> 07:51:39,656 ERROR [STDERR] at org.jboss.soa.esb.listeners.gateway.RemoteGat
> ewayListener.getFileContents(RemoteGatewayListener.java:145)
> 07:51:39,656 ERROR [STDERR] at org.jboss.soa.esb.listeners.gateway.FileGatew
> ayListener$PackageFileContents.getFileContent(FileGatewayListener.java:224)
> 07:51:39,656 ERROR [STDERR] at org.jboss.soa.esb.listeners.gateway.FileGatew
> ayListener$PackageFileContents.process(FileGatewayListener.java:218)
> 07:51:39,656 ERROR [STDERR] ... 7 more
> 07:51:39,656 ERROR [STDERR] Caused by: java.io.IOException: The system cannot fi
> nd the path specified
> 07:51:39,656 ERROR [STDERR] at java.io.WinNTFileSystem.createFileExclusively
> (Native Method)
> 07:51:39,656 ERROR [STDERR] at java.io.File.checkAndCreate(File.java:1345)
> 07:51:39,656 ERROR [STDERR] at java.io.File.createTempFile(File.java:1434)
> 07:51:39,656 ERROR [STDERR] at org.jboss.internal.soa.esb.util.EdtFtpImpl.do
> wnloadFile(EdtFtpImpl.java:299)
> 07:51:39,656 ERROR [STDERR] at org.jboss.soa.esb.listeners.gateway.RemoteGat
> ewayListener.getFileContents(RemoteGatewayListener.java:135)
> 07:51:39,656 ERROR [STDERR] ... 9 more
> 07:51:39,656 ERROR [AbstractFileGateway] Problems invoking method <process>
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.doRun(Abstrac
> tFileGateway.java:150)
> at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycl
> e.run(AbstractThreadedManagedLifecycle.java:114)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.jboss.soa.esb.listeners.gateway.GatewayException: java.io.IOExcep
> tion: The system cannot find the path specified
> at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.getFileCont
> ents(RemoteGatewayListener.java:145)
> at org.jboss.soa.esb.listeners.gateway.FileGatewayListener$PackageFileCo
> ntents.getFileContent(FileGatewayListener.java:224)
> at org.jboss.soa.esb.listeners.gateway.FileGatewayListener$PackageFileCo
> ntents.process(FileGatewayListener.java:218)
> ... 7 more
> Caused by: java.io.IOException: The system cannot find the path specified
> at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> at java.io.File.checkAndCreate(File.java:1345)
> at java.io.File.createTempFile(File.java:1434)
> at org.jboss.internal.soa.esb.util.EdtFtpImpl.downloadFile(EdtFtpImpl.ja
> va:299)
> at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.getFileCont
> ents(RemoteGatewayListener.java:135)
> ... 9 more
> 07:51:40,437 ERROR [AbstractFileGateway] Problems renaming file log.txt.esbWorki
> ng to \outbound\log.txt.esbError
> org.jboss.soa.esb.listeners.gateway.GatewayException: org.jboss.soa.esb.util.Rem
> oteFileSystemException: com.enterprisedt.net.ftp.FTPException: /outbound/log.txt
> .esbError: No such file or directory.
> at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.deleteFile(
> RemoteGatewayListener.java:115)
> at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.doRun(Abstrac
> tFileGateway.java:289)
> at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycl
> e.run(AbstractThreadedManagedLifecycle.java:114)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.jboss.soa.esb.util.RemoteFileSystemException: com.enterprisedt.ne
> t.ftp.FTPException: /outbound/log.txt.esbError: No such file or directory.
> at org.jboss.internal.soa.esb.util.EdtFtpImpl.deleteRemoteFile(EdtFtpImp
> l.java:285)
> at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.deleteFile(
> RemoteGatewayListener.java:107)
> ... 3 more
> Caused by: com.enterprisedt.net.ftp.FTPException: /outbound/log.txt.esbError: No
> such file or directory.
> at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSoc
> ket.java:800)
> at com.enterprisedt.net.ftp.FTPClient.delete(FTPClient.java:2208)
> at org.jboss.internal.soa.esb.util.EdtFtpImpl.deleteRemoteFile(EdtFtpImp
> The ftp directory listing is as follows
> ftp> ls
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for file list.
> log.txt
> tre_410000066_04032007121539.txt.esbWorking.esbWorking
> 226 Transfer complete.
> ftp: 65 bytes received in 0.00Seconds 65000.00Kbytes/sec.
> ftp> ls
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for file list.
> log.txt.esbWorking
> tre_410000066_04032007121539.txt.esbWorking.esbWorking
> 226 Transfer complete.
> ftp: 76 bytes received in 0.00Seconds 76000.00Kbytes/sec.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the esb-issues
mailing list