You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Charli <ev...@terra.es> on 2005/02/16 10:42:55 UTC

java applet doesn't work into slide

hello,

i'm using slide as a repository for html with embedded applets in it. 
When i run the applet, it doesn't work and the java virtual machine 
message is:

java.lang.NullPointerException
   at sun.plugin.util.GrayBoxPanel.paint(GrayBoxPanel.java:103)
   at sun.plugin.util.GrayBoxPainter.paintGrayBox(GrayBoxPainter.java:545)
   at 
sun.plugin.util.GrayBoxPainter.repaintGrayBox(GrayBoxPainter.java:499)
   at 
sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:149)
   at sun.plugin.AppletViewer.showAppletStatus(AppletViewer.java:1801)
   at sun.applet.AppletPanel.run(AppletPanel.java:444)
   at java.lang.Thread.run(Thread.java:595)
Exception in thread "thread applet-MemTest1.class" 
java.lang.NullPointerException
   at sun.plugin.util.GrayBoxPanel.paint(GrayBoxPanel.java:103)
   at sun.plugin.util.GrayBoxPainter.paintGrayBox(GrayBoxPainter.java:545)
   at 
sun.plugin.util.GrayBoxPainter.repaintGrayBox(GrayBoxPainter.java:499)
   at 
sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:149)
   at sun.plugin.AppletViewer.showAppletException(AppletViewer.java:1873)
   at sun.applet.AppletPanel.run(AppletPanel.java:527)
   at java.lang.Thread.run(Thread.java:595)
load: class MemTest1.class not found.
java.lang.ClassNotFoundException: MemTest1.class
   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:167)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:118)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:585)
   at sun.applet.AppletPanel.createApplet(AppletPanel.java:710)
   at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1697)
   at sun.applet.AppletPanel.runLoader(AppletPanel.java:639)
   at sun.applet.AppletPanel.run(AppletPanel.java:319)
   at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: open HTTP connection failed.
   at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:270)
   at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)
   at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:157)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:154)
   ... 9 more


In the html file the code for this applet is:

<applet code="MemTest1.class" width="750" height="510"></applet>

In apache server works well, but under tomcat with slide crash ¿why?

Thanks a lot.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org