6 Replies Latest reply on Oct 12, 2007 6:15 AM by Vidyasagar Atikam

    Problem facing while implementing example helloworld_ftp_act

    Vidyasagar Atikam Newbie

      Hi,

      While implementing example jbossesb-4.2MR3\samples\quickstarts\helloworld_ftp_action I am a facing problem.

      I had configured a connection to local FTP server from JBoss ESB to read message from FTP server location, but ended up with following exception:

      [java] Reading config from E:\jbossesb-4.2MR3\samples\quickstarts\helloworld_ftp_action\jboss-esb.xml
      [java] 16:19:41,824 ERROR [Thread-2][EdtFtpImpl] Caught FTPException.
      [java] com.enterprisedt.net.ftp.FTPException: File renamed
      [java] at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:923)
      [java] at com.enterprisedt.net.ftp.FTPClient.rename(FTPClient.java:2494)
      [java] at org.jboss.internal.soa.esb.util.EdtFtpImpl.remoteRename(EdtFtpImpl.java:489)
      [java] at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.renameFile(RemoteGatewayListener.java:208)
      [java] at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.doRun(AbstractFileGateway.java:141)
      [java] at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:115)
      [java] at java.lang.Thread.run(Thread.java:595)
      [java] 16:19:41,887 ERROR [Thread-2][AbstractFileGateway] Problems renaming file HWFtp-11-Oct-07-15-41-00.dat to HWFtp-11-Oct-07-15-41-00.dat.esbInProcess

      In readme.txt file, it is specified that ?this problem will come when we don?t have write permission on remote FTP server location?.
      But I had given full permissions on remote FTP server location. Did I missed any other configuration settings?


      I am using
      FTP server: Xlight FTP server
      JBoss ESB: jbossesb-4.2MR3
      JBoss AS: jboss-4.0.5.GA

      Please pour some inputs.

      Thanks,
      -Vidya

        • 1. Re: Problem facing while implementing example helloworld_ftp
          Kevin Conner Master

          This is not the correct forum, moving this to the user forum

          • 2. Re: Problem facing while implementing example helloworld_ftp
            Kevin Conner Master

            The error definitely means that the rename has failed.

            Do you have access to the logs on the FTP server?

            • 3. Re: Problem facing while implementing example helloworld_ftp
              Vidyasagar Atikam Newbie

              10/11/2007 17:48:05 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:00 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
              10/11/2007 17:47:00 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:47:00 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:47:00 (vidya 10.60.5.48-->10.60.5.48:21) "EPSV ALL"
              10/11/2007 17:47:00 (vidya 10.60.5.48<--10.60.5.48:21) "229 Entering Passive Mode (|||4869|)"
              10/11/2007 17:47:01 (vidya 10.60.5.48-->10.60.5.48:21) "EPSV"
              10/11/2007 17:47:01 (vidya 10.60.5.48<--10.60.5.48:21) "229 Entering Passive Mode (|||4870|)"
              10/11/2007 17:47:01 (vidya 10.60.5.48-->10.60.5.48:21) "STOR HWFtp-11-Oct-07-17-47-00.dat"
              10/11/2007 17:47:01 (vidya 10.60.5.48<--10.60.5.48:21) "150 Opening BINARY mode data connection for HWFtp-11-Oct-07-17-47-00.dat."
              10/11/2007 17:47:01 (vidya 10.60.5.48<--10.60.5.48:21) "226 Transfer complete (0.579 KB/s)."
              10/11/2007 17:47:01 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:47:01 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"
              10/11/2007 17:47:20 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:20 (not login 10.60.5.48-->10.60.5.48:21) "USER vidya"
              10/11/2007 17:47:20 (not login 10.60.5.48<--10.60.5.48:21) "331 Password required for vidya"
              10/11/2007 17:47:21 (not login 10.60.5.48-->10.60.5.48:21) "PASS *****"
              10/11/2007 17:47:21 (vidya 10.60.5.48<--10.60.5.48:21) "230 Login OK"
              10/11/2007 17:47:21 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:47:21 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:47:21 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:47:21 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"
              10/11/2007 17:47:26 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:27 (not login 10.60.5.48-->10.60.5.48:21) "USER vidya"
              10/11/2007 17:47:27 (not login 10.60.5.48<--10.60.5.48:21) "331 Password required for vidya"
              10/11/2007 17:47:27 (not login 10.60.5.48-->10.60.5.48:21) "PASS *****"
              10/11/2007 17:47:27 (vidya 10.60.5.48<--10.60.5.48:21) "230 Login OK"
              10/11/2007 17:47:27 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:47:27 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:47:27 (vidya 10.60.5.48-->10.60.5.48:21) "CWD /click"
              10/11/2007 17:47:27 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
              10/11/2007 17:47:27 (vidya 10.60.5.48-->10.60.5.48:21) "PORT 10,60,5,48,19,55"
              10/11/2007 17:47:27 (vidya 10.60.5.48<--10.60.5.48:21) "200 PORT command successful"
              10/11/2007 17:47:28 (vidya 10.60.5.48-->10.60.5.48:21) "NLST *.dat"
              10/11/2007 17:47:28 (vidya 10.60.5.48<--10.60.5.48:21) "150 Opening ASCII mode data connection for NLIST (30 bytes)."
              10/11/2007 17:47:28 (vidya 10.60.5.48<--10.60.5.48:21) "226 Transfer complete (0.184 KB/s)."
              10/11/2007 17:47:28 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:47:28 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"
              10/11/2007 17:47:28 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:28 (not login 10.60.5.48-->10.60.5.48:21) "USER vidya"
              10/11/2007 17:47:28 (not login 10.60.5.48<--10.60.5.48:21) "331 Password required for vidya"
              10/11/2007 17:47:28 (not login 10.60.5.48-->10.60.5.48:21) "PASS *****"
              10/11/2007 17:47:28 (vidya 10.60.5.48<--10.60.5.48:21) "230 Login OK"
              10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:47:29 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "CWD /click"
              10/11/2007 17:47:29 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
              10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "RNFR HWFtp-11-Oct-07-17-47-00.dat"
              10/11/2007 17:47:29 (vidya 10.60.5.48<--10.60.5.48:21) "350 RNFR OK, ready for destination name"
              10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "RNTO HWFtp-11-Oct-07-17-47-00.dat.esbInProcess"
              10/11/2007 17:47:29 (vidya 10.60.5.48<--10.60.5.48:21) "200 File renamed"
              10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:47:29 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"
              10/11/2007 17:47:34 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:34 (not login 10.60.5.48-->10.60.5.48:21) "USER vidya"
              10/11/2007 17:47:34 (not login 10.60.5.48<--10.60.5.48:21) "331 Password required for vidya"
              10/11/2007 17:47:35 (not login 10.60.5.48-->10.60.5.48:21) "PASS *****"
              10/11/2007 17:47:35 (vidya 10.60.5.48<--10.60.5.48:21) "230 Login OK"
              10/11/2007 17:47:35 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:47:35 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:47:35 (vidya 10.60.5.48-->10.60.5.48:21) "CWD /click"
              10/11/2007 17:47:35 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
              10/11/2007 17:47:35 (vidya 10.60.5.48-->10.60.5.48:21) "PORT 10,60,5,48,19,58"
              10/11/2007 17:47:35 (vidya 10.60.5.48<--10.60.5.48:21) "200 PORT command successful"
              10/11/2007 17:47:35 (vidya 10.60.5.48-->10.60.5.48:21) "NLST *.dat"
              10/11/2007 17:47:35 (vidya 10.60.5.48<--10.60.5.48:21) "550 Can't find file"
              10/11/2007 17:47:35 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:47:35 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"
              10/11/2007 17:47:40 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:41 (not login 10.60.5.48-->10.60.5.48:21) "USER vidya"
              10/11/2007 17:47:41 (not login 10.60.5.48<--10.60.5.48:21) "331 Password required for vidya"
              10/11/2007 17:47:41 (not login 10.60.5.48-->10.60.5.48:21) "PASS *****"
              10/11/2007 17:47:41 (vidya 10.60.5.48<--10.60.5.48:21) "230 Login OK"
              10/11/2007 17:47:41 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:47:41 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:47:41 (vidya 10.60.5.48-->10.60.5.48:21) "CWD /click"
              10/11/2007 17:47:41 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
              10/11/2007 17:47:41 (vidya 10.60.5.48-->10.60.5.48:21) "PORT 10,60,5,48,19,60"
              10/11/2007 17:47:41 (vidya 10.60.5.48<--10.60.5.48:21) "200 PORT command successful"
              10/11/2007 17:47:41 (vidya 10.60.5.48-->10.60.5.48:21) "NLST *.dat"
              10/11/2007 17:47:41 (vidya 10.60.5.48<--10.60.5.48:21) "550 Can't find file"
              10/11/2007 17:47:41 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:47:41 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"
              10/11/2007 17:47:47 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:47 (not login 10.60.5.48-->10.60.5.48:21) "USER vidya"
              10/11/2007 17:47:47 (not login 10.60.5.48<--10.60.5.48:21) "331 Password required for vidya"
              10/11/2007 17:47:47 (not login 10.60.5.48-->10.60.5.48:21) "PASS *****"
              10/11/2007 17:47:47 (vidya 10.60.5.48<--10.60.5.48:21) "230 Login OK"
              10/11/2007 17:47:47 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:47:47 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:47:47 (vidya 10.60.5.48-->10.60.5.48:21) "CWD /click"
              10/11/2007 17:47:47 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
              10/11/2007 17:47:48 (vidya 10.60.5.48-->10.60.5.48:21) "PORT 10,60,5,48,19,62"
              10/11/2007 17:47:48 (vidya 10.60.5.48<--10.60.5.48:21) "200 PORT command successful"
              10/11/2007 17:47:48 (vidya 10.60.5.48-->10.60.5.48:21) "NLST *.dat"
              10/11/2007 17:47:48 (vidya 10.60.5.48<--10.60.5.48:21) "550 Can't find file"
              10/11/2007 17:47:48 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:47:48 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"
              10/11/2007 17:47:53 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:53 (not login 10.60.5.48-->10.60.5.48:21) "USER vidya"
              10/11/2007 17:47:53 (not login 10.60.5.48<--10.60.5.48:21) "331 Password required for vidya"
              10/11/2007 17:47:53 (not login 10.60.5.48-->10.60.5.48:21) "PASS *****"
              10/11/2007 17:47:53 (vidya 10.60.5.48<--10.60.5.48:21) "230 Login OK"
              10/11/2007 17:47:54 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:47:54 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:47:54 (vidya 10.60.5.48-->10.60.5.48:21) "CWD /click"
              10/11/2007 17:47:54 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
              10/11/2007 17:47:54 (vidya 10.60.5.48-->10.60.5.48:21) "PORT 10,60,5,48,19,65"
              10/11/2007 17:47:54 (vidya 10.60.5.48<--10.60.5.48:21) "200 PORT command successful"
              10/11/2007 17:47:54 (vidya 10.60.5.48-->10.60.5.48:21) "NLST *.dat"
              10/11/2007 17:47:54 (vidya 10.60.5.48<--10.60.5.48:21) "550 Can't find file"
              10/11/2007 17:47:54 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:47:54 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"
              10/11/2007 17:47:59 (not login 10.60.5.48<--10.60.5.48:21) "220 Xlight FTP Server 2.7 ready..."
              10/11/2007 17:47:59 (not login 10.60.5.48-->10.60.5.48:21) "USER vidya"
              10/11/2007 17:47:59 (not login 10.60.5.48<--10.60.5.48:21) "331 Password required for vidya"
              10/11/2007 17:48:00 (not login 10.60.5.48-->10.60.5.48:21) "PASS *****"
              10/11/2007 17:48:00 (vidya 10.60.5.48<--10.60.5.48:21) "230 Login OK"
              10/11/2007 17:48:00 (vidya 10.60.5.48-->10.60.5.48:21) "TYPE I"
              10/11/2007 17:48:00 (vidya 10.60.5.48<--10.60.5.48:21) "200 Type set to I."
              10/11/2007 17:48:00 (vidya 10.60.5.48-->10.60.5.48:21) "CWD /click"
              10/11/2007 17:48:00 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
              10/11/2007 17:48:00 (vidya 10.60.5.48-->10.60.5.48:21) "PORT 10,60,5,48,19,67"
              10/11/2007 17:48:00 (vidya 10.60.5.48<--10.60.5.48:21) "200 PORT command successful"
              10/11/2007 17:48:00 (vidya 10.60.5.48-->10.60.5.48:21) "NLST *.dat"
              10/11/2007 17:48:00 (vidya 10.60.5.48<--10.60.5.48:21) "550 Can't find file"
              10/11/2007 17:48:00 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"
              10/11/2007 17:48:00 (vidya 10.60.5.48<--10.60.5.48:21) "221 Good-Bye"

              • 4. Re: Problem facing while implementing example helloworld_ftp
                Kevin Conner Master

                 

                "sagar_atikam" wrote:

                10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "CWD /click"
                10/11/2007 17:47:29 (vidya 10.60.5.48<--10.60.5.48:21) "250 Directory successfully changed"
                10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "RNFR HWFtp-11-Oct-07-17-47-00.dat"
                10/11/2007 17:47:29 (vidya 10.60.5.48<--10.60.5.48:21) "350 RNFR OK, ready for destination name"
                10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "RNTO HWFtp-11-Oct-07-17-47-00.dat.esbInProcess"
                10/11/2007 17:47:29 (vidya 10.60.5.48<--10.60.5.48:21) "200 File renamed"
                10/11/2007 17:47:29 (vidya 10.60.5.48-->10.60.5.48:21) "QUIT"


                It looks as if it has succeeded according to your logs.

                My guess would be that the client library we are using is interpreting the text after the 200 response as an error. I'm not sure why it would do it (or even if it does) but we can look into it.

                Can you log a JIRA for this please?

                Thanks

                • 5. Re: Problem facing while implementing example helloworld_ftp
                  Burr Sutter Master

                  Here are some tips that I have:

                  max-threads=1
                  run only a single instance of the service
                  set the polling interval to greater than 2 seconds

                  I've found that get a similiar (if not the exact same error) when I essentially have multiple processes/threads both trying to work on the same file.

                  • 6. Re: Problem facing while implementing example helloworld_ftp
                    Vidyasagar Atikam Newbie

                    Hi,

                    Jira ticket #JBESB-303 help me in resolving the problem.

                    Ticket says it is the problem with some type of FTP servers. I had installed trial version WinFtp Server and now it is working fine. Previously I was tried Xlight FTP server and Golden FTP server. WinFtp Server resolved my problem.

                    Burrsutter, Kevin,

                    Thanks a lot for given support.

                    Thanks,
                    -Vidya