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 see this fairly regularly (one time out of four or five). Create a new JSP. Copy jstl.jar and standard.jar into WEB-INF. Use code completion to add a taglib directive, e.g <%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%> I use code completion for taglib, prefix, uri and value of uri. Save after adding the end of the directive. Click in editor to move the cursor somewhere else - > text is lost. See included ide.log for JDK details (1.4.1_02). The exception comes from the editor APIs, and doesn't mention the JSP editor, but I haven't been able to reproduce it for anything except JSPs so I'll file it here first. The workaround for this is to exit the editor tab for the file and re-open it.
Created attachment 10627 [details] ide.log
Created attachment 10630 [details] exception form editor
Created attachment 10631 [details] hopefully reproducible case
I've seen the problem in Java too but it is much more visible in JSP. Probably adding taglib directive as Ana described is one of good tricks. Attached is a web module where I can reproduce the problem. Unzip it and mount, open test.jsp and click somewhere into 3rd line. Moving cursor causes also other lines to disappear. The line disappears on my IDE: Product Version = NetBeans IDE Dev (Build 030609) Operating System = Linux version 2.4.18-27.8.0 running on i386 Java; VM; Vendor = 1.4.2-beta; Java HotSpot(TM) Client VM 1.4.2-beta-b19; Sun Microsystems Inc. Java Home = /usr/local/j2sdk1.4.2/jre System Locale; Encod. = en_US; ANSI_X3.4-1968
It is similar to 23569. If you want you can increase its priority. *** This issue has been marked as a duplicate of 23569 ***