FTP node

 9 Replies
 5 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Srini Rao
Veteran Member
Posts: 149
Veteran Member
    How do I use the FTP node in IPA? I'm not finding the place for FTP URL ,USER and password etc
    Woozy
    Veteran Member
    Posts: 709
    Veteran Member
      Hi Srini Rao,

      The FTP setup is done in the System Configuration in Rich Client. Process Server Administrator >> Configuration >> System Configuration >> {configuration set} >> File Transfer Tab. You can also get to this by going directly to PfiFTPConnection business class.

      Within IPA, you then select the configuration set to use.

      Good Luck
      Kelly Meade
      J. R. Simplot Company
      Boise, ID
      Srini Rao
      Veteran Member
      Posts: 149
      Veteran Member
        Thanks Woozy, Let me try.
        Jeremy
        Veteran Member
        Posts: 129
        Veteran Member
          What about the source file for the FTP node? I have setup my FTP and can successfully connect. But, when trying to use the FTP node in the flow, it is still failing. I suspect because I don't know how to reference my file I need to transfer.
          Any clues?
          Jason Beard
          Veteran Member
          Posts: 124
          Veteran Member
            Jeremy -
            Did you reference the configuration set name in the node that you used in Process Server Administrator >> Configuration >> System Configuration >> {configuration set} >> File Transfer Tab when setting up your connection? What is the exact error returned? Is it a failure to connect or a failure to find the file. Do you have the source/destination check boxes flagged correctly?
            Jason Beard
            617-548-5568
            jabeard3@gmail.com
            Jeremy
            Veteran Member
            Posts: 129
            Veteran Member
              For the configuration set: That's part of what I don't understand. Do I need to reference it on the source, destination, or both? The source file is local to the IPA server. In fact, it is created in the previous step.
              For the file name in the source, I am manually inputting the file name.
              I made sure to reference my FTP configuration set in the Destination file section.
              The error is very long, lots of java connect stuff. The first line says the connection timed out.
              Here's the full error:

              Return message: FileTransfer FTP3890: Execution error java.net.ConnectException: Connection timed out: connect
              at java.net.DualStackPlainSocketImpl.connect0(Native Method)
              at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
              at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
              at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
              at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
              at java.net.Socket.connect(Socket.java:579)
              at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:894)
              at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
              at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
              at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
              at com.lawson.bpm.processflow.utility.FTPHelper.put(FTPHelper.java:1846)
              at com.lawson.bpm.processflow.workFlow.flowGraph.FgaFtp.startActivity(FgaFtp.java:433)
              at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(FgActivity.java:946)
              at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(FgProcess.java:2194)
              at com.lawson.bpm.designer.runtime.LocalFlowRunner.run(Unknown Source)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
              Jeremy
              Veteran Member
              Posts: 129
              Veteran Member
                Well, this is embarrassing. After posting that and reviewing everything for the 100th time, I found a typo in my file name I was trying to send that I had in my source file section of the FTP node. Now, I'm getting a new error:
                Source error - Source file(s)/folder(s) do not exist

                So, I don't think I fully understand how to get my file name correct. I'm hard-coding the file name based on what I am saving the file as from the previous node. I assumed the FTP node is looking in the same directory as that previous node, but I don't know how to check.
                David Williams
                Veteran Member
                Posts: 1127
                Veteran Member
                  If you leave the Remote flag unchecked on the source, it should pick up the file from the Landmark server. The configuration needs to be set on the destination and the Remote flag checked for outgoing FTP.
                  The source file name has to include the path to where the file was written.
                  David Williams
                  Jeremy
                  Veteran Member
                  Posts: 129
                  Veteran Member
                    Third time seems to have fixed the typo's and I'm back to the not-very-helpful message. Here's the error related to the FTP node:


                    Activity started: FTP3890 (Run Id: 3)
                    Variables in Process:
                    lastReturnMessage = FileTransfer FTP3890: Execution error java.net.ConnectException: Connection timed out: connect
                    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
                    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
                    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
                    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
                    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
                    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
                    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
                    at java.net.Socket.connect(Socket.java:579)
                    at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:894)
                    at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
                    at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
                    at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
                    at com.lawson.bpm.processflow.utility.FTPHelper.put(FTPHelper.java:1711)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgaFtp.startActivity(FgaFtp.java:433)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(FgActivity.java:946)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(FgProcess.java:2194)
                    at com.lawson.bpm.designer.runtime.LocalFlowRunner.run(Unknown Source)
                    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

                    lastErrorCode = 1019
                    lastOutputData =
                    lastInformationCode = -1

                    FTP3890_errorCode = 1019
                    FTP3890_informationCode = -1
                    FTP3890_returnMessage = FileTransfer FTP3890: Execution error java.net.ConnectException: Connection timed out: connect
                    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
                    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
                    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
                    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
                    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
                    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
                    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
                    at java.net.Socket.connect(Socket.java:579)
                    at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:894)
                    at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
                    at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
                    at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
                    at com.lawson.bpm.processflow.utility.FTPHelper.put(FTPHelper.java:1711)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgaFtp.startActivity(FgaFtp.java:433)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(FgActivity.java:946)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(FgProcess.java:2194)
                    at com.lawson.bpm.designer.runtime.LocalFlowRunner.run(Unknown Source)
                    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

                    FTP3890_outputData =
                    FileTransfer FTP3890: Execution error java.net.ConnectException: Connection timed out: connect
                    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
                    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
                    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
                    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
                    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
                    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
                    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
                    at java.net.Socket.connect(Socket.java:579)
                    at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:894)
                    at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
                    at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
                    at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
                    at com.lawson.bpm.processflow.utility.FTPHelper.put(FTPHelper.java:1711)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgaFtp.startActivity(FgaFtp.java:433)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(FgActivity.java:946)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(FgProcess.java:2194)
                    at com.lawson.bpm.designer.runtime.LocalFlowRunner.run(Unknown Source)
                    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

                    Activity failed: FTP3890
                    Terminating the process ...

                    Activity started: End (Run Id: 3)
                    Activity End: Executing End activity
                    Activity completed: End
                    Process completed - 02/12/2019 19:52:33

                    Process ended with error code (1019) - Message "com.lawson.bpm.errors.ErrorMessages.message.activityErrorCodeMessage_1019" not found.
                    Information code: -1
                    Return message: FileTransfer FTP3890: Execution error java.net.ConnectException: Connection timed out: connect
                    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
                    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
                    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
                    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
                    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
                    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
                    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
                    at java.net.Socket.connect(Socket.java:579)
                    at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:894)
                    at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:633)
                    at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
                    at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
                    at com.lawson.bpm.processflow.utility.FTPHelper.put(FTPHelper.java:1711)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgaFtp.startActivity(FgaFtp.java:433)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(FgActivity.java:946)
                    at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(FgProcess.java:2194)
                    at com.lawson.bpm.designer.runtime.LocalFlowRunner.run(Unknown Source)
                    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

                    Output data: (null)
                    Error occurred in activity: FTP3890

                    Finished: Feb 12, 2019 7:52:33 PM CST

                    Jeremy
                    Veteran Member
                    Posts: 129
                    Veteran Member
                      OK, all. I worked with someone and isolated the issue to being my FTP server. It had to do with is using passive mode, but the system not having the range of ports the FTP server was attempting to use open on the firewall.
                      So, even though the FTP ports were open, the passive mode ports were not, so I could connect, but not list files, transfer, etc...
                      Opened up the FTP passive mode ports and it all works perfectly now!
                      Thanks, everyone.