java - Trouble calling an applet method from page -


I know that this is not optimal, but I have to work with it, making a page call for the applet.

My problem is, when I do this, I receive an error message:

"Upgrade exception: Error calling method on NPObject!

[plugin exception: java.lang.reflect.InvocationTargetException]. "

Can anyone decode it? Even many possibilities were better than junk, with whom I came in. The original call in the applet is from a Javascript call:

  document.getElementById ('my_applet'). Passadata ("pass some data", some other data);  

As you can see, I am trying to use the passadata method. Applet works fine on the page itself, it happens when I try to call it, it does nothing except the error.

If I ask the person working on the applet (this is not my part), is it possible to add a constructive error throwing it or do I not even have time to connect to the applet?

indicates that the underlying method in your applet should be an exception to the "border" of the JavaScript reflection Uses, so the exceptions thrown by the Java code are wrapped in this way. (It is possible to separate from the exceptions before you get into your Java code. For example, if you have tried to call a non-existent method.)

The original exception by holding you You can get InvocationTargetException and then call its getTargetException () or getCause () method (both of which do the same thing).


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -