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 186968

Summary: [69cat] IllegalStateException: Output file has been disposed!
Product: platform Reporter: meda22
Component: Output WindowAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED WORKSFORME    
Severity: normal CC: big_al
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 170293
Attachments: stacktrace

Description meda22 2010-05-30 22:17:20 UTC
This bug was originally marked as duplicate of bug 164959, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.8 (Build 200912091457)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows 7

User Comments:
meda22: I download tomcat 6.0.26 and when I try started it on port 8082 this error raise..

big_al: Start a GlassFish server that had just crashed due to OutOfMemory




Stacktrace: 
java.lang.IllegalStateException: Output file has been disposed!
   at org.netbeans.core.output2.OutWriter.getStorage(OutWriter.java:119)
   at org.netbeans.core.output2.OutWriter$LinesImpl.getStorage(OutWriter.java:502)
   at org.netbeans.core.output2.AbstractLines.getByteSize(AbstractLines.java:176)
   at org.netbeans.core.output2.AbstractLines.getCharCount(AbstractLines.java:306)
   at org.netbeans.core.output2.OutputDocument.getLength(OutputDocument.java:140)
   at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:1142)
Comment 1 meda22 2010-05-30 22:17:23 UTC
Created attachment 99662 [details]
stacktrace
Comment 2 Exceptions Reporter 2010-06-17 05:43:08 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=170293
Comment 3 Martin Entlicher 2011-02-09 14:37:41 UTC
From the logs it's likely that the Storage.size() overflows to a negative value. Therefore AbstractLines.lastStorageSize is negative.
Comment 4 Jaroslav Havlin 2011-10-21 14:29:51 UTC
I am sorry, I cannot reproduce it. Unfortunately, the stacktraces are not very helpful here.
It seems that some output tab tried to show content that had been already disposed. 
Please, if you are still encountering this problem, describe steps to reproduce.
Comment 5 Jaroslav Havlin 2011-11-01 16:26:29 UTC
Cannot reproduce, and it has been almost one year since last report. Closing. Please reopen if it occurs again.