小程序无法加载

时间:2009-11-26 06:01:40

标签: java applet

在测试我们的用户验收测试设置时,我们得到了一些报告,我们的Web应用程序中的Java applet偶尔会无法加载。报告它的地方是WinXP / IE6,并且在java控制台中没有发现错误。

显然我们想避免它。我们应该在这里检查什么样的东西?在我们的本地服务器上,一切似乎都很好在向现场人员发送问题时有一些周转时间,所以我希望尽可能多地涵盖这些问题。

更多信息: 我们有多个小程序,在加载失败的情况下,所有小程序都无法加载。 applet jar文件的大小从2MB到8MB不等。我被告知,如果applet还没有缓存,似乎更有可能发生,即如果他们已经能够在给定的机器上加载applet一次,那么该机器上的进一步运行顺利进行。我想知道在下载applet时是否存在某种网络传输错误,但我不知道如何验证。

欢迎任何建议!

2 个答案:

答案 0 :(得分:0)

在发生故障的计算机上是否可能存在与JRE的版本依赖性/不匹配?我遇到过一些代码需要Java 6崩溃的浏览器(Mac / Safari)而没有它的情况。

答案 1 :(得分:0)

我在企业环境中使用applet的经验通常会导致问题中的3条路径中的1条。

客户端上的JRE版本不正确或有冲突

客户端损坏JRE。

损坏IE缓存

我发现卸载单个JRE通常是不够的,通常需要卸载机器上的所有JRE并重新安装所需的JRE。

另一个技巧是重置他们的NT个人资料。这确实可以纠正IE缓存问题。经常这样做我记录了程序。我通常在JRE卸载重新安装时不能正常工作。

This can only be done by an administrator off the workstation. 
Meaning a user with Admin access cannot delete their own profile.

Before a user profile is deleted good practice is to back up the following folders found in: 
C:\Documents and Settings\<USERNAME>

Desktop
Favorites
My Documents

These folders could be copied to the user’s H:\ drive then can be copied back to the same folder
after the user logs back on to the system.

1.  Reboot the workstation. When you are back to the log on screen log in as the administrator.

2.  Right click on My Computer and choose properties.

3.  Choose the Advanced Tab then, under User Profiles, click on Settings.

4.  Highlight the user profile you would like to remove then click Delete. Close all the way out of the properties box.

5.  Go to Windows Explorer and navigate to C:\Documents and Settings. The folder named after the USERNAME
should have been removed. If it still remains manually delete the folder, 
then empty the recycling bin to make sure it’s been fully removed from the system.

6.  Reboot the workstation. At the log on prompt the user can log back in as themselves. 
This will create a brand new NT profile with their username. 
This will recreate certain OS settings as well as Internet Explorer settings 
that might have been corrupted in the old profile.

7.  At this point the three folders copied to the users H:\ drive can now be copied back to 
C:\Documents and Settings\<USERNAME>