由于小程序导致的WeightingScale问题

时间:2017-10-03 10:01:27

标签: java applet classnotfoundexception connectexception

在我们的应用程序中,我们加载applet以从机器的串行端口和USB端口读取数据。 applet代码在过去这么多年里运行良好但是当我们迁移到IE 11.0.44版本时,浏览器在加载applet时挂起2到3分钟。这导致了问题。

以下是Java控制台的日志文件。能否帮助我们解决这个问题。 Java插件10.80.2.15 使用JRE版本1.7.0_80-b15 Java HotSpot(TM)客户端VM

用户主目录= C:\ Users \ aashish.pandey

c:清除控制台窗口 f:在终结队列上完成对象 g:垃圾收集 h:显示此帮助信息 l:转储类加载器列表 m:打印内存使用情况 o:触发日志记录 问:隐藏控制台 r:重新加载策略配置 s:转储系统和部署属性 t:转储线程列表 v:转储线程堆栈 x:清除类加载器缓存

0-5:将跟踪级别设置为

cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@138847d
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@40c4d5
security: Expected Main URL: https://cloud.shipconsole.com/ShipConsoleCloud/weighingscale.jar
basic: Plugin2ClassLoader.addURL parent called for https://cloud.shipconsole.com/ShipConsoleCloud/weighingscale.jar
network: Cache entry not found [url: https://cloud.shipconsole.com/ShipConsoleCloud/weighingscale.jar, version: null]
network: Connecting https://cloud.shipconsole.com/ShipConsoleCloud/weighingscale.jar with proxy=DIRECT
network: Cache entry not found [url: file:/C:/Program%20Files%20(x86)/Java/jre7/lib/ext/sunec.jar, version: null]
network: Cache entry not found [url: file:/C:/Program%20Files%20(x86)/Java/jre7/lib/ext/sunjce_provider.jar, version: null]
network: Connecting http://cloud.shipconsole.com:443/ with proxy=DIRECT
basic: PluginMain.unregisterApplet: 1 from mananger sun.plugin2.applet.Applet2Manager@b66600
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@1b206f
security: Expected Main URL: https://cloud.shipconsole.com/ShipConsoleCloud/weighingscale.jar
basic: Plugin2ClassLoader.addURL parent called for https://cloud.shipconsole.com/ShipConsoleCloud/weighingscale.jar
basic: killed
basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter@40c4d5
network: Cache entry not found [url: https://cloud.shipconsole.com/ShipConsoleCloud/weighingscale.jar, version: null]
network: Connecting https://cloud.shipconsole.com/ShipConsoleCloud/weighingscale.jar with proxy=DIRECT
network: Connecting http://cloud.shipconsole.com:443/ with proxy=DIRECT
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack.connect(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
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)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
network: Cache entry not found [url:https://cloud.shipconsole.com/ShipConsoleCloud/AascWeightScale.class, version: null]
network: Connecting https://cloud.shipconsole.com/ShipConsoleCloud/AascWeightScale.class with proxy=DIRECT
network: Connecting http://cloud.shipconsole.com:443/ with proxy=DIRECT
network: Cache entry not found [url: https://cloud.shipconsole.com/ShipConsoleCloud/AascWeightScale/class.class, version: null]
network: Connecting https://cloud.shipconsole.com/ShipConsoleCloud/AascWeightScale/class.class with proxy=DIRECT
network: Connecting http://cloud.shipconsole.com:443/ with proxy=DIRECT
java.lang.ClassNotFoundException: AascWeightScale.class
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)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
basic: load: class AascWeightScale.class not found.
java.lang.ClassNotFoundException: AascWeightScale.class
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)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Ignored exception: java.lang.ClassNotFoundException: AascWeightScale.class
basic: Dialog type is not candidate for embedding
security: Reset deny session certificate store
basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter@1b206f
security: Reset deny session certificate store

1 个答案:

答案 0 :(得分:0)

当applet未正确加载或存在通信问题时,我们收到classnotfound异常错误。

谢谢, Ravi Teja