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

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

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,580
    Juan T. Llibre
    Feb 24, 2006
  2. Ike
    Replies:
    5
    Views:
    558
    Andrew Thompson
    Nov 11, 2003
  3. Alan Pocklington

    LiveConnect writing to wrong field.

    Alan Pocklington, Apr 19, 2004, in forum: Java
    Replies:
    0
    Views:
    352
    Alan Pocklington
    Apr 19, 2004
  4. DKM

    DOM API or LiveConnect?

    DKM, Jun 4, 2005, in forum: Java
    Replies:
    4
    Views:
    775
  5. Replies:
    1
    Views:
    851
    Jules
    Aug 18, 2005
  6. Jess
    Replies:
    4
    Views:
    633
  7. news.aon.at
    Replies:
    11
    Views:
    866
    Ian Collins
    Jan 29, 2011
  8. Replies:
    0
    Views:
    203
Loading...