error loading applet

Image previewer add-on.
ron91351
Posts: 10
Joined: Sat Mar 22, 2008 7:10 am

error loading applet

Post by ron91351 »

I have successfully used applet_http_aspx.html and applet_http_aspx.js to upload files. I would now like to use applet_http_ipreview.html. I have modified applet_http_ipreview.js to use process.aspx. I am hosting at goDaddy and I can't install and run .js or .cgi files.

You can view these at:

http://www.jig4u.com/JFileupload/applet_http_aspx.html
http://www.jig4u.com/JFileupload/applet ... eview.html

Here is the java.console.errors:

Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator
----------------------------------------------------
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
p: reload proxy configuration
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>
----------------------------------------------------
Mar 22, 2008 12:17:45 AM jfileupload.upload.client.MApplet <init>
INFO: JFileUpload 2.0 Build FINAL.001
java.util.MissingResourceException: Can't find bundle for base name i18n_bar, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at jfileupload.transfer.client.util.Conf.E(Unknown Source)
at jfileupload.transfer.client.util.Conf.C(Unknown Source)
at jfileupload.upload.client.MApplet.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-jfileupload.upload.client.MApplet.class" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Thanks in advance,
ron

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

Re: error loading applet

Post by support »

Did you also copy i18n_bar.properties and i18n_pane.properties ? The error you get means that the applet cannot load these files.

ron91351
Posts: 10
Joined: Sat Mar 22, 2008 7:10 am

Re: error loading applet

Post by ron91351 »

Thanks for the quick reply.

Yes, I uploaded both *.properties files and they are in same directory as the HTML and JS files. I have viewed the files and they don't appear to be corrupted.

I am on a IIS machine, is there anything special that I need to know to get the applet to read these files.

I am able to get applet_http_aspx.html to work if (and only if) I don't enable the i18n.properties file.
I get the same error that I noted in trying to use applet_http_ipreview.html. Here is the java console errors:

Mar 22, 2008 8:08:33 AM jfileupload.upload.client.MApplet <init>
INFO: JFileUpload 2.0 Build FINAL.001
java.util.MissingResourceException: Can't find bundle for base name i18n, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at jfileupload.transfer.client.util.Conf.E(Unknown Source)
at jfileupload.transfer.client.util.Conf.C(Unknown Source)
at jfileupload.upload.client.MApplet.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-jfileupload.upload.client.MApplet.class" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Thanks in advance,
ron

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

Re: error loading applet

Post by support »

Yes, I think so. Are you able to access the .properties directly in browser ?
Most IIS web servers need to be setup to serve .properties. You just need to enable ".properties" extension to "text/plain" mime type.

If you don't know how to setup mime types:
Under IIS 4.x and 5.x:
http://www.microsoft.com/technet/prodte ... meiis.mspx

Under IIS 6.x:
http://www.microsoft.com/technet/prodte ... 99ead.mspx

Does it help ?

ron91351
Posts: 10
Joined: Sat Mar 22, 2008 7:10 am

Re: error loading applet

Post by ron91351 »

I have hosted my site on goDaddy / Windows and they claim not to be able to change the IIS permission. I have moved the site to a Linux box and will again.

Thanks for the help,
RJ

maurihb
Posts: 4
Joined: Tue Jun 10, 2008 2:23 pm

Re: error loading applet

Post by maurihb »

hello,
I have the same error. I get to load applet_http.js and it works fine. This file is located in a sub directory so i access it with
<script type="text/javascript" src="advUpload/applet_http.js"></script>
When doing the same with applet_http_ipreview.js I get the same error.
I tried to access the *.properties directly from the browser and it shows the content correctly

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

Re: error loading applet

Post by support »

Could you provide me the new URL where I can test it ?

maurihb
Posts: 4
Joined: Tue Jun 10, 2008 2:23 pm

Re: error loading applet

Post by maurihb »

thanks for the response!!
I'm sorry but by now this new module is not online, i'm running it on my localhost :/

maurihb
Posts: 4
Joined: Tue Jun 10, 2008 2:23 pm

Re: error loading applet

Post by maurihb »

I can tell you that i tried the applet_http_ipreview.html in the same folder, allong with the *.js files and it works!!, but if i copy it and change the src to dvUpload/applet_http_ipreview.js it doesn't

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

Re: error loading applet

Post by support »

Don't you forget to copy all lib/*.jar files too ?

Post Reply