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.
200206240100, JDK1.4fcs, MDI. Consider you have some .settings file on some of your filesystems. But this file is NOT IDE settings file (XML), it is just another's application setting (for example, DT settings). The IDE is not able to cope with this situation, it just throws an exception (SAXParseException). This situation may occur on NetBeans platform very easily, as the home directory is mounted by default, and the DT's .settings files are there. The exception thrown by empty .settings file is attached.
Created attachment 6390 [details] The exception thrown for empty .settings file.
I remember something similiar happened in the past: the IDE initiate an object even for .settings file in user data directories. We should completely ignore *.settings outside of SystemFileSystem.
*** Issue 25089 has been marked as a duplicate of this issue. ***
embarassing defect, more people are running into this problem => raised prio to P2
It is NOT possible to completely ignore *.settings outside of SystemFileSystem. E.g. new projects use own filesystem to persit settings. Module writers can register own loader handling .settings file located on other filesystems than SFS and the loader takes precedence. To check files to be well-formed or valid xml document I see as a performance issue. So, I would propose to introduce FileSystemCapability.SYSTEM in order to distinguish filesystems that can contain just IDE .settings files. The settings loader would recognize files coming just from that filesystems.
FSCap.SYSTEM is an interesting idea. Could be used also for issue #22628 and other things. Seems too late in the 3.4 cycle to be introducing a new API like that however. Would not recommend trying to solve this for 3.4. The parse error should at least be marked INFORMATIONAL so it does not greatly disturb average users.
Jesse, I would refine a bit your suggestion for 3.4 release. Exceptions related to file objects placed in non-system filesystems could be ignored at all. All others can be notified with the default severity as so far. To FSCap.SYSTEM, in my private talk to Jarda, he strongly refused using FSCap because it can be deprecated soon. But he did not suggest other alternative.
Agreed on both points.
fixed in org/netbeans/core/xml/FileEntityResolver.java,v 1.17
No exceptions thrown on 200210160100. Verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.