Ilya Vishnevsky wrote:
Hi. I'm trying to read the crawl_generate sequence file from my Nutch:
SequenceFile.Reader reader = new SequenceFile.Reader (fs, genPath,
conf);
Here is the exception I get when I try to run my code:
java.io.FileNotFoundException:
C:\webdb\aco\segments\20070515133433\crawl_generate (Access is denied)
You are using Windows (obviously). Unless this is a real issue with
permissions (Administrator created this file and you're just a user),
the problem may lie in file locking. Windows imposes this moronic limit
that you can't read a file that is in use by some other process. It's
likely that some other process has opened this file in read-write mode.
Open your Task Manager and start killing java.exe processes. If you
opened this file in an editor, quit the editor. And so on.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com