473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Liveconnect - init problem

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(Live ConnectPrivilegedActions.java:37)

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

* Under IE and Konqueror, it seems OK

Thank you for your answers

Jun 21 '06 #1
1 2107


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/
Jun 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Guillaume CABANAC | last post by:
Hi folks, Is liveconnect still available in Firefox as it is in NS Navigator ? I would like to call Java code from JavaScript in Firefox... Do you think it is possible with liveconnect ? Does...
1
by: admin | last post by:
Hi all, I wrote a small text editor (using a JTextPane) in order to ease the use of a CMS, in a more WYSIWYG way. Basically, you can see directly the effect of setting the background color, the...
8
by: DKM | last post by:
Here are the source code files to a Java applet that utilizes LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some...
6
by: j_macaroni | last post by:
I am trying to communicate back to my web page using LiveConnect. I just installed JDK5 Netbeans and have created a few applets. I have even called the applets from Javascript. However when I use...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.