Problem when using AJAX to load a Java applet



Hi all,

I'm trying to use the RadUpload java-based file uploader inside of a
Ruby on Rails application, and I'm running into some problems, which I
don't think are dependent on the actual applet. In order to save users
from having to load the applet immediately at page load, I have a
link, which triggers an AJAX request to load the applet within a div
on the page.

The problem happens intermittently on Firefox and IE7 on my machine,
and always happens in IE7 on another machine that I'm testing on. I've
googled all over the place and haven't had any luck. Any help much
appreciated!

Here is the code for loading the applet, which is loaded from the
server side within a div innerHTML on the page when the user clicks
the link:
<applet
archive = "/radupload/dnd.jar"
code = "com.radinks.dnd.DNDApplet"
name = "Rad Upload"
hspace = "0"
vspace = "0"
width = "290"
height = "290"
align = "middle"
MAYSCRIPT="yes"
>

<param name="jsnotify" value="yes">
<param name = "message" value="Drag and Drop your files
here to upload them.">

</applet>


And the error I'm receiving in the Java console:
Java Plug-in 1.6.0_05
Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM

java.lang.NullPointerException
at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
.



Relevant Pages

  • Re: WebBrowser Control doesnt load Java Applet (XP SP2)
    ... neither IE standalone, nor webbrowser controls load ... default webbrowser control loads the MS JVM to execute any java applet. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • (no subject)
    ... The product I have is totally written in java 1.1 and there is ... I have a product that is an applet that is composed of jar ... I created an installer that downloads the file to ... your local drive and you can load the applet from there. ...
    (comp.security.misc)
  • [opensuse] Java Plugin for Firefox
    ... I am trying to enable java within the Firefox browser on opensuse 10.2 ... when I try to verify my java installation from the Sun download ... status bar text displays "Applet jreCheck notinited" and "Applet testvm ... load: class jreVerify.class not found. ...
    (SuSE)
  • Re: doppler radar loop and java
    ... A local radar loop like the one above will load fast through weatherunderground. ... Apparently there's a problem between the java with OS 10.4.10 and the java used at the above URL. ... Once the applet is loaded locally, reloading is faster, though slower than Firefox on Windows XP. ...
    (comp.sys.mac.system)
  • Re: Running Java Applet Under IE6 from .NET User Control
    ... As far as Java is concerned it looks it shouldn't be an ASP.NET problem... ... files in it but you put also the applet file in it). ... > I am trying to run a Java Applet on my ascx page and am getting an IO> exception when IE6 tries to load the applet. ... > My error is below and the most significant part of it is the HTTP connection> failure. ...
    (microsoft.public.dotnet.general)