complaing about this line :
fh = new FileHandler(table.getProperty("dbsLogFile"));
fh is defined as follow in the class:
private static FileHandler fh;
java.io.IOException: Couldn't get lock for "dbslogfile.txt"
java.io.IOException: Couldn't get lock for "dbslogfile.txt"
at java.util.logging.FileHandler.openFiles(FileHandler.java:361)
at java.util.logging.FileHandler.<init>(FileHandler.java:232)
at DBS.DBS.<init>(DBS.java:107)
at DBS.RunDBS.main(RunDBS.java:20)
thanks,
Frank
When the log file is created, a separet lock file called (in your
case) "dbslogfile.txt.lck" is also created. The Logger uses this as a
mutual exclusion mechanism for access to the actual log file. It
doesn't seem to have been able to create it (it would have to create
the lock file before the log file, of course).
A number of reasons spring to mind, notably do you have permission to
write to the directory it will be created in? or the machine it will
be created on? Both at the Java security level and the OS level?
Pete Barrett