The file completed uploading, but the applet never received the message so it just hung at 100%. Our ftp server timeouts after 15 minutes so when it closed the connection the applet finally showed the transfer done (the java console does show the connection closed exception errors). Here's the full console log, in case it might help, with the urls removed in case of forum spiders/bots:
Code: Select all
[INFO] MApplet - JFileUpload 2.7 Build FINAL.001
Wed Dec 08 09:30:48 EST 2010 JEP creating applet jfileupload.upload.client.JSMApplet (http://www.xxxxxxxxxxxxx.xxx/xxxxx/)
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@85e403 (
(java.net.SocketPermission www.xxxxxxxxxxxxx.xxx connect,accept,resolve)
)
>>>
[INFO] FTPTransfer - Control encoding: ISO-8859-1
[INFO] FTPTransfer - FTP buffer size = 16384
[INFO] JSMApplet - JSAPI 2.7
[INFO] FilePreview - ImagePreview loaded - 140x140 - scaling=subsample
[INFO] FTPTransfer - Connected to ftp://ftp.xxxxxxx.xxx
[INFO] FTPTransfer - 220 Microsoft FTP Service
[INFO] FTPTransfer - PASV enabled
[INFO] FTPUploadTransfer - Upload started : /Users/jsherber/Clients/NB/mailings/2010 holiday card/82281.zip
[INFO] CommandMonitor - COMMANDMONITOR started (120000 ms)
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] FTPUploadTransfer - org.apache.commons.net.MalformedServerReplyException: Truncated server reply:
[INFO] FTPTransfer - Completing from COMMANDMONITOR transfer error: 0
[INFO] CommandMonitor - COMMANDMONITOR completed
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 1
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 2
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 3
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 4
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 5
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 6
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 7
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 8
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 9
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 10
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 11
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
[INFO] FTPTransfer - Abort completing for COMMANDMONITOR error: 12
[INFO] FTPUploadTransfer - Upload completed
[INFO] FTPTransfer - Disconnected from ftp://ftp.xxxxxxx.xxx
[INFO] MApplet - JFileUpload 2.7 Build FINAL.001
Wed Dec 08 09:54:50 EST 2010 JEP creating applet jfileupload.upload.client.JSMApplet (http://www.xxxxxxxxxxxxx.xxx/xxxxx/)
[INFO] FTPTransfer - Control encoding: ISO-8859-1
[INFO] FTPTransfer - FTP buffer size = 16384
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@82169b (
(java.net.SocketPermission www.xxxxxxxxxxxxx.xxx connect,accept,resolve)
)
>>>
[INFO] JSMApplet - JSAPI 2.7
I did some further testing (behind our firewall, through local network) and noticed there were read timeout errors for the command monitor as well (I shortened the commandmonitor and timeout jsapp parameters so I could see the command monitor calls). The upload completed as normal since the entire process took only a couple of minutes (so it didn't encounter any timeout issues for the command channel), but I don't recall receiving the read timeout errors before (though I could be mistaken as it's been a while since I looked at the java console for an upload). In any event, here's my console log as well:
Code: Select all
Java Plug-in 1.6.0_22
Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\sugiokac
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
[INFO] MApplet - JFileUpload 2.7 Build FINAL.001
[INFO] FTPTransfer - Control encoding: ISO-8859-1
[INFO] FTPTransfer - FTP buffer size = 16384
[INFO] JSMApplet - JSAPI 2.7
[INFO] FilePreview - ImagePreview loaded - 140x140 - scaling=subsample
[INFO] FTPTransfer - Connected to ftp://ftp.xxxxxxx.xxx
[INFO] FTPTransfer - 220 Microsoft FTP Service
[INFO] FTPTransfer - PASV enabled
[INFO] FTPUploadTransfer - Upload started : C:\_LOCAL\PostalOne-Mail.dat stuff\debug.log
[INFO] CommandMonitor - COMMANDMONITOR started (30000 ms)
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[INFO] FTPUploadTransfer - Upload completed
[INFO] FTPTransfer - Disconnected from ftp://ftp.xxxxxxx.xxx
[INFO] CommandMonitor - COMMANDMONITOR completed
Is the "Read timed out" errors normal behavior? Also note, as far as I know, this particular user is the only one that encounters timeout problems. In fact, yesterday we had a different user upload a file that took 20 minutes and everything processed correctly (though she was uploading from Chrome/8.0.552.215 on a Win 7 PC).
Thanks,
Cid