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 5712 - "The handle is invalid" when opening a file, sometimes.
Summary: "The handle is invalid" when opening a file, sometimes.
Status: CLOSED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-02-11 01:39 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 2000-02-11 01:39:03 UTC
[Mila]
 Jardo, don`t you know what could be wrong? I`ve searched the 1.2 VM sources that we have for the message from the exception but I couldn`t find it. It looks like it comes from OS. The readBytes() in
jdk1.2-src/src/share/native/java/io/FileInputStream.c calls another readBytes() probably in io_util.c but I have still no idea why this error occurs.

[please reassign this to someone else if you know who should fix it]

Sometimes when opening a file in the Editor, I get:

java.io.IOException: The handle is invalid
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:183)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:223)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:280)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)

        at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
        at com.netbeans.developer.modules.loaders.properties.PropertiesEditorSupport$NewLineInputStream.<init>(PropertiesEditorSupport.java:712)
        at com.netbeans.developer.modules.loaders.properties.PropertiesEditorSupport.loadFromStreamToKit(PropertiesEditorSupport.java:325)
        at org.openide.text.EditorSupport.loadDocument(EditorSupport.java:674)
        at org.openide.text.EditorSupport.access$4(EditorSupport.java:667)
        at org.openide.text.EditorSupport$3.run(EditorSupport.java:303)
[snip]

Note that this occurs at least on Java sources and property files both, observed in 482 and other builds. After the exception is thrown, the Editor window is empty. Closing the window and reopening th
e file is fine, the file comes up normally and all is well. This is not really reproducible, it happens maybe every 10th or 20th file I try to open, sometimes.
Comment 1 Marek Grummich 2000-07-25 09:07:59 UTC
Priority is changed to P4 (normal).
Comment 2 Jan Lahoda 2001-01-24 15:35:59 UTC
Only changed version to Development.
Comment 3 Jaroslav Tulach 2001-02-02 09:28:59 UTC
Does the problem occurs only on JDK1.2? In such case I would suggest to close
it...
Comment 4 Quality Engineering 2003-06-30 18:02:23 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-06-30 18:10:35 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.