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.
Start the IDE w/ console window. Create new Web application (JavaEE5) Create new Servlet In the NewServlet.java edit window, go to just inside class declaration, e.g. public class NewServlet extends HttpServlet { // go to here and start typing "@Res" and use code completion to complete the annotation to @Resource (e.g. type "@Res<ctrl-space><select @Resource from list and hit enter>") At this point, the attached long string of exceptions was sent to the console window.
Created attachment 29963 [details] stack trace
Why do you think this is P2 ? It does not impact users and won't be visible in FCS as all of the exceptions are INFORMATIONAL.
Does the exceptions harm you Petre? Isn't the model then properly updated? If yes, please upgrade priority. As Jirka pointed out the exceptions are only informational. I see many of these in many situations working with EJB, WP, WS and CAR... IMHO they needs to be fixed or suppressed in MDR code. I am CCing Daniel Prusa and Honza Becicka who are responsible for MDR maintaining and kindly asking for their opinions to why the exc. occures and whether they can be fixed.
Is it reproducible or just random?
1) It is reproducible, somewhere between being the first action on a freshly opened file and everytime that sequence is typed in a scenario where the field it applies to has not been entered yet. 2) It does not seem to cause any harm, so P3 is fine. However, whether marked informational or not, if code is throwing RuntimeException or IllegalStateException and feels it's unexpected enough to print it out, that suggests to me there is a programmer bug there somewhere and a trace this long from just one action easily obscures real problems even when itself is not necessarily one, or not that important.
Fixed in trunk and release55 Checking in AnnotationImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationImpl.java,v <-- AnnotationImpl.java new revision: 1.31; previous revision: 1.30 done Checking in AnnotationImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationImpl.java,v <-- AnnotationImpl.java new revision: 1.19.4.5.2.2; previous revision: 1.19.4.5.2.1 done
*** Issue 73936 has been marked as a duplicate of this issue. ***
Reorganization of java component