简体   繁体   English

小程序无法加载

[英]Applets failing to load

While testing our setup for user acceptance testing, we got some reports that java applets in our web application would occasionally fail to load. 在测试用于用户验收测试的设置时,我们收到一些报告,称Web应用程序中的Java小程序有时可能无法加载。 The envt where it was reported was WinXP/IE6, and there were no errors found in the java console. 报告它的环境是WinXP / IE6,并且在Java控制台中未发现任何错误。

Obviously we'd like to avoid it. 显然,我们希望避免这种情况。 What sort of things should we be checking for here? 我们应该在这里检查什么样的事情? On our local servers, everything seems fine. 在我们的本地服务器上,一切似乎都很好。 There's some turnaround time when sending questions to the on-site guy, so I'd look to cover as many possible causes as possible. 向现场人员发送问题时需要一些周转时间,因此我希望涵盖尽可能多的原因。

Some more info: We have multiple applets, in the instance that they fail loading, all of them fail loading. 更多信息:我们有多个applet,在它们无法加载的情况下,它们都无法加载。 The applet jar files vary in size from 2MB to 8MB. applet jar文件的大小从2MB到8MB不等。 I'm told it seems more likely to happen if the applet isn't cached yet, ie if they've been able to load the applets once on a given machine, further runs on that machine go smoothly. 有人告诉我,如果尚未缓存该applet,这似乎更有可能发生,即,如果它们能够在给定的计算机上加载applet一次,则在该计算机上的进一步运行会很顺利。 I'm wondering if there's some sort of network transfer error when downloading the applets, but I don't know how to verify that. 我想知道下载小程序时是否存在某种网络传输错误,但是我不知道如何验证。

Any advise is welcome! 任何建议都欢迎!

Is it possible that there are version dependencies/mismatches with the JRE on the failing machines? 故障机器上的JRE是否可能存在版本依赖性/不匹配? I've had some situations with code that required Java 6 crashing browsers (Mac/Safari) that didn't have it. 我遇到过一些需要使用Java 6崩溃浏览器(Mac / Safari)的代码的情况。

My experience with applets in an enterprise environment usually leads down 1 of 3 paths in regards to problems. 我在企业环境中使用小程序的经验通常会导致3条涉及问题的途径中的1条。

Incorrect or conflicting JRE versions on the client 客户端上的JRE版本不正确或冲突

Corrupt JRE on the client. 客户端上的JRE损坏。

Corrupt IE Cache IE缓存损坏

I have found uninstalling a single JRE is usually not enough, Its often required to uninstall all JRE's on the machine and reinstall only the ones you need. 我发现仅卸载单个JRE通常是不够的,通常需要卸载计算机上的所有JRE并仅重新安装所需的JRE。

Another trick is to reset their NT profile. 另一个技巧是重置其NT配置文件。 This does wonders to correct IE cache issues as well. 这确实也想解决IE缓存问题。 Done this so often I have documented the procedure. 如此频繁地做过,我已经记录了该过程。 I generally perform this when a JRE uninstall reinstall doesnt work. 当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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM