Re: fihier log
Olivier Michel <[email protected]>
| Newsgroups | gmane.comp.cybernetics.webot.contest |
|---|---|
| Organization | Cyberbotics Ltd. |
| Message-ID | <[email protected]> |
Yann-Aël LE BORGNE wrote:
> ok thanks Olivier. Sorry not to have waited a little bit I was being
> impatient :-)
> Actually i've changed quite a few things on my controller and now,
> despite it works on my computer, it doesn't work on the server. I
> wonder if there wouldn't be authorization problems that would may
> cause my program to crash.
> To check that out, can you please confirm this way of doing :
> * I redirect the error and output stream to the log file (by using
> System.setErr and Sytem.setOut)
shouldn't be a problem
> * I uses three threads. A main one, not marked as daemon, extending
> the controller class, that launches two others, marked as
> daemon, dealing with motors and sensors respectively. Anything wrong
> with that (generally speaking) ?
might be a problem... I am not sure daemon threads may cause some
security issues. I am running the contest controllers with the following
java.policy security file (see below). Please let me know if you think
that adding extra permissions could fix your problem.
-Olivier
// Standard extensions get all permissions by default
grant codeBase "file:${java.home}/*" {
permission java.security.AllPermission;
};
// default permissions granted to all domains
grant {
permission java.lang.RuntimePermission "stopThread";
permission java.net.SocketPermission "localhost:1024-","listen";
permission java.util.PropertyPermission "*","read,write";
permission java.io.SerializablePermission "enableSubclassImplementation";
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.RuntimePermission "XMLSerializationAccess";
permission java.lang.RuntimePermission "accessClassInPackage.sun.*";
permission java.lang.RuntimePermission "reflectionFactoryAccess";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
//permission java.io.FilePermission "<<ALL FILES>>", "read";
permission java.io.FilePermission
"/opt/IBMJava2-13/jre/lib/images/java-logo.gif","read";
permission java.io.FilePermission
"${WebotsHome}/controllers/${WebotsController}/-","read,write,delete";
permission java.io.FilePermission
"/var/www/cgi-bin/contest/data/${WebotsController}/-","read,write,delete";
};
grant {
permission java.lang.RuntimePermission "loadLibrary.JavaController";
};
grant {
permission java.util.PropertyPermission "user.dir","read";
};
grant {
permission java.awt.AWTPermission "accessEventQueue";
};
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/pU_rlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/