Java – what do I need to do to make liveconnect run again?

A few years ago, I wrote a Java Web start application in NetBeans, which performs a simple file upload task Over the years, I used it as a self - signed applet, but finally gave in and bought a signature certificate I have signed all my signatures now, but I have a new problem

The public methods of one of the main classes are called by JavaScript But it seems to have stopped working When I try to call this method manually in firebug, this is the message I receive:

Error: Liveconnect call for Applet ID 8 is not allowed in this JVM instance.

Update: This is the wrong version when I tried this operation in chrome:

Error calling method on NPObject.

I'm already using the latest version of the Java plug-in (7u51), so what does it give? This small program used to work, but now it is obviously no longer applicable Do I need to add something special to the code? Or change the settings as NetBeans is compiled?

Solution

I thought of it; I found that some forum posts mentioned that I had to update my manifest file Obviously, Oracle has recently changed the way liveconnect works, so you must explicitly allow sub domains that can call applets

The information about it is here. Basically, you must add the caller - allowable - code base instruction to the manifest file Fortunately, it can be set as a wildcard, which is what I finally did Obviously, you should also set application name and it in the manifest file, especially you should not include trusted library true I really don't know why or what that is, but I can adjust my list file and everything seems to work again!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>