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.

Bug 41903 - IllegalStateException on opening file
Summary: IllegalStateException on opening file
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
: 42679 42949 43473 55094 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-11 11:12 UTC by ats37
Modified: 2007-11-05 13:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ats37 2004-04-11 11:12:35 UTC
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)
Comment 1 Miloslav Metelka 2004-04-14 13:55:44 UTC
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.
Comment 2 Jan Chalupa 2004-04-28 17:25:38 UTC
This bug is affecting Rave. Bumping priority to P2.
Comment 3 Martin Roskanin 2004-05-10 09:05:41 UTC
*** Issue 42949 has been marked as a duplicate of this issue. ***
Comment 4 Miloslav Metelka 2004-05-17 16:47:14 UTC
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
Comment 5 Miloslav Metelka 2004-05-17 16:50:19 UTC
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
Comment 6 Miloslav Metelka 2004-05-24 10:33:24 UTC
*** Issue 43473 has been marked as a duplicate of this issue. ***
Comment 7 Martin Roskanin 2004-05-24 13:03:59 UTC
*** Issue 42679 has been marked as a duplicate of this issue. ***
Comment 8 Martin Roskanin 2005-02-23 13:28:01 UTC
*** Issue 55094 has been marked as a duplicate of this issue. ***
Comment 9 Roman Strobl 2005-07-14 16:42:47 UTC
Verified.