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

Summary: IllegalStateException: Output file has been disposed!
Product: platform Reporter: terje7601
Component: Output WindowAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: exceptions_reporter
Priority: P4    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 213261
Attachments: stacktrace

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)




Stacktrace: 
java.lang.IllegalStateException: Output file has been disposed!
   at org.netbeans.core.output2.OutWriter.getStorage(OutWriter.java:129)
   at org.netbeans.core.output2.OutWriter$LinesImpl.getStorage(OutWriter.java:765)
   at org.netbeans.core.output2.AbstractLines.getByteSize(AbstractLines.java:220)
   at org.netbeans.core.output2.AbstractLines.getCharCount(AbstractLines.java:351)
   at org.netbeans.core.output2.OutputDocument.getLength(OutputDocument.java:150)
   at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:1162)
Comment 1 terje7601 2014-11-07 14:18:59 UTC
Created attachment 150350 [details]
stacktrace
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. ***