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 155284 - NegativeArraySizeException at java.util.AbstractCollection.toArray
Summary: NegativeArraySizeException at java.util.AbstractCollection.toArray
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: dlipin
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-12-12 01:29 UTC by _ krystyna
Modified: 2009-02-19 20:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 104281


Attachments
stacktrace (905 bytes, text/plain)
2008-12-12 01:29 UTC, _ krystyna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2008-12-12 01:29:08 UTC
Build: NetBeans IDE Dev (Build 20081210142746)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Windows XP, 5.1, x86

User Comments:
krystyna: -adding new nbms

krystyna: -adding new nbms



Stacktrace: 
java.lang.NegativeArraySizeException
        at java.util.AbstractCollection.toArray(AbstractCollection.java:119)
        at java.util.LinkedList.addAll(LinkedList.java:269)
        at java.util.LinkedList.addAll(LinkedList.java:247)
        at java.util.LinkedList.<init>(LinkedList.java:98)
        at org.netbeans.modules.autoupdate.ui.LocalDownloadSupport.getUpdateUnits(LocalDownloadSupport.java:122)
        at org.netbeans.modules.autoupdate.ui.LocallyDownloadedTableModel.setUnits(LocallyDownloadedTableModel.java:72)
Comment 1 _ krystyna 2008-12-12 01:29:17 UTC
Created attachment 74872 [details]
stacktrace
Comment 2 dlipin 2008-12-12 09:18:18 UTC
krystyna,

what specific NBMs have you added ?
Comment 3 dlipin 2008-12-12 09:20:34 UTC
please also attach ~/.netbeans/dev/var/log/messages.log
Comment 4 _ krystyna 2008-12-12 22:22:00 UTC
Third party nbms sent directly.
Comment 5 _ krystyna 2008-12-16 02:30:47 UTC
I have not been able to reproduce this exception with either the same
or any third party nbms.
Comment 6 dlipin 2009-02-16 13:59:57 UTC
I can`t reproduce it but I see the issue in the synchronization:

SEVERE [org.openide.util.RequestProcessor]
java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
	at java.util.HashMap$ValueIterator.next(HashMap.java:822)
	at org.netbeans.modules.autoupdate.ui.LocalDownloadSupport.removeInstalledUnit(LocalDownloadSupport.java:289)
	at org.netbeans.modules.autoupdate.ui.LocallyDownloadedTableModel.removeInstalledUnits
(LocallyDownloadedTableModel.java:81)
	at org.netbeans.modules.autoupdate.ui.UnitTab$11.run(UnitTab.java:676)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
SEVERE [org.openide.util.RequestProcessor]
java.lang.NegativeArraySizeException
	at java.util.AbstractCollection.toArray(AbstractCollection.java:119)
	at java.util.LinkedList.addAll(LinkedList.java:269)
	at java.util.LinkedList.addAll(LinkedList.java:247)
	at java.util.LinkedList.<init>(LinkedList.java:98)
	at org.netbeans.modules.autoupdate.ui.LocalDownloadSupport.getUpdateUnits(LocalDownloadSupport.java:122)
	at org.netbeans.modules.autoupdate.ui.LocallyDownloadedTableModel.setUnits(LocallyDownloadedTableModel.java:72)
	at org.netbeans.modules.autoupdate.ui.LocallyDownloadedTableModel.removeInstalledUnits
(LocallyDownloadedTableModel.java:83)
	at org.netbeans.modules.autoupdate.ui.UnitTab$11.run(UnitTab.java:676)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)

I`ll fix it.
Comment 7 dlipin 2009-02-16 14:28:55 UTC
fixed, core-main #1a5ead5a6cc3
Comment 8 Quality Engineering 2009-02-18 10:34:45 UTC
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1a5ead5a6cc3
User: Dmitry Lipin <dlipin@netbeans.org>
Log: Issue #155284 NegativeArraySizeException at java.util.AbstractCollection.toArray