error loading appleterror loading appletI 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 Re: error loading appletDid you also copy i18n_bar.properties and i18n_pane.properties ? The error you get means that the applet cannot load these files.
Re: error loading appletThanks 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 Re: error loading appletYes, 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 ? Re: error loading appletI 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 Re: error loading applethello,
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 Re: error loading appletCould you provide me the new URL where I can test it ?
Re: error loading appletthanks for the response!!
I'm sorry but by now this new module is not online, i'm running it on my localhost :/ Re: error loading appletI 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
Re: error loading appletDon't you forget to copy all lib/*.jar files too ?
|