Liveconnect - init problem

A

Alexandre Lahure

Hi all,

The facts : a rich text editing applet, a HTML/Javascript toolbar and
Liveconnect to make them communicate alltogether.
- Java to JS communication (for updating the state of the toolbar -
text align, style, color) is OK
- JS to Java communication (for changing text align, style, color)
doesn't work as expected :

* Under Firefox, the first call of a Java method is DAMN SLOW (near 20
minutes !). The following calls are OK (1 to 2 seconds). Here is the
output of the Java console (the following message is displayed more
than a thousand times) :

liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = file://

* Here is the output of the Java console under Opera :

com.opera.OriginNotAllowedException: LiveConnect origin check failed
for JavaScript trying to access Java object,
caller=file://localhost/home/user/RichTextEditor.html,
callee=file:/home/user/RichTextEditor.jar
at
com.opera.LiveConnectPrivilegedActions.originCheck(LiveConnectPrivilegedActions.java:99)

at
com.opera.LiveConnectPrivilegedActions.invoke(LiveConnectPrivilegedActions.java:37)

at com.opera.InvocationThread.run(MethodResolver.java:379)

* Under IE and Konqueror, it seems OK

Thank you for your answers
 
M

Martin Honnen

Alexandre Lahure wrote:

* Under Firefox, the first call of a Java method is DAMN SLOW (near 20
minutes !).

Starting up the Java VM is damn slow (but certainly takes rather 20
seconds maybe, not 20 minutes). Although if you have an applet on the
page then it should already have started the Java VM.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top