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.
Using the latest qbuild, I edit a struts configuration file. In the file, I have this piece of code: <form-beans> <form-bean name="TestFormA" type="com.someForm"> <form-property name="fielda" type="java.lang.String"/> </form-bean> </form-beans> <form-bean name="TestFormB" type="com.someForm"> <form-property name="fieldb" type="java.lang.String"/> </form-bean> </form-beans> You can see that in the middle, I have an extra closing tags for form-beans. So, when I save, I get a confirmation message saying the file has invalid format, do I want to save. This is fine. I just click save. However, when I right click to Check or Validate xml, I don't see any thing at all. Is this somekind of a bug? Next, I delete the offending line, and click save. I got the error message again. Next, I put an extra empty line (just to touch the file), the click save, the confirm/warning message does not show. So, it shows 1 extra time (very minor).
The fix of issue #65701 solved the problem with the error message that was displayed even when the file is not malformed. The other think is that there is nothing displayed in the output window after Check or Validate action. The action is performed, but there is a problem with output window. The workaround is to invoke the action second time.
This is more general problem valid for all XML like filetypes with the Check and Validate actions. Should be fixed somehow but no time for this now.
Grrr, I spent long hours trying to figure out what can be wrong here and lateron realized that there has already been similar issue #44187 before two yars. Removing already remove and added and remove workaround seems to help. For better understanding of the previous chaotic sentence read the mentioned issue comments. I *hope* this wont break anything else. Somebody from QE, please verify carefully. Thanks. Checking in InputOutputReporter.java; /cvs/xml/core/src/org/netbeans/modules/xml/core/actions/InputOutputReporter.java,v <-- InputOutputReporter.java new revision: 1.21.52.2; previous revision: 1.21.52.1 done
*** Issue 75777 has been marked as a duplicate of this issue. ***
Verified NetBeans5.5Dev 200608090000