Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6244563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:20:52+00:00 2026-05-24T12:20:52+00:00

I have developed a web based application which allows a client/user to upload a

  • 0

I have developed a web based application which allows a client/user to upload a file to JVM memory. The server side code then FTP’s the file to another server. This all works fine and dandy on my local machine, but I’m now running into problems getting this to work on our test environment servers.

On the test environment server, the code successfully connects and logs in to the remote Windows server, but hangs during file transfer. An empty file is created on the destination server but no bytes are transferred. Stack trace from JVM which eventually killed the thread:

[10/08/11 14:45:24:234 BST] 00000003 ThreadMonitor W   WSVR0605W: Thread "WebContainer : 2" (00000033) has been active for 666083 milliseconds and may be hung.  There is/are 1 thread(s) in total in the server that may be hung.
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:431)
at java.net.ServerSocket.implAccept(ServerSocket.java:464)
at java.net.ServerSocket.accept(ServerSocket.java:432)
at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:693)
at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:551)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1704)
... (my own app code stack trace from here on down)

Looks like a socket issue, but can anyone help me figure out on which machine the issue is on? Is it the test environment JVM or is it the destination Windows server? I’m guessing its the test environment server, otherwise I would have seen this issue on my local machine? If it is on the test environment server, is it a matter of opening up ports (and if so what do I ask for)? Any help most appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:20:53+00:00Added an answer on May 24, 2026 at 12:20 pm

    It sounds like a firewall problem to me, which may be solved by using passive mode for the FTP client. When in active mode, the FTP server tries to initiate a connection to the FTP client when transferring a file and the firewall/WAS may not like that.

    According to the docs for commons ftpclient, the default mode is ACTIVE, so in your code, try calling

    ftpclient.enterLocalPassiveMode();
    

    after the connect, but before the file transfer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web application which has Chart Controls. I have developed a
I have developed a web based application in ASP.NET and C# where users have
I have a web application which has several users and each user will have
I have a web application developed with ASP.net and C# that is running on
I have created a web service which has a couple of methods developed using
We have a web based application in production built using django. It is deployed
We are looking for an approach for developing a web based application which should
I'm working on a web based application that belongs to an automobil manufacturer, developed
We are using ASP.Net Web services. The architecture is Desktop Based Application developed in
I have a system that we have recently developed - a web application over

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.