启动Java Applet

时间:2017-06-19 21:56:17

标签: java jar applet

我有一个Web应用程序,它启动一个引用大量Jars的Java Applet。当我启动applet时,启动了Java控制台,我可以看到这些jar被下载了。在其中一个Jars中,我得到异常并且Applet加载被停止。

机器:Windows 7 - 64位

Java Plug-in 10.80.2.15

使用JRE版本1.7.0_80-b15 Java HotSpot(TM)客户端虚拟机 - 使用此JRE作为Applet已通过此JRE版本认证,我甚至尝试使用最新的JRE。

异常追踪:

    basic: Plugin2ClassLoader.addURL parent called for 
    http://localhost:9500/***.jar?token=1497907732260dxwJEJ2dVgcJ7epg1wP11qEgom0
   basic: Plugin2ClassLoader.addURL parent called for http://localhost:9500/****/xercesImpl.jar?token=1497907732270bV1GSJKvAHvnsyCetLkp1JE8PDW
   basic: Plugin2ClassLoader.addURL parent called for        http://localhost:9500/****/xml-apis.jar?token=1497907732277kAb6Fc3EBqsLhelOISTV73FyIvX
 basic: Plugin2ClassLoader.addURL parent called for http://localhost:9500/****/xalan.jar?token=1497907732283fAmmBmYycSZC3KvAI89phQ4yHq0
 basic: Plugin2ClassLoader.addURL parent called for http://localhost:9500/****/serializer.jar?token=1497907732289dYYFRhl8qxfEXFwbaUnW3yObqwB

 cache: Adding MemoryCache entry: http://localhost:9500/****/****.jar?token=1497907732362bhwRmCAl37YmOQZZJOgtnxNK8GY
 cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@f544430e: 1
 security: Validate the certificate chain using CertPath API
 security: Grant socket perm for http://localhost:9500/****/****.jar?token=1497907732362bhwRmCAl37YmOQZZJOgtnxNK8GY :      
 java.security.Permissions@15e8b6d (
     ("java.net.SocketPermission" "localhost" "connect,accept,resolve")
)

 security: Validate the certificate chain using CertPath API
 basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
 java.lang.NoClassDefFoundError: com/****/UResourceBundle
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.getDeclaredMethod(Unknown Source)
    at java.awt.Component.isCoalesceEventsOverriden(Unknown Source)
    at java.awt.Component.isCoalesceEventsOverriden(Unknown Source)
    at java.awt.Component.access$500(Unknown Source)
    at java.awt.Component$3.run(Unknown Source)
    at java.awt.Component$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Component.checkCoalescing(Unknown Source)
    at java.awt.Component.<init>(Unknown Source)
    at java.awt.Container.<init>(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at javax.swing.JFrame.<init>(Unknown Source)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.***.UResourceBundle
          at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
          at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
          at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
          at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 24 more
    security: Reset deny session certificate store
    basic: Removed progress listener: 
    sun.plugin.util.ProgressMonitorAdapter@5bdbdc
    security: Reset deny session certificate store

我查看了Java Cache并打开了下载的jar,我可以看到该类在那里。

之前的异常是在其他一些类上,然后我删除了所有版本的Java,并重新安装了JDK 7 Update 80 32位和类错误输出。

0 个答案:

没有答案