redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

securityexception when trying to create a Robot object



 
Post new topic   Reply to topic    Web Design Forums -> JAVA programming forum
View previous topic :: View next topic  
Author Message
Gladis



Joined: 24 May 2006
Posts: 108
Any pointers as to how I gain a certain privilege from an applet? I already have allPermissions, but I am still getting a securityexception when trying to create a Robot object
  Reply with quote


Shirley Kidman



Joined: 21 Jun 2006
Posts: 30
Sign it.
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Shirley Kidman, already did
everything else works fine, just not createRobot
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
with a _real_ cert
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
does that make a difference?
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
applets silently ignore self signed certs
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
or are you just guessing?
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
it is a well known fact, if you bother to sign your applet you ought to know that
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Mupolan, well, I can get read/write/clipboard perms from this selfsigned cert, so I guess it works somewhat
  Reply with quote
Shirley Kidman



Joined: 21 Jun 2006
Posts: 30
Mupolan, I didn't know that well-known fact
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
Gladis, or just switch to webstart since ws supports self signed certs
  Reply with quote


Gladis



Joined: 24 May 2006
Posts: 108
Mupolan, what I am trying to find out here is whether you know for a fact that createRobot needs signing by a real cert, unlike everything else, or if you are just making a blanket statement ... because it sounds _very_ strange to me
  Reply with quote
Shirley Kidman



Joined: 21 Jun 2006
Posts: 30
Gladis, Yes, applets are off-topic, Java Web Start is the way forward.
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Shirley Kidman, can't change it. sorry.
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
Gladis, I have not used Robot myself so I can not say that I am 100% sure. Can you read/write files with your self signed applet?
  Reply with quote
Shirley Kidman



Joined: 21 Jun 2006
Posts: 30
Mupolan, He already said so.
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Mupolan, yes and also the clipboard
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
Gladis, ah, I read that as read/write clipboard...
odd...
appletviewer or web browser?
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Mupolan, works in appletviewer, not in browser
Now I tried clearing and deleting every conceivable cache, in case the permission set granted to the applet was cached somewhere
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
Gladis, file access works in appletviewer and in browser?
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
No difference
Mupolan, yes.
everything has been working peachy with my self signed applet on numerous platforms, reading/writing files and clipboard
  Reply with quote


Mupolan



Joined: 30 May 2006
Posts: 101
Odd, then sun has changed something in the later versions of java..
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Until I introduced the Robot class
I just realized something even weirder
It works as long as it doesn't get called from javascript
  Reply with quote
Mupolan



Joined: 30 May 2006
Posts: 101
Gladis, windows or X?
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Windows
It works as long as the method is invoked by any other means than a method called from javascript
I fooled the mechanism
Now it works
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> JAVA programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group