This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 220812 - CatalogModelException while trying to call getModelSource
Summary: CatalogModelException while trying to call getModelSource
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Retriever (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-25 07:20 UTC by brasseld
Modified: 2012-10-25 07:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brasseld 2012-10-25 07:20:46 UTC
If I try to call getModelSource() using a location URI which point to an unexistant file, I get a CatalogModelException which wrap a FileNotFoundException.

But later, I re-call getModelSource() with the same location URI and this time, the underground file exists in the filesystem because I've added / copied it... and I always get a CatalogModelException.

This behaviour is due to the failedURIs map which was added since Netbeans 7.1.

Is there any way to clean this map properly ?
Comment 1 Svata Dedic 2012-10-25 07:31:54 UTC
Not at this moment; the information about the failed URI will last until the IDE restart. I would like to code a proper resource management in the future, so that the user could be able to clear the 'failed' flag manually + IDE could watch/update for the local resources - but it means more or less overhaul of the whole XML Retriever + Catalog infrastructure.