Java 7 prevents FTP transfers on Windows when firewall is on

Experiencing problems with Java 7 and FTP transfers? You’re not alone since a nasty bug has slipped in to the seventh installment of Java and it’s causing major problems for its users.

The problem consists of the FTP command PORT in conjunction with Windows Firewall on Windows Vista and Windows 7. The firewall simply closed this connection which close the socket and the ftp-transfer fails.

This problem is especially troublesome for web developers that are using the java powered IDEs Eclipse and Netbeans. Since a simple upgrade to Java 7 will immediately cause the ftp transfers to stop working and the only remedy is to either close down (turn off) your firewall or downgrade to Java 6. Explicitly allowing the Javaw.exe process through the firewall did not solve the issue for me.

Oracle has been alerted of the issue on the 11th of August 2011, but unfortunately gave the bug a 4-Low in priority, which probably means that they don’t see the magnitude of the problem and we won’t see a fix for this issue anytime soon.

Installing Zend Server Community Edition (CE) on Ubuntu 10.04.3 LTS

Looking for a fast, reliable and easy PHP stack on Ubuntu? Look no further, the Zend Server is probably what you’re looking for. And if you’re developing your PHP apps in Zend Framework it’s a no brainer.

I’ve been through most of the different stacks out there including doing the complete LAMP-installation from scratch. Maintenance is troublesome and configuration (and lack of personal configuration-documentation) makes most of my installations unmanageable after a year or so. Until i found Zend Server, especially the Community Edition which is a completely free PHP stack backed and built by the people over at Zend Technologies Ltd.

If you’ve ever looked into different PHP frameworks you’ve probably stumbled over Zend Framework, which ties in extremely well with the Zend Server. So if you’re developing PHP apps using Zend Framework, the Zend Server will make your life a lot easier.

Zend Server is a pre-integrated PHP application stack including the most up to date setup and configuration for your server (VPS, Amazon AMI etc). It includes Bytecode accelerator (Optimizer+), Zend Data Cache, A certified PHP distribution, Zend Framework, Apache (or IIS integration), Out-of-the-box connectivity to all common databases, Java code connectivity and a Web-based PHP administrator console.

I recently setup another Ubuntu Server with Zend Server CE and thought i’d quickly run through the various commands you need to be up and running within no-time.

I strongly recommend that you install this on a fresh server since Zend Server is preconfigured with webservers, databases, php etc out of the box. If you already have Apache, PHP etc installed on your machine you’re probably going to run into trouble. Also please keep in mind that you need to have sudo-access for this.

Installing Zend Server Community Edition (CE) on Ubuntu 10.04.3 LTS

Start by adding the official Zend debs to your distribution.
sudo nano /etc/apt/sources.list

And the following snipplet in the bottom of the file
deb server non-free

Add the Zend’s repository public key
wget -O- | sudo apt-key add -

Now synchronize the repositories
sudo apt-get update

Finally install Zend Server with PHP 5.3
sudo apt-get install zend-server-ce-php-5.3

All done, you now have Zend Server Community Edition installed!

You can access your installation via https://localhost:10082/ZendServer (secure) or http://localhost:10081/ZendServer. If you cannot access your server via a browser on localhost, just replace localhost with either the servers public IP or a domainname.

From here on there are millions of opportunities, but i’ll try and cover those in another guide. Good luck and happy coding!

More information and links:
Zend Server Community Edition
Zend Framework
Zend Technologies Ltd.