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 148810 - NegativeArraySizeException at org.netbeans.core.output2.OutputDocument$DO.getChildrenAdded
Summary: NegativeArraySizeException at org.netbeans.core.output2.OutputDocument$DO.get...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: t_h
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-01 09:30 UTC by John Baker
Modified: 2009-05-27 20:52 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 108280


Attachments
I could not reproduce the bug, but I created a patch (NBSOURCE61) that maybe will do the job (545 bytes, text/plain)
2008-12-16 14:50 UTC, scanti
Details
stacktrace (1.77 KB, text/plain)
2009-01-13 21:12 UTC, remisb
Details
stacktrace (1.86 KB, text/plain)
2009-03-10 09:42 UTC, malakim
Details
stacktrace (1.86 KB, text/plain)
2009-03-25 11:00 UTC, malakim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Baker 2008-10-01 09:31:04 UTC
Build: NetBeans IDE Dev (Build 200809081401)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237
OS: Mac OS X, 10.5.4, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.NegativeArraySizeException
        at org.netbeans.core.output2.OutputDocument$DO.getChildrenAdded(OutputDocument.java:778)
        at org.netbeans.core.output2.ExtPlainView.updateDamage(ExtPlainView.java:390)
        at javax.swing.text.PlainView.insertUpdate(PlainView.java:422)
        at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1507)
        at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1750)
        at org.netbeans.core.output2.OutputDocument.fireDocumentEvent(OutputDocument.java:533)
        at org.netbeans.core.output2.OutputDocument.stateChanged(OutputDocument.java:461)
        at org.netbeans.core.output2.AbstractLines.run(AbstractLines.java:218)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
Comment 1 scanti 2008-12-16 14:05:43 UTC
It  happened to me when I was deleting files/directories
It is an Rich Client Application.

System Info: 
  Product Version         = studioSL trunk 200804211638
  Operating System        = Linux version 2.6.27.7-134.fc10.x86_64 running on i386
  Java; VM; Vendor        = 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04; Sun Microsystems Inc.
  Runtime                 = Java(TM) 2 Runtime Environment, Standard Edition 1.5.0_15-b04
  Java Home               = /usr/java/jdk1.5.0_15/jre
  System Locale; Encoding = it_IT (studiosl); UTF-8


java.lang.NegativeArraySizeException
        at org.netbeans.core.output2.OutputDocument$DO.getChildrenAdded(OutputDocument.java:825)
        at javax.swing.text.PlainView.updateDamage(PlainView.java:502)
        at javax.swing.text.PlainView.insertUpdate(PlainView.java:422)
        at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1506)
        at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1749)
        at org.netbeans.core.output2.OutputDocument.fireDocumentEvent(OutputDocument.java:532)
        at org.netbeans.core.output2.OutputDocument.access$200(OutputDocument.java:64)
        at org.netbeans.core.output2.OutputDocument$4.run(OutputDocument.java:453)
        at org.openide.util.Mutex.doEvent(Mutex.java:1335)
        at org.openide.util.Mutex.readAccess(Mutex.java:345)
        at org.netbeans.core.output2.OutputDocument.stateChanged(OutputDocument.java:450)
        at org.netbeans.core.output2.AbstractLines.run(AbstractLines.java:218)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 2 scanti 2008-12-16 14:07:44 UTC
It  happened to me when I was deleting files/directories
It is an Rich Client Application.

System Info: 
  Product Version         = studioSL trunk 200804211638
  Operating System        = Linux version 2.6.27.7-134.fc10.x86_64 running on i386
  Java; VM; Vendor        = 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04; Sun Microsystems Inc.
  Runtime                 = Java(TM) 2 Runtime Environment, Standard Edition 1.5.0_15-b04
  Java Home               = /usr/java/jdk1.5.0_15/jre
  System Locale; Encoding = it_IT (studiosl); UTF-8


