[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Moving to CR1 releases of the MC projects
alesj
do-not-reply at jboss.com
Tue Mar 18 08:22:39 EDT 2008
"adrian at 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#4137379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137379
More information about the jboss-dev-forums
mailing list