Alice Community  

Go Back   Alice Community > Alice 2 > Bugs and Troubleshooting

Reply
 
Thread Tools Display Modes
Unknown error: java.io.FileNotFoundException
Old
Maryb
Guest
 
Status:
Posts: n/a
Default Unknown error: java.io.FileNotFoundException - 01-07-2011, 11:59 AM

I'm installing Alice 2.2 on a network for use for my students second semester. I resolved one issue with the workaround on the Alice site, but I am getting the following error when launching it while logged on as a student (but not as administrator).


Alice version: 2.2 09/10/2010
java.io.FileNotFoundException: C:\Program Files\Alice 2.2\Required\loggingData\1294418858424.txt (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at edu.cmu.cs.stage3.alice.authoringtool.util.ChangeL ogger.worldLoaded(ChangeLogger.java:79) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.fireWorldLoaded(AuthoringTool.java:1157) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.loadWorld(AuthoringTool.java:2032) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.loadWorld(AuthoringTool.java:1912) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.worldInit(AuthoringTool.java:905) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.<init>(AuthoringTool.java:411) at edu.cmu.cs.stage3.alice.authoringtool.JAlice.main( JAlice.java:141) java.io.FileNotFoundException: C:\Program Files\Alice 2.2\Required\loggingData\1294418859518.txt (Access is denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at edu.cmu.cs.stage3.alice.authoringtool.util.ChangeL ogger.worldLoaded(ChangeLogger.java:79) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.fireWorldLoaded(AuthoringTool.java:1157) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.loadWorld(AuthoringTool.java:2032) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.loadWorld(AuthoringTool.java:1912) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.worldInit(AuthoringTool.java:905) at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.<init>(AuthoringTool.java:431) at edu.cmu.cs.stage3.alice.authoringtool.JAlice.main( JAlice.java:141)


I don't see in the program files the txt file referenced...maybe that's what the error is saying. I've looked at this error as it has occurred several times and the txt file referenced is always a different number.

I tried to look at the FAQ but I got a page saying the link was broken. thanks for any help anyone could pass along! We're a small private school and I have some offsite IT help, but they are unfamiliar with Alice.
Maryb
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 01-07-2011, 05:31 PM

Funny you should mention trying to get Alice to work while logged in as a student, because I suggested that to you on this thread.
   
Reply With Quote
Old
Maryb
Guest
 
Status:
Posts: n/a
Default 01-10-2011, 11:05 AM

Thanks. I won't be able to copy the Alice files while logged in as a student due to permissions.

When I followed the instructions on installing on a networked machine, I edited the 'version' text file in the 'etc' folder to include 'H:\' which has taken care of the problem that wouldn't allow the gallery to load for students. But I'm still getting this java error when I launch and close while logged on as a student. I don't really know what to attempt to change. the text files in the folders mentioned in the error detail either don't exist, are hidden or didn't install. I could tell my students to disregard the error but I don't know what the implications of the error are.
   
Reply With Quote
Gallery and JavaScript errors with student accounts
Old
paintflake
Junior Member
 
Status: Offline
Posts: 1
Join Date: May 2011
Location: WI
Default Gallery and JavaScript errors with student accounts - 05-11-2011, 11:00 AM

Ditto.
I have the exact same issues on our network.
I am leery about creating a user account with higher privileges to override the gallery and JavaScript errors due to a crippling incident that some tech-savoy students with malicious intent took advantage of.
As for remapping to the H drive, did you have to specify each student path, or generically to the drive?
   
Reply With Quote
new alice.jar file to fix logging problem
Old
aikmin
Senior Member
 
aikmin's Avatar
 
Status: Offline
Posts: 85
Join Date: Mar 2008
Default new alice.jar file to fix logging problem - 05-23-2011, 09:15 AM

I have a fix for you, but i am not able to attach the required file. PM me your email, and i will e-mail you the file.
   
Reply With Quote
same problem
Old
rjolliff
Junior Member
 
Status: Offline
Posts: 1
Join Date: Jun 2011
Location: Lincoln UK
Default same problem - 06-22-2011, 02:51 AM

I have the same problem

alice wants to write a log file to the network directory
which it cant as its read only

can you send me the fix file
   
Reply With Quote
Old
Javik
Junior Member
 
Status: Offline
Posts: 3
Join Date: Jul 2011
Default 07-15-2011, 11:44 PM

Quote:
Originally Posted by Maryb View Post
I'm installing Alice 2.2 on a network for use for my students second semester. I resolved one issue with the workaround on the Alice site, but I am getting the following error when launching it while logged on as a student (but not as administrator).

[COLOR="Red"]
Alice version: 2.2 09/10/2010
java.io.FileNotFoundException: C:\Program Files\Alice 2.2\Required\loggingData\1294418858424.txt (Access is denied) at

The basic problem here is that the Alice programmers do not understand how Windows user profiles and filesystem security is supposed to work.

This problem is a "Bug" and needs to be fixed by having the programmers correct where they store log files.

============

When a "User" account is logged on (non-Administrator) the entire Programs folder path is read-only, as is the entire Windows folder path.

The only locations writable on the local hard drive by a "User" account is inside their user profile.

Programs that need to store data for whatever reason that roams with the account from one computer to the next, are supposed to create a folder for themselves in the user's profile under Application Data. If they need to just temporarily store data for their application, then it goes in the user's profile in "Local Settings"

These folder paths change for each user that logs on, but the current state of the paths can always be found in the registry at:

Code:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
   
Reply With Quote
Old
Javik
Junior Member
 
Status: Offline
Posts: 3
Join Date: Jul 2011
Default 07-15-2011, 11:52 PM

The odd question is why the newfangled "Windows Vista/7 User Access Control" and "Windows File and Registry Virtualization" is not automatically fixing this.

This is exactly the sort of problem that UAC / File Virtualization is supposed to fix, for old misbehaving and poorly written programs that expect they can just write data to any location without regard to system security.

I do not see a way to tell UAC to explicitly virtualize the LoggingData folder, so that all Alice writes to there are redirected to a temporary location that is discarded at logoff.

Last edited by Javik; 07-15-2011 at 11:59 PM.
   
Reply With Quote
Old
Javik
Junior Member
 
Status: Offline
Posts: 3
Join Date: Jul 2011
Default 07-16-2011, 08:45 PM

I have a partial fix for this, which is to say I have a ridiculous hack, but it is better than making the LoggingData folder writable by anyone on every computer.

1. Create a network share on a Windows file server somewhere, call it something like:
\\server\share\fixforAlice

2. For the folder "FixforAlice", go to Properties -> Security -> Advanced -> Change Permissions ->
Add "Everyone", applying to "This folder, subfolder, and files"
NO - Full Control
NO - Traverse/Execute
Yes - List/Read
Yes - Read Attributes
Yes - Read Extended Attributes
Yes - Create files / write data
NO - Create folders / append data
Yes - Write Attributes
Yes - Write Extended Attributes
NO - Delete subfolders and files
NO - Delete
Yes - Read permissions
NO - Change permissions
NO - Take ownership

This allows the program to write log files but users can't run programs from here or delete anything they put here.

3. Assuming C:\Program Files

open Command prompt, run as Administrator (if UAC is active)
cd C:\Program Files\Alice ....
cd Required
rd LoggingData
mklink /D LoggingData "\\server\share\fixforAlice"

========================

Now when any program tries to access
  • "C:\Program Files\Alice 2.2b\Required\Logging Data"
It is instead redirected to:
  • "\\server\share\fixforAlice"
And the permissions limit what students can do with that share, and prevent deletion of files if any students try to put their own files in there.

The downside is that the logs keep on accumulating but fortunately they are only a few kilobytes each.

If you want to go further, you can apply a directory quota on the share so that it cannot store more than a few megabytes. Looking at the log file sizes, setting the share's maximum size to 1-2 megs should get you through the year.
   
Reply With Quote
Old
Mortgage FL
Member
 
Status: Offline
Posts: 20
Join Date: Aug 2011
Default 08-24-2011, 12:28 AM

Seems to be a good fix. I like to check this-out.


http://allaboutweightloss.org/weight-loss-diet/no-white-diet

Last edited by Mortgage FL; 09-01-2011 at 10:54 PM.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.