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.
I was editing a pom.xml file manually in the editor. It was working fine for a while. Then for some reason I couldn't save my changes anymore. The tab with the file name had bold text indicating modified. Apple key + S did not change this. The menu item "Save" was greyed out which tricked me for a while thinking my changes were in fact saved. Looking at the file in vim revealed my changes I saw in the Netbeans editor were not there. With the file still open I chose "Save As" in the File menu thinking I would capture my changes displayed in the editor to a new file. Instead what happended was that a new file 'pom1.xml' got created with the contents of what was really on disk. ( the unchanged file). So I lost my changes to that point - had to start over. <Speculation> At some point I did get an Exception editing the file which I reviewed and reported, although not sure if the throwing of this exception caused the subsequent problems. After all everything appeared fine in the editor.</Speculation> Sorry I don't have the exact steps to reproduce.
Already fixed by jtulach.
This could be a duplicate of issue 175750: http://hg.netbeans.org/core-main/rev/35e736c73924 However it is up to the XML guys to verify that. *** This bug has been marked as a duplicate of bug 175750 ***