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'm running the 3.6 release candidate 3 on Mandrake Linux 9.2 using Sun's JDK 1.4.2_04. On opening a java source file in the editor, I received the exception listed below. The file had already opened before the exception dialog appeared, and I believe it had annotated some "cannot resolve symbols" (I'm pretty sure the wavy red lines had appeared before the dialog box opened). java.lang.IllegalStateException: View access without view lock at org.netbeans.editor.DrawEngineLineView.getModel2ViewRect(DrawEngineLineView.java:281) at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:303) at org.netbeans.editor.DrawEngineLineView.getPreferredSpan(DrawEngineLineView.java:252) at org.netbeans.editor.DrawEngineLineView.minorAxisUpdateLayout(DrawEngineLineView.java:549) at org.netbeans.editor.DrawEngineLineView.updateLayout(DrawEngineLineView.java:504) at org.netbeans.lib.editor.view.GapBoxViewChildren.childrenUpdateLayout(GapBoxViewChildren.java:872) at org.netbeans.lib.editor.view.GapBoxViewChildren.childrenUpdateLayout(GapBoxViewChildren.java:877) at org.netbeans.lib.editor.view.GapBoxView.updateLayout(GapBoxView.java:728) at org.netbeans.lib.editor.view.GapDocumentView.setSize(GapDocumentView.java:181) at org.netbeans.editor.DrawEngineDocView.setSize(DrawEngineDocView.java:318) at org.netbeans.lib.editor.view.GapBoxView.reallocate(GapBoxView.java:1999) at org.netbeans.lib.editor.view.GapDocumentView.reallocate(GapDocumentView.java:131) at org.netbeans.lib.editor.view.GapBoxView.getChildAllocation(GapBoxView.java:1364) at javax.swing.text.View.getViewIndex(View.java:1067) at javax.swing.text.View.getToolTipText(View.java:1041) at javax.swing.text.View.getToolTipText(View.java:1047) at javax.swing.text.View.getToolTipText(View.java:1047) at javax.swing.plaf.basic.BasicTextUI.getToolTipText(BasicTextUI.java:1138) at org.netbeans.modules.editor.NbToolTip.buildTip(NbToolTip.java:162) at org.netbeans.modules.editor.NbToolTip.buildToolTip(NbToolTip.java:64) at org.netbeans.modules.editor.NbEditorKit$NbBuildToolTipAction.actionPerformed(NbEditorKit.java:609) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:169) at org.netbeans.editor.ext.ToolTipSupport.updateToolTip(ToolTipSupport.java:382) at org.netbeans.editor.ext.ToolTipSupport.setToolTipVisible(ToolTipSupport.java:410) at org.netbeans.editor.ext.ToolTipSupport.actionPerformed(ToolTipSupport.java:654) at org.netbeans.editor.WeakTimerListener.actionPerformed(WeakTimerListener.java:57) at javax.swing.Timer.fireActionPerformed(Timer.java:271) [catch] at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
There is an appropriate locking missing when going through View.getToolTipText(). We should address this generally in the LockView. I'll fix it into promoD.
This bug is affecting Rave. Bumping priority to P2.
*** Issue 42949 has been marked as a duplicate of this issue. ***
I was not able to reproduce the original problem but I think that the fix should eliminate it. If the problem would reappear please reopen the issue. Fixed in trunk: Checking in libsrc/org/netbeans/editor/view/spi/LockView.java; /cvs/editor/libsrc/org/netbeans/editor/view/spi/LockView.java,v <-- LockView.java new revision: 1.5; previous revision: 1.4
Integrated into custom_folds branch: Checking in libsrc/org/netbeans/editor/view/spi/LockView.java; /cvs/editor/libsrc/org/netbeans/editor/view/spi/LockView.java,v <-- LockView.java new revision: 1.4.2.1; previous revision: 1.4
*** Issue 43473 has been marked as a duplicate of this issue. ***
*** Issue 42679 has been marked as a duplicate of this issue. ***
*** Issue 55094 has been marked as a duplicate of this issue. ***
Verified.