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 248489 - IllegalStateException: Output file has been disposed!
Summary: IllegalStateException: Output file has been disposed!
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.0
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Havlin
: 250405 (view as bug list)
Depends on:
Reported: 2014-11-07 14:18 UTC by terje7601
Modified: 2015-02-13 11:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213261

stacktrace (2.81 KB, text/plain)
2014-11-07 14:18 UTC, terje7601

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2014-11-07 14:18:57 UTC
This bug was originally marked as duplicate of bug 186968, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
terje7601: I guess it occurred when starting Tomcat (which failed btw, because Tomcat failed to stop before)

java.lang.IllegalStateException: Output file has been disposed!
   at org.netbeans.core.output2.OutWriter.getStorage(
   at org.netbeans.core.output2.OutWriter$LinesImpl.getStorage(
   at org.netbeans.core.output2.AbstractLines.getByteSize(
   at org.netbeans.core.output2.AbstractLines.getCharCount(
   at org.netbeans.core.output2.OutputDocument.getLength(
   at javax.swing.text.DefaultCaret.handleSetDot(
Comment 1 terje7601 2014-11-07 14:18:59 UTC
Created attachment 150350 [details]
Comment 2 Jaroslav Havlin 2014-11-14 10:57:27 UTC
I'm sorry, I cannot reproduce this bug.

Did you try to close Output Window (or some output tab), or was it closed automatically?

Thank you for reporting.
Comment 3 terje7601 2014-11-14 16:29:07 UTC
(In reply to Jaroslav Havlin from comment #2)
> I'm sorry, I cannot reproduce this bug.
> Did you try to close Output Window (or some output tab), or was it closed
> automatically?
> Thank you for reporting.

To be honest, I can't remember what I did exactly. I was messing around with Tomcat & suddenly this error appeared. I probably did "Close all output tabs" right before starting Tomcat though. And I remember deleting all Tomcat log files outside of NetBeans (i.e. using Windows Explorer) at some point, so maybe NetBeans got confused that it suddenly couldn't find those files anymore.

Anyway, none of this isn't very helpful, I guess. I will try to reproduce it next week at work. But I haven't had this error before & haven't had it since, so it's a very particular bug.
Comment 4 terje7601 2014-11-17 15:37:14 UTC
I've been trying to reproduce this, but failed to do so...
Comment 5 Jaroslav Havlin 2014-11-21 14:05:28 UTC
Thank you very much for help.

It seems that this bug occurs quite seldom, and under specific conditions, so we can set lower priority.
Comment 6 Jaroslav Havlin 2015-02-13 11:44:03 UTC
*** Bug 250405 has been marked as a duplicate of this bug. ***