strange problem

Upload core product.
Post Reply
davinci
Posts: 7
Joined: Sun Sep 14, 2008 10:30 am

strange problem

Post by davinci »

Hi,

A client has a strange problem, which i cannot reproduce.
He uses Vista, the bug is browser independant: IE 8.0, Firefox 3.5.1 or Chrome.
Applet loads fine, but on selecting files it doesn't show anthing.
Console log says:

Code: Select all

1-aug-2009 0:31:33 jfileupload.upload.client.MApplet <init>
INFO: JFileUpload 2.4 Build FINAL.001
1-aug-2009 0:31:33 jfileupload.transfer.client.http.HTTPTransfer autoDetectProxy
INFO: Auto-detect proxy settings (ps): DIRECT
1-aug-2009 0:31:33 jfileupload.transfer.client.http.HTTPTransfer autoDetectProxy
INFO: Auto-detect proxy settings : host = null
1-aug-2009 0:31:33 jfileupload.transfer.client.http.HTTPTransfer autoDetectProxy
INFO: Auto-detect proxy settings : port = -1
1-aug-2009 0:31:33 jfileupload.transfer.client.util.Conf getTransferUI
INFO: TransferUI instantiated : jfileupload.transfer.client.preview.PreviewerTransferUI
1-aug-2009 0:31:33 jfileupload.transfer.client.preview.PreviewerTransferUI init
INFO: JImageUpload 2.3 FINAL.001
1-aug-2009 0:31:33 jfileupload.upload.client.JSMApplet init
INFO: JSAPI 2.4
Exception in thread "AWT-EventQueue-5" java.lang.RuntimeException: java.io.IOException: Could not get shell folder ID list
	at sun.awt.shell.Win32ShellFolderManager2$ComInvoker.invoke(Unknown Source)
	at sun.awt.shell.Win32ShellFolder2.getFileSystemPath(Unknown Source)
	at sun.awt.shell.Win32ShellFolderManager2.getPersonal(Unknown Source)
	at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
	at sun.awt.shell.ShellFolder.get(Unknown Source)
	at sun.swing.WindowsPlacesBar.<init>(Unknown Source)
	at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder(Unknown Source)
	at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(Unknown Source)
	at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
	at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknown Source)
	at javax.swing.JComponent.setUI(Unknown Source)
	at javax.swing.JFileChooser.updateUI(Unknown Source)
	at javax.swing.JFileChooser.setup(Unknown Source)
	at javax.swing.JFileChooser.<init>(Unknown Source)
	at javax.swing.JFileChooser.<init>(Unknown Source)
	at jfileupload.transfer.client.mdesign.FileBrowser.browse(Unknown Source)
	at jfileupload.transfer.client.preview.PreviewerTransferUI.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(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)
Caused by: java.io.IOException: Could not get shell folder ID list
	at sun.awt.shell.Win32ShellFolder2.getFileSystemPath0(Native Method)
	at sun.awt.shell.Win32ShellFolder2.access$900(Unknown Source)
	at sun.awt.shell.Win32ShellFolder2$8.call(Unknown Source)
	at sun.awt.shell.Win32ShellFolder2$8.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

I tried deleting temporary javafiles, temp internetfiles, rebooting, nothing seems to work.

My client says the problem occured a few days ago, he plugged his pc into a different network (at work) and was transfering data from this LAN. Uploads were working fine!
Now he's back at home and cannot access the jfileupload again.
Maybe the uploader tries to find the last accessed location? Which isn't there anymore...

Any thoughts?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: strange problem

Post by support »

It looks like an internal JRE issue. Does drag&drop work ?
Also, could you ask which JRE version is used ?

davinci
Posts: 7
Joined: Sun Sep 14, 2008 10:30 am

Re: strange problem

Post by davinci »

drag n drop does work!
Using JRE version 1.6.0_13

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: strange problem

Post by support »

It looks like a JRE bug in the built-in file chooser:
http://bugs.sun.com/bugdatabase/view_bu ... id=6544857

One solution is to make sure the following folder exists, could you try it?
"%HOMEDRIVE%%HOMEPATH%\Documents"

davinci
Posts: 7
Joined: Sun Sep 14, 2008 10:30 am

Re: strange problem

Post by davinci »

yup found it. it was pointing to a no longer existing location. Used regedit to change it back to default. Somehow the location of Documents was pointing to a network share...(which wasn't available anymore)
Thank you for your quick reply and pointing me to the right directions.

Post Reply