"Gandhi, Shailey" <shailey.gan...@morganstanley.com> writes:
> Please help me with this error: > > Error: > > > Directory ‘/data/opengrok/Indexes/index/3dframework_11.0.0’ exists and > is a directory, but cannot be listed:list() returned null. > > This comes up every now and then and I am unable to figure out why. I'm not sure why you're seeing this. Since it works sometimes, I assume it's not a problem with file permissions on the directory (but still worth checking out just in case). The specification for java.io.File.list() says that it returns null if "this abstract pathname does not denote a directory, or if an I/O error occurs." So it could be, well, almost anything... Might be worth checking if there's a file descriptor leak too (using pfiles, lsof, or similar tools), which could prevent the directory from being read. That would explain why it's only seen sometimes. When we eventually move to Java 7, we should replace calls to java.io.File.list() with calls to java.nio.file.Files.newDirectoryStream(), which will throw an IOException with details about what went wrong. But I think the specific call that generates the message you saw, comes from Lucene, so it's not under OpenGrok's control. -- Knut Anders _______________________________________________ opengrok-discuss mailing list opengrok-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss