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 3834 - Editor sometimes fails to open a file.
Summary: Editor sometimes fails to open a file.
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P1 major (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-09-14 18:11 UTC by Jesse Glick
Modified: 2007-11-05 13:44 UTC (History)
0 users

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 Jesse Glick 1999-09-14 18:11:38 UTC
Only noticed in build 389. Gives this error:

Exception occurred in request processor:
java.lang.IndexOutOfBoundsException
        at java.io.InputStreamReader.read(InputStreamReader.java:235)
        at com.netbeans.editor.Analyzer.initialRead(Analyzer.java:412)
        at com.netbeans.editor.BaseDocument.read(BaseDocument.java:841)
        at com.netbeans.editor.BaseKit.read(BaseKit.java:353)
        at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:117)
        at com.netbeans.developer.modules.loaders.java.JavaEditor.loadFromStreamToKit(JavaEditor.java:206)

        at org.openide.text.EditorSupport.loadDocument(EditorSupport.java:682)
        at org.openide.text.EditorSupport.access$2(EditorSupport.java:675)
        at org.openide.text.EditorSupport$1.run(EditorSupport.java:260)
        at org.openide.util.Task.run(Task.java:127)
        at org.openide.text.EditorSupport$2.run(EditorSupport.java:273)
        at org.openide.util.Task.run(Task.java:127)
        at org.openide.text.EditorSupport$3.run(EditorSupport.java:287)
Exception occurred during event dispatching:
java.lang.Error
        at com.netbeans.editor.ExtUI.updateLineNumberWidth(ExtUI.java:801)
        at com.netbeans.editor.ExtUI.updateVirtualHeight(ExtUI.java:776)
        at com.netbeans.editor.BaseTextUI$RootView.updateMainHeight(BaseTextUI.java:812)
        at com.netbeans.editor.BaseTextUI.updateHeight(BaseTextUI.java:127)
        at com.netbeans.editor.ExtUI.initFonts(ExtUI.java:546)
        at com.netbeans.editor.ExtUI.paint(ExtUI.java:1033)
        at com.netbeans.editor.BaseTextUI.paint(BaseTextUI.java:179)
        at javax.swing.plaf.ComponentUI.update(ComponentUI.java:43)
        at javax.swing.JComponent.paintComponent(JComponent.java:329)
  [etc.............]

Editor pane gets no text, partially all-white and partially all-black; sometimes causes IDE to hang with 100% CPU, must be killed. Attached source file seems to trigger it? JDK 1.2.2/NT.
Comment 1 Quality Engineering 2003-07-02 15:41:45 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.