Page 1 of 1

firefox 4 exceptions

Posted: Mon Mar 28, 2011 12:05 am
by jmarcv
In my app I get this Java console exception, plus an error document.fileupload.setRegular is not a function.
url parameter executes and image IS uploaded, but forward does not.

This is happening in FF4 only in our app and reported by all our FF4 users. Before I spend too much time, is this something obvious you can see?



[INFO] ImageFilter - Image writing []: true
(C:\Users\jmv\AppData\Local\Temp\Photo_062107_005.jpg)
Exception in thread "HTTPUPLOAD" java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown
Source)
at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown
Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
jfileupload.transfer.client.http.HTTPUploadTransfer.transfer(Unknown Source)
at
jfileupload.transfer.client.http.HTTPUploadTransfer.transferAndRetry(Unknown
Source)
at
jfileupload.transfer.client.http.HTTPUploadTransfer.processFile(Unknown
Source)
at
jfileupload.transfer.client.http.HTTPUploadTransfer.process(Unknown Source)
at jfileupload.transfer.client.http.HTTPUploadTransfer.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
... 14 more
Caused by: java.lang.ThreadDeath
at java.lang.Thread.stop(Unknown Source)
at java.lang.ThreadGroup.stopOrSuspend(Unknown Source)
at java.lang.ThreadGroup.stop(Unknown Source)
at sun.awt.AppContext.dispose(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppContextDisposer.run(Unknown
Source)
... 1 more
[INFO] MApplet - JFileUpload 2.8 Build FINAL.001

Re: firefox 4 exceptions

Posted: Tue Mar 29, 2011 5:42 pm
by support
We didn't start strong tests under FF4 because it has just moved from RC2 to final last week. However, we've started basic tests and JSAPI seems to work. Could you try the following URL in your FF4:
http://www.jfileupload.com/products/dem ... jsapi.html

Do you see any JavaScript error in the JavaScript console provided by FF4?

Re: firefox 4 exceptions

Posted: Wed Mar 30, 2011 2:31 am
by jmarcv
>Do you see any JavaScript error in the JavaScript console provided by FF4?

Please see my first sentance:
>>plus an error document.fileupload.setRegular is not a function.

I will try the URL and report back.

Re: firefox 4 exceptions

Posted: Wed Mar 30, 2011 5:09 pm
by support
setRegular function is used in the URL I've provided and it seems to work (when you hit "Test" button). Could you confirm it works in your FF4?