Certificate Issue Issue

I developed one applet and I find strange behavior.

This is for an embedded security-based application that is built in GWT, Hibernate, and Spring.

An applet primarily accesses browser certificates and uses it to encrypt and decrypt data.

It works fine in the whole system, but I don’t know one client machine, I find strange behavior.

When you log in to Internet Explorer. The applet download stops at the next point, and then automatically closes.

Error in applet console:

basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@337d0f

basic: parent of 2ClassLoader.addURL plugins, called for http://phil.etenders.in/securityApplet.jar security: blacklist revocation checking enabled security: checked list of trusted libraries network: cache entry found [url: http: // phil .etenders.in / securityApplet.jar , version: null] prevalidated = false / 0

Blacklist check removed Check and check the trusted library, but there is no effect. (They go well)

If I open some sample applet from http://csis.pace.edu/~bergin/Java/applets.htm it stops on the next line

basic: Plugin2ClassLoader.isTrustedByPolicy called basic: Plugin2ClassLoader.isTrustedByPolicy returns false 

Behavior in all three browsers.

  • Firefox and Chrome: not loading at all.
  • IE: the first time does not load when the update is downloaded.

Let me know if more details are required. Refer to the source code from here .

+6
source share
2 answers

I updated the latest java version on the client machine, it works fine.

+1
source

This is due to network congestion. Once the applet reacted very slowly, so you need to set the environment variable JPI_PLUGIN2_NO_HEARTBEAT = 1 on the system.

Description. This disables heartbeat reporting between the browser virtual machine and client instances of the JVM. This allows the JVM client to remain browser independent of the VM.

Solution link (s) for the root cause: https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Tivoli+Network+Manager/page/Browser+JRE

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6953754


Update:

Problem . When the browser requests an applet, it creates a connection to the system JVM. By default, this connection is 10 seconds. If they cannot communicate for a given period of time, the JVM kills this thread. This leads to abnormal behavior of the applet.

Solutions . We must set the "Environment Variable" in a system where the applet does not load properly (one-time installation). It will remove the 10 second response time in the other word “Timeout” in the system between the system JVM and the VM browser. We can create an executable file to create this system environment variable. We need to reboot the system to ensure that the JVM will use this variable.

How / Where to set a system environment variable?

To set the system environment variable, follow these steps:

Step 1 . Open the properties of my computer.

Step 2 In Windows 7, you will find Advanced System Settings in the left pane to open it with one click.

Step 3 Click on the "Advanced" tab if you are not in the advanced tab.

Step 4 Click the "Environment Variables ..." button below, a dialog box will open.

Step 5 Find the "System Variables" frame and create a new item.

Step 6 Indicate the variable name as "JPI_PLUGIN2_NO_HEARTBEAT" (without a quote) and the variable value as "1" [one] (without quotes).

Step7 : Click Ok

Step8 : Click Ok

Step9 : Click Ok

Step 10 Now reboot your system.

You can also use the links provided in the answer ... to solve the Java error problem.

0
source

Source: https://habr.com/ru/post/952801/


All Articles