Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.9k views
by (300 points)
I have an issue with version 3.1 and FireFox 7.0.1 (java 1.6.29). I am using an upload button on a form to start the process. When clicking on the button the control initialises and the file selection dialog box is opened. Once a file is selected nothing else happens. This works OK with IE8 (32bit). The client is Windows 7 64 bit.

The java console logs are

Java Plug-in 1.6.0_29
Using JRE version 1.6.0_29-b11 Java HotSpot(TM) Client VM
User home directory = C:\Users\afrench
----------------------------------------------------
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>
----------------------------------------------------
Exception occurred during event dispatching:
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at sun.plugin2.applet.Applet2SecurityManager.checkAccess(Unknown Source)
   at java.lang.ThreadGroup.checkAccess(Unknown Source)
   at java.lang.Thread.init(Unknown Source)
   at java.lang.Thread.<init>(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.start(Unknown Source)
   at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$000(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.Dialog$1.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$000(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue$2.run(Unknown Source)
   at java.awt.EventQueue$2.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
DEBUG [AWT-EventQueue-12_FilePrompt] 1 Nov 2011 12:16:25.717 : componentHidden
DEBUG [AWT-EventQueue-12_FilePrompt] 1 Nov 2011 12:16:25.719 : Dialog closed com.enterprisedt.net.ftp.applet.dialog.FilePrompt[10]: crashreporter.ini
DEBUG [AWT-EventQueue-12_JSWrapper] 1 Nov 2011 12:16:25.720 : Javascript invocation: setTimeout("FTPClient_onDialogResult('0', 1000000)", 100)
DEBUG [DialogManager_DialogManager] 1 Nov 2011 12:16:25.720 : Waiting for dialog closure, java.awt.FileDialog[filedlg11,329,283,0x0,invalid,hidden,APPLICATION_MODAL,title=Please select a file,dir= C:\Program Files (x86)\Mozilla Firefox\,file= crashreporter.ini,load]
netscape.javascript.JSException: No such method "setTimeout" on JavaScript object
   at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
   at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
   at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
   at com.enterprisedt.net.ftp.applet.M.A(Unknown Source)
   at com.enterprisedt.net.ftp.applet.B.A(Unknown Source)
   at com.enterprisedt.net.ftp.applet.dialog.B.D(Unknown Source)
   at com.enterprisedt.net.ftp.applet.dialog.FilePrompt.E(Unknown Source)
   at com.enterprisedt.net.ftp.applet.dialog.FilePrompt.componentHidden(Unknown Source)
   at java.awt.Component.processComponentEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Window.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$000(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue$2.run(Unknown Source)
   at java.awt.EventQueue$2.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
&nbsp

12 Answers

0 votes
by (51.1k points)
Hi Alastair

I just tried integralftp.com on FireFox 7.0.1 and it worked OK. Can you please post a Java console log of integralftp.com on FireFox?

- Hans (EnterpriseDT)
0 votes
by (300 points)
I tried again after a reboot and the test site does work OK. It looks like I might have v2 rather than 3 so I have tried the latest version and used the uploadcontrol example with no modifications at all.

In FF 7.0.1 this is the java log

Java Plug-in 1.6.0_29
Using JRE version 1.6.0_29-b11 Java HotSpot(TM) Client VM
User home directory = C:\Users\afrench
----------------------------------------------------
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>
----------------------------------------------------
DEBUG [Applet 3 LiveConnect Worker Thread_DialogManager] 2 Nov 2011 08:56:57.983 : Creating dialog, com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[1]
DEBUG [Applet 3 LiveConnect Worker Thread_FTPApplet] 2 Nov 2011 08:56:57.986 : Adding result 1000001 - com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt
DEBUG [Applet 3 LiveConnect Worker Thread_DialogManager] 2 Nov 2011 08:56:57.986 : Queueing dialog, com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[1]
DEBUG [Applet 3 LiveConnect Worker Thread_DialogManager] 2 Nov 2011 08:56:57.986 : Notifying dialog thread
DEBUG [DialogManager_DialogManager] 2 Nov 2011 08:56:57.987 : Woken
DEBUG [DialogManager_DialogManager] 2 Nov 2011 08:56:57.987 : Popped dialog from queue, com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[1]
DEBUG [DialogManager_DialogManager] 2 Nov 2011 08:56:57.987 : Showing dialog, com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[1]
DEBUG [DialogManager_SwingFilePrompt] 2 Nov 2011 08:56:58.170 : Showing dialog
DEBUG [DialogManager_SwingFilePrompt] 2 Nov 2011 08:57:01.171 : Dialog closed com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[1]:
DEBUG [DialogManager_SwingFilePrompt] 2 Nov 2011 08:57:01.171 :   0 C:\Users\afrench\Documents\desktop.ini
DEBUG [DialogManager_JSWrapper] 2 Nov 2011 08:57:01.371 : Javascript invocation: setTimeout("FTPClient_onDialogResult('0', 1000001)", 100)
DEBUG [DialogManager_DialogInfo] 2 Nov 2011 08:57:01.375 : Acquiring lock 1
DEBUG [DialogManager_DialogInfo] 2 Nov 2011 08:57:01.376 : Acquired lock 1
DEBUG [DialogManager_DialogInfo] 2 Nov 2011 08:57:01.376 : Releasing lock 1
DEBUG [DialogManager_DialogManager] 2 Nov 2011 08:57:01.376 : Dialog shown
DEBUG [DialogManager_DialogManager] 2 Nov 2011 08:57:01.376 : No dialogs queued.  Waiting...
DEBUG [Applet 3 LiveConnect Worker Thread_FTPApplet] 2 Nov 2011 08:57:01.469 : Found result for task 1000001 of type com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt


No file is uploaded, however in IE8 on the same PC the file is uploaded OK, the log is below - there is quite a difference.

Java Plug-in 1.6.0_29
Using JRE version 1.6.0_29-b11 Java HotSpot(TM) Client VM
User home directory = C:\Users\afrench
----------------------------------------------------
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>
----------------------------------------------------


Integral FTP (c) 2007 Enterprise Distributed Technologies Pty Ltd. Trial version 4.0.1 (built 1-Aug-2011 11:30:12 EST)
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.018 : LogLevel=DEBUG
Integral FTP log level is DEBUG
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.019 : FTPApplet being initialized...
DEBUG [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.023 : minPoolSize = 1
DEBUG [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.023 : maxPoolSize = 5
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.109 : Created FTP client
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.113 : Document host = customersupportportaltest
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.174 : FTPApplet initialized
DEBUG [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_JSWrapper] 2 Nov 2011 08:58:08.375 : Javascript invocation: setTimeout("FTPClient_onInitialize('0', -1,null)", 100)
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.393 : FTPApplet starting...
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_HTTPAcceptor] 2 Nov 2011 08:58:08.405 : Started listening on port 61227
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_HTTPAcceptor] 2 Nov 2011 08:58:08.408 : Started listening on port 61228
INFO [thread applet-com/enterprisedt/net/ftp/applet/FTPApplet.class-1_FTPApplet] 2 Nov 2011 08:58:08.408 : FTPApplet started
DEBUG [Thread-11_LocalFSProcessor] 2 Nov 2011 08:58:08.409 : Running LocalFSProcessor
INFO [Applet 1 LiveConnect Worker Thread_FTPApplet] 2 Nov 2011 08:58:09.524 : LogLevel=DEBUG
Could not read property 'edtftp.log.log4j' due to security permissions
Could not read property 'edtftp.log.log4j' due to security permissions
Could not read property 'edtftp.log.log4j' due to security permissions
DEBUG [Applet 1 LiveConnect Worker Thread_DialogManager] 2 Nov 2011 08:58:11.176 : Creating dialog, com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[0]
DEBUG [Applet 1 LiveConnect Worker Thread_FTPApplet] 2 Nov 2011 08:58:11.176 : Adding result 1000000 - com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt
DEBUG [Applet 1 LiveConnect Worker Thread_DialogManager] 2 Nov 2011 08:58:11.176 : Queueing dialog, com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[0]
DEBUG [Applet 1 LiveConnect Worker Thread_DialogManager] 2 Nov 2011 08:58:11.176 : Starting dialog thread
DEBUG [DialogManager_DialogManager] 2 Nov 2011 08:58:11.178 : Popped dialog from queue, com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[0]
DEBUG [DialogManager_DialogManager] 2 Nov 2011 08:58:11.179 : Showing dialog, com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[0]
DEBUG [DialogManager_SwingFilePrompt] 2 Nov 2011 08:58:11.875 : Showing dialog
DEBUG [DialogManager_SwingFilePrompt] 2 Nov 2011 08:58:13.775 : Dialog closed com.enterprisedt.net.ftp.applet.dialog.SwingFilePrompt[0]:
DEBUG [DialogManager_SwingFilePrompt] 2 Nov 2011 08:58:13.775 :   0 C:\Users\afrench\Documents\desktop.ini
DEBUG [DialogManager_JSWrapper] 2 Nov 2011 08:58:13.976 : Javascript invocation: setTimeout("FTPClient_onDialogResult('0', 1000000)", 100)
DEBUG [DialogManager
0 votes
by (180 points)
I'm using this url:

http://www.enterprisedt.com/products/in ... ntrol.html

Firefox 7.0.1
Windows 7
Java 1.7.0

After I choose a file with the upload button nothing happens.

Some additional browser issues:
IE 9 crashes when I try to upload something.
Chrome works, but if I open the file upload box and click cancel, it thinks there is a file called nullnull.
0 votes
by (51.1k points)
Believe it or not Java 7 doesn't support FTP.

We've submitted a bug report to Oracle (see <url=http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696>here</url>).

Other links:


The latter link includes a workaround, which I haven't tried:
netsh advfirewall set global StatefulFTP disable


Another option is to use SFTP, which only uses a single socket connection.

- Hans (EnterpriseDT)
0 votes
by (180 points)
Thanks for the reply Hans,

I actually am planning on using sftp.
However, the issues I am encountering are related to the call to promptFile and promptFiles.
The main integralftp site seems to be working fine, it seems to be just this that is breaking.

Thanks!
Jeff
0 votes
by (51.1k points)
Hi Jeff

Could you please e-mail us at support@enterprisedt.com? I'd like to send you an unreleased version that may fix your problem.

- Hans (EnterpriseDT)
0 votes
by (300 points)
Hans

The test system I am running this on is using Java 6 and the windows firewall is off. However the symptoms are the same as Jeff has with Java 7.

I am trying to get sftp turned on at the server end to see if this makes any difference.

Alastair
0 votes
by (51.1k points)
If you'd like to try the new version as well then please e-mail me.

- Hans (EnterpriseDT)
0 votes
by (300 points)
Hans

Thanks for the trial version, it has the same issues as the release 4.0.1 version with FF7.0.1. IE8 looks OK, Java version is 1.6r29

The full ftpclient example works OK, it is just the upload example that fails

Thanks

Alastair
0 votes
by (51.1k points)
I've been testing the same version I sent you with FireFox 7.0.1 on Windows 7 (x64) with Java 1.6.0_26. It works fine for me. The log you sent doesn't really offer any clues. It's strange that the log starts where it does. Did you clear it at some point? Also, he first result is 1000001 - normally it start at 1000000.

It might be worth trying the promptFile method instead of the promptFiles method. To do this change the promptForFiles method in UploadControl.js to:

function promptForFiles(ftpClient) {
ftpClient.promptFile(true, onFileSelected, ftpClient);
}

This will use Java AWT instead of Swing so it basically works completely differently. The downside is that it only allows single selection.

- Hans (EnterpriseDT)

Categories

...