Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Applet Error (Read 4435 times)
Freizeitsoldat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: May 10th, 2009
Applet Error
Oct 7th, 2009 at 7:13am
Print Post  
Hello,

iīm trying out the JDiag-Demo Version and i often get Java Errors, so that i can not access (and use) the Applet.

With java jre 1.5. the applet is not loading at all.

When i use jre 1.6. on a german Win XP the applet is loading but:

if i set a shape node like node.setText(blablabla) i can do it. The next order like node.setHyperlink(blablabla) generates an error.

On my laptop with an english XP i can use the applet in my firefox and iexplorer. But i get the same error with opera ( second order is not working).

The Java console tells me, that i have not enough rights to execute node.setHyperlink, but i canīt get it. I have the rights for one order, but not for two??? Itīs funny, but i would like to know how to fix it before i buy the code package.

Thank you for your help in advance,
Alex
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Applet Error
Reply #1 - Oct 7th, 2009 at 10:20am
Print Post  
Hi,

Change setHyperlink to setHyperLink and it should work - note the L character case. Do you mean JRE 1.5 on German XP cannot load the applet but 1.5 on English XP loads it fine?

Stoyan
  
Back to top
 
IP Logged
 
Freizeitsoldat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: May 10th, 2009
Re: Applet Error
Reply #2 - Oct 7th, 2009 at 10:43am
Print Post  
Hello Stoyo,

no in Jre 1.5 it doesnīt work at all. The Hyperlink sugestion is working.

Now i donīt have any failures in 1.6. in Firefox and in the Internet Explorer anymore.

But i still can not open the applet in jre 1.5. Also i can not use Applet objects in Opera because of security reasons as you can see in the code below:

java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException
at java.security.AccessController.doPrivileged(Native Method)
at com.opera.PrivilegedThread.run(LiveConnectPrivilegedActions.java:290)
at java.lang.Thread.run(Unknown Source)

----------------------------------------------------------
I mention that the error occures because of the strict security policy in Opera. Do you have some experience with opera?

Thank you
Alex
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Applet Error
Reply #3 - Oct 7th, 2009 at 10:50am
Print Post  
Hi Alex,

It works fine in my Opera version 9. Are you on Opera 10 now?

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Applet Error
Reply #4 - Oct 7th, 2009 at 10:59am
Print Post  
Also our online demo seems to work on Java 1.5:
http://mindfusion.eu/demos/jdiagram/start.htm

My Java console says Using JRE version 1.5.0_11-b03 Java HotSpot(TM) Client VM when the demo loads and Java 1.6 is disabled from the Java control panel.
  
Back to top
 
IP Logged
 
Freizeitsoldat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: May 10th, 2009
Re: Applet Error
Reply #5 - Oct 7th, 2009 at 11:08am
Print Post  
Hi,

yes i use Opera 10.

I donīt know why itīs not working in 1.5. Itīs really strange.

Alex
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Applet Error
Reply #6 - Oct 7th, 2009 at 11:27am
Print Post  
Hi,

For JRE 1.5, what's the exact version you have - update number and all? I'll try this with Opera 10 in a minute.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Applet Error
Reply #7 - Oct 7th, 2009 at 11:39am
Print Post  
Opera 10 worked for me, freshly installed and with all default settings -


Could you check if this page loads on your system -
http://mindfusion.eu/demos/jdiagram/start.htm
  
Back to top
 
IP Logged
 
Freizeitsoldat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: May 10th, 2009
Re: Applet Error
Reply #8 - Oct 7th, 2009 at 12:43pm
Print Post  
Hi,

in Opera the Applet loads, but if i try to get objects in javascript (like var app = applet.getDiagram(); etc etc.) it fails in Opera. I think itīs because of the security policy of opera. (In firefox, chrome, iexp it works fine).

I think itīs not a JDiagram problem, but an Security issue. If you have some idea how to allow Opera to use diagram.saveToSting(). e.g., please tell me. Otherwise thank you for your help - i will buy the code even if Opera is not working Smiley

Thanks,
Alex


  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Applet Error
Reply #9 - Oct 7th, 2009 at 12:49pm
Print Post  
Opera displays some "click to activate and use this control" prompt. Have you tried accessing the API after this click activation? If it works then, I'll send you a script we used a few years ago when IE required such activation too; it might also work for Opera.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint