Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > java and file locks

java and file locks
Thread Tools
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Nov 29, 2003, 12:12 AM
 
I get the following

com.levelonelabs.aimbot.AIMBot setupLogger
SEVERE: ERROR: unable to attach FileHandler to logger!
java.io.IOException: Couldn't get lock for /logs/<aim.username>_aimbot.log.xml
at java.util.logging.FileHandler.openFiles(FileHandle r.java:361)
at java.util.logging.FileHandler.<init>(FileHandler.j ava:232)
at com.levelonelabs.aimbot.AIMBot.setupLogger(AIMBot. java:222)
at com.levelonelabs.aimbot.AIMBot.init(AIMBot.java:17 2)
at com.levelonelabs.aimbot.AIMBot.main(AIMBot.java:13 3)
When running jaimbot:
http://jaimbot.sourceforge.net/

I've seen this with other java apps as well.

Does anyone know what the issue could be?

Open source is great, but java stuff seems to never run out of the box perfectly for me... I would have thought the opposite.

Strange no?
(Last edited by macvillage.net; Nov 29, 2003 at 12:24 AM. )
I always use protection when fscking my Mac... Do you?
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Nov 29, 2003, 08:49 AM
 
Your problem is probably here:

java.io.IOException: Couldn't get lock for /logs/<aim.username>_aimbot.log.xml


I suspect it's trying to write the logs to a place /logs/ off the root of your drive, and (a) you don't have permission to write there and (2) the logs folder doesn't exist there.

Look for a configuration option to set where the logs go.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Nov 29, 2003, 03:24 PM
 
It's running as root.

Why would root not be able to write?
I always use protection when fscking my Mac... Do you?
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2