求助: Applet无法在客户端 已经安装了JVM浏览器上运行
kevin0823
|
1#
kevin0823 发表于 2007-01-15 18:23
求助: Applet无法在客户端 已经安装了JVM浏览器上运行
服务器: win2000, web服务器: tomcat5.0
jdk: 1.4 客户端jre1.4 html调用applet代码: <applet align=middle code= "applet.class " codebase= ". " width=450 height=400> </applet> 类文件和html文件都放在同一目录下 webapps\Applet 在服务器浏览器中输入: http://192.168.4.248:8080/Applet/applet.html 能正常显示applet 但在客户机上输入http://192.168.4.248:8080/Applet/applet.html时控制台报错如下,请问是为什么? Java(TM) Plug-in: 版本 1.4.2_10 使用 JRE 版本 1.4.2_10 Java HotSpot(TM) Client VM 用户主目录 = C:\Documents and Settings\whq代理配置:没有代理---------------------------------------------------- c: 清除控制台窗口 f: 终结在结束队列上的物件 g: 垃圾收集 h: 显示此帮助消息 l: 转储类载入程序列表 m: 打印内存使用 o: 触发日志记录 p: 重新载入代理配置 q: 隐藏控制台 r: 重新载入策略配置 s: 转储系统属性 t: 转储线程列表 v: 转储线程堆栈 x: 清除类载入程序高速缓存 0-5: 设置跟踪级别为 <n> ---------------------------------------------------- java.lang.NullPointerException at sun.plugin.cache.CachedFileLoader.writeHeaders(Unknown Source) at sun.plugin.cache.CachedFileLoader.createCacheFiles(Unknown Source) at sun.plugin.cache.CachedFileLoader.access$200(Unknown Source) at sun.plugin.cache.CachedFileLoader$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.cache.CachedFileLoader.download(Unknown Source) at sun.plugin.cache.CachedFileLoader.load(Unknown Source) at sun.plugin.cache.FileCache.get(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)java.lang.NullPointerException at sun.plugin.cache.CachedFileLoader.writeHeaders(Unknown Source) at sun.plugin.cache.CachedFileLoader.createCacheFiles(Unknown Source) at sun.plugin.cache.CachedFileLoader.access$200(Unknown Source) at sun.plugin.cache.CachedFileLoader$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.cache.CachedFileLoader.download(Unknown Source) at sun.plugin.cache.CachedFileLoader.load(Unknown Source) at sun.plugin.cache.FileCache.get(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)java.lang.NullPointerException at sun.plugin.cache.CachedFileLoader.writeHeaders(Unknown Source) at sun.plugin.cache.CachedFileLoader.createCacheFiles(Unknown Source) at sun.plugin.cache.CachedFileLoader.access$200(Unknown Source) at sun.plugin.cache.CachedFileLoader$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.cache.CachedFileLoader.download(Unknown Source) at sun.plugin.cache.CachedFileLoader.load(Unknown Source) at sun.plugin.cache.FileCache.get(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)java.lang.NullPointerException at sun.plugin.cache.CachedFileLoader.writeHeaders(Unknown Source) at sun.plugin.cache.CachedFileLoader.createCacheFiles(Unknown Source) at sun.plugin.cache.CachedFileLoader.access$200(Unknown Source) at sun.plugin.cache.CachedFileLoader$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.cache.CachedFileLoader.download(Unknown Source) at sun.plugin.cache.CachedFileLoader.load(Unknown Source) at sun.plugin.cache.FileCache.get(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.plugin.net.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) |