I'd ask for the code you're actually running for more details.
But as a preliminary response, since I had similar issues, check that apache commons is not really building a request in an object oriented fashion but rather sending each command to the server as you call it (e.g. calling ftpClient.enterLocalPassiveMode() will send the PASV right away), so that might create a few confusions. In that regard, the more likely error in this situations is not entering passive mode at the right time (after connect, before login).
If listnames doesn't work probably nothing works.