Re: uploading a file onto Roboka Competition Website

Olivier Michel <[email protected]> Tue, 22 Mar 2005 18:04:46 +0100
Newsgroups gmane.comp.cybernetics.webot.contest
Organization Cyberbotics Ltd.
Message-ID <[email protected]>
Dear Sara,

As I explained in a message I just posted to the webots-contest list, it 
is no longer possible to write file with names different from "log.txt" 
and "memory.dat". This is to allow me to have a working "last updated" 
column in the hall of fame and also to make it cleaner for all 
competitors to store their debub information in "log.txt" which in turn 
is compressed into log.zip, which you can download from your files 
management web page. Moreover your robot can save its current state (or 
whatever) in a file called "memory.dat" which is preserved over 
different runs and can read/written by your controller program.

Hummm... It seems you are not explicitely creating this "DebugLog.txt" 
file, right ? So, it is probably coming from MotionTool: FileParse.java, 
line 97. I would sugguest you that you modify MotionTool to rename 
"DebugLog.txt" to "log.txt" and that should fix the problem.

-Olivier

Sara Mitri wrote:

>Hey, I'm sorry to be bothering you again, but I just can't get this to work and
>it's driving me crazy! I get the following run-time error:
>
>java.lang.reflect.InvocationTargetException
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>	at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>	at java.lang.reflect.Method.invoke(Method.java:324)
>	at com.cyberbotics.webots.ControllerLauncher.main(ControllerLauncher.java:104)
>Caused by: java.security.AccessControlException: access denied
>(java.io.FilePermission DebugLog.txt write)
>	at
>java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
>	at java.security.AccessController.checkPermission(AccessController.java:401)
>	at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
>	at java.lang.SecurityManager.checkWrite(SecurityManager.java:954)
>	at java.io.FileOutputStream.<init>(FileOutputStream.java:169)
>	at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>	at java.io.FileWriter.<init>(FileWriter.java:61)
>	at MotionTool.File.FileParser.writeFile(FileParser.java:901)
>	at MotionTool.File.FileParser.<init>(FileParser.java:97)
>	at Smashy.main(Smashy.java:100)
>	... 5 more
>
>Why does it not have access to write? Why is it trying to write to DebugLog.txt?
>Line 100 in Smashy.java: FileParser parser1 = new FileParser("getup.xml", true,
>true);
>This was all working perfectly before.
>
>Thanks and sorry for bothering you again!
>Sara
>
>
>Quoting Olivier Michel <[email protected]>:
>
>  
>
>>Hi,
>>
>>The file is actually uploaded, but I think it is uncompressed
>>automatically...
>>I will disable the automatic uncompression of jar files, as Webots is
>>now able to handle those jar files in the local controller directory...
>>Could you retry to upload a jar file and let me know whether it was
>>decompressed or not.
>>
>>Thanks,
>>
>>-Olivier
>>
>>Sara Mitri wrote:
>>
>>    
>>
>>>Dear webmaster,
>>>
>>>I have been trying to upload a file, specifically the MotionTool,
>>>      
>>>
>>MotionTool.jar
>>    
>>
>>>onto my account because I am using it for the judo robot. When I try to
>>>      
>>>
>>upload
>>    
>>
>>>it, it declares that the upload was successful. However, the file is not
>>>included in the list of files and when I run the robot a run-time error
>>>      
>>>
>>occurs
>>    
>>
>>>because it cannot find the file.
>>>Help!
>>>
>>>Sara Mitri
>>>
>>>
>>>
>>>      
>>>
>
>
>
>  
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/TzSHvD/SOnJAA/79vVAA/pU_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/webots-contest/

<*> 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/