else
rchive = new SessionFile(archive);
rchive.lockFile();
+ if (rchive.fileLock==null || rchive.fileLock.rafile==null)
+ throw new IOException("Lock failed for new archive"+archive);
rchive.fileLock.rafile.setLength(0); // empty the archive.
virginArchive = true;
}