Liveconnect - init problem

Discussion in 'Javascript' started by Alexandre Lahure, Jun 21, 2006.

  1. 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
    Alexandre Lahure, Jun 21, 2006
    #1
    1. Advertising

  2. 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.



    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Jun 21, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony Cheng
    Replies:
    1
    Views:
    8,187
    Juan T. Llibre
    Feb 24, 2006
  2. Replies:
    1
    Views:
    650
    Jules
    Aug 18, 2005
  3. Jess
    Replies:
    4
    Views:
    432
  4. news.aon.at
    Replies:
    11
    Views:
    634
    Ian Collins
    Jan 29, 2011
  5. Replies:
    0
    Views:
    117
Loading...

Share This Page