java.lang.NegativeArraySizeException
        at org.netbeans.core.output2.OutputDocument$DO.getChildrenAdded(OutputDocument.java:825)
        at javax.swing.text.PlainView.updateDamage(PlainView.java:502)
        at javax.swing.text.PlainView.insertUpdate(PlainView.java:422)
        at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1506)
        at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1749)
        at org.netbeans.core.output2.OutputDocument.fireDocumentEvent(OutputDocument.java:532)
        at org.netbeans.core.output2.OutputDocument.access$200(OutputDocument.java:64)
        at org.netbeans.core.output2.OutputDocument$4.run(OutputDocument.java:453)
        at org.openide.util.Mutex.doEvent(Mutex.java:1335)
        at org.openide.util.Mutex.readAccess(Mutex.java:345)
        at org.netbeans.core.output2.OutputDocument.stateChanged(OutputDocument.java:450)
        at org.netbeans.core.output2.AbstractLines.run(AbstractLines.java:218)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 3 scanti 2008-12-16 14:50:54 UTC
Created attachment 75031 [details]
I could not reproduce the bug, but I created a patch (NBSOURCE61) that maybe will do the job
Comment 4 Exceptions Reporter 2009-01-07 21:08:17 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=108280
Comment 5 remisb 2009-01-13 21:12:04 UTC
Build: NetBeans IDE Dev (Build 200901031401)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 
Updated and saved jsp page.

Stacktrace: 
java.lang.NegativeArraySizeException
        at org.netbeans.core.output2.OutputDocument$DO.getChildrenAdded(OutputDocument.java:723)
        at org.netbeans.core.output2.ExtPlainView.updateDamage(ExtPlainView.java:390)
        at javax.swing.text.PlainView.insertUpdate(PlainView.java:422)
        at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1507)
        at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1750)
        at org.netbeans.core.output2.OutputDocument.fireDocumentEvent(OutputDocument.java:476)
Comment 6 remisb 2009-01-13 21:12:13 UTC
Created attachment 75789 [details]
stacktrace
Comment 7 malakim 2009-03-10 09:42:09 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NegativeArraySizeException
        at org.netbeans.core.output2.OutputDocument$DO.getChildrenAdded(OutputDocument.java:726)
        at org.netbeans.core.output2.ExtPlainView.updateDamage(ExtPlainView.java:390)
        at javax.swing.text.PlainView.insertUpdate(PlainView.java:425)
        at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1590)
        at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1849)
        at org.netbeans.core.output2.OutputDocument.fireDocumentEvent(OutputDocument.java:481)
Comment 8 malakim 2009-03-10 09:42:29 UTC
Created attachment 77958 [details]
stacktrace
Comment 9 malakim 2009-03-25 11:00:23 UTC
Build: NetBeans IDE 6.5.1 (Build 200903060201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows Vista, 6.0, x86

User Comments: 
Occured when running a web application on Glassfish V2.1 (using the "F6" shortcut key)

Stacktrace: 
java.lang.NegativeArraySizeException
        at org.netbeans.core.output2.OutputDocument$DO.getChildrenAdded(OutputDocument.java:726)
        at org.netbeans.core.output2.ExtPlainView.updateDamage(ExtPlainView.java:390)
        at javax.swing.text.PlainView.insertUpdate(PlainView.java:425)
        at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1590)
        at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1849)
        at org.netbeans.core.output2.OutputDocument.fireDocumentEvent(OutputDocument.java:481)
Comment 10 malakim 2009-03-25 11:00:32 UTC
Created attachment 78807 [details]
stacktrace
Comment 11 t_h 2009-04-01 15:48:28 UTC
core-main #f0fdbdac0c60
Comment 12 Quality Engineering 2009-04-02 07:31:01 UTC
Integrated into 'main-golden', will be available in build *200904020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f0fdbdac0c60
User: Tomas Holy <t_h@netbeans.org>
Log: #148810: NegativeArraySizeException at org.netbeans.core.output2.OutputDocument$DO.getChildrenAdded