SmartsIntegrator Support and Discussion Forums

Forum Topics > Transport Support > Advanced FTP Configuration Error > Post a Reply to this Thread

Advanced FTP Configuration Error

Share/Bookmark: Add this Thread to Digg Digg   Add this Thread to StumbleUpon Stumble Upon   Add this Thread to Del.icio.us Del.icio.us   Add this Thread to Reddit Reddit   Add this Thread to Facebook Facebook
RE: Advanced FTP Configuration Error
by benj on Thu, Jul 10 2008 7:55 PM
Many thanks, and sorry that you faced so many problems. Those latest changes will be integrated into version 1.3.08 shortly.

Ben.
Ben Jackson
SmartsIntegrator Technical Support
benj
benj
Joined: Thu, Feb 7 2008
Posts: 96
RE: Advanced FTP Configuration Error
by portedquery on Thu, Jul 10 2008 7:55 PM
Hi Ben,

Thank you for your email and the final version of the DLL. This DLL seems to have fixed all the issues related to the FTP both receive and send. I am able to work on my prototype and will let you know if I help from your side and keep you posted about our usage of your software.

Regards,
P
portedquery
Joined: Wed, Jul 2 2008
Posts: 72
RE: Advanced FTP Configuration Error
by benj on Wed, Jul 9 2008 6:52 PM
Hi P

The attached should finally resolve both issues, I think we finally understand what’s going on. And as a back-up that there is some more lovely trace.
As before please stop and restart services.

I’m also waiting to hear back from EnterpriseDT on why the file listing failed in the first place – our workaround should be fine though now.

Thanks,

Ben.
Ben Jackson
SmartsIntegrator Technical Support
benj
benj
Joined: Thu, Feb 7 2008
Posts: 96
RE: Advanced FTP Configuration Error
by portedquery on Wed, Jul 9 2008 6:21 PM
FTPReceive is now giving the following exception in the tracking:

“Receive Port 'DoITTNewPort'

NullReferenceException, Object reference not set to an instance of an object. :”

Further more the Advanced FTPSend is not working either. From the log file it seems that it never executes the PUT command. Here is the exception from the event log:

“Event Type: Error
Event Source: SmartsIntegrator
Event Category: None
Event ID: 13514
Date: 7/9/2008
Time: 11:44:42 AM
User: N/A
Computer: 137IT3FLPGUPTAX
Description:
FTPMonitor : Send Port 'FTPUpload2ADA' : ObjectDisposedException, Cannot access a closed Stream. : ”
portedquery
Joined: Wed, Jul 2 2008
Posts: 72
RE: Advanced FTP Configuration Error
by benj on Tue, Jul 8 2008 10:28 PM
Thanks P – it’s still a mystery, but we’re getting very close. It’s narrowed down to a very small section of code now, and looks to be related to parsing the directory format.

The attached DLL has some extra trace and may contain a fix – please update it in your installation folder and restart all of your SmartsIntegrator services. Then please see if the issue is resolved, and failing that send the trace files back over.

Much appreciated,

Ben.
Ben Jackson
SmartsIntegrator Technical Support
benj
benj
Joined: Thu, Feb 7 2008
Posts: 96
RE: Advanced FTP Configuration Error
by benj on Tue, Jul 8 2008 12:12 PM
Hi P

It all looks okay from the FTP end – do you have a wildcard filter in place, and if so what is it?

I’ve attached updated components to improve the FTP tracing to enable us to track this down. Please copy these to your installation, and then go back to the Send Port Configuration form and press OK (to reinitialise the FTP trace). Now when you run, two files will be generated (the second will have the same filename as the first, but ending in a 2, and will trace at the FTP port level). Please could you send both trace files over?

Sincere apologies that you are getting all of these problems, I can assure you that this isn’t normal and we will give you a full explanation once we get to the bottom of them.

Many thanks,

Ben
Ben Jackson
SmartsIntegrator Technical Support
benj
benj
Joined: Thu, Feb 7 2008
Posts: 96
RE: Advanced FTP Configuration Error
by portedquery on Tue, Jul 8 2008 12:11 PM
You are correct. I had the ‘Show Hidden Files’ option turned on; now I have it turned off and can see the directory listing in the Log file. However, it is still not putting the Files through the Send Port.

Now we are back to the initial problem: neither any error, nor any file in the specified folder.

Scenario: [fetching data from a FTP server using AdvancedFTPReceive], I configured a receive port (Fetches the data from FTP Server) that has a Send port (as FileSend to a file folder for now), and a Server configured. When I run the SystemIntegrator, neither it throws error, nor it fetches any file.

I have attached the Log file for you reference. Please advice.

Thanks and regards,
P
portedquery
Joined: Wed, Jul 2 2008
Posts: 72
RE: Advanced FTP Configuration Error
by benj on Mon, Jul 7 2008 5:55 PM
Thanks. Do you by any chance have the ‘Show Hidden Files’ option set in SmartsIntegrator? I think that could be the problem, as it then puts the –a parameter onto the LIST command, which isn’t supported by your FTP server. Please try removing this and see what happens.

Thanks,

Ben.
Ben Jackson
SmartsIntegrator Technical Support
benj
benj
Joined: Thu, Feb 7 2008
Posts: 96
RE: Advanced FTP Configuration Error
by portedquery on Mon, Jul 7 2008 5:54 PM
Ben,

Appreciate a quick response. The utility seems to work and list the files in the directory. Seems like the “–a” switch was the problem. Please find attached the Log file and let me know the next steps.

FYI – the following exception pops up after running the test.
portedquery
Joined: Wed, Jul 2 2008
Posts: 72
RE: Advanced FTP Configuration Error
by benj on Mon, Jul 7 2008 4:51 PM
Hi P

Most of them can be done using the literal command, but of course there’s no passive support in the Microsoft FTP client so this won’t really work.

So instead we’ve written a test utility (attached) – please run this and enter your connection details and a trace file. Then click ‘Test’ – you should see two popup messages – please report them back along with the trace file. The second message is using a specific MVS parser, and so will hopefully yield correct results, but we’ll only really know in conjunction with the trace file. It appears that the problem is the –a parameter on the LIST command – hopefully this test application will yield a solution.

Note that you can only press ‘Test’ once – you’ll need to restart the application if you want to test again.

We’ve also added support for custom FTP or SITE commands in SmartsIntegrator after login and before and after get and put operations in order to increase flexibility – these will be in the next build (or we can send an update to you earlier if required).

Thanks,

Ben.
Ben Jackson
SmartsIntegrator Technical Support
benj
benj
Joined: Thu, Feb 7 2008
Posts: 96