"adrian(a)jboss.org" wrote :
| I was still seeing FileNotFoundException from getChild() when I was testing
| yesterday.
|
Perhaps the same problem as Scott was having?
-
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=131032
Since the only place that FNFE gets thrown is in FileHandler constructor.
| public FileHandler(FileSystemContext context, VirtualFileHandler parent, File file,
URL url) throws IOException
| {
| super(context, parent, url, file.getName());
|
| this.file = file;
| if (file.exists() == false)
| throw new FileNotFoundException("File does not exist: " +
file.getCanonicalPath());
| setVfsUrl(new URL("vfs" + url));
| }
|
And the only usage of this constructor has a check before:
| else if (file.exists())
| {
| handler = new FileHandler(this, parent, file, uri);
| }
|
OK, in theory if you looked at the code few mins before, there were more FNFE usages, but
they were never used.
I now removed them, doing a bit of cleanup.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137379#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...