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 157501 - IllegalArgumentException: Negative size
Summary: IllegalArgumentException: Negative size
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Havlin
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-27 14:38 UTC by jiai
Modified: 2013-05-17 12:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 145592


Attachments
stacktrace (2.26 KB, text/plain)
2009-01-27 14:39 UTC, jiai
Details
stacktrace (2.51 KB, text/plain)
2012-03-30 09:53 UTC, jmichelberger
Details
stacktrace (3.99 KB, text/plain)
2012-04-02 18:41 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jiai 2009-01-27 14:38:56 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.IllegalArgumentException: Negative size
        at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:703)
        at org.netbeans.core.output2.FileMapStorage.getReadBuffer(FileMapStorage.java:281)
        at org.netbeans.core.output2.AbstractLines.getText(AbstractLines.java:130)
        at org.netbeans.core.output2.OutputDocument.getText(OutputDocument.java:204)
        at org.netbeans.core.output2.ExtPlainView.getText(ExtPlainView.java:164)
        at org.netbeans.core.output2.ExtPlainView.getLineWidth(ExtPlainView.java:371)
Comment 1 jiai 2009-01-27 14:39:01 UTC
Created attachment 76268 [details]
stacktrace
Comment 2 t_h 2009-04-06 15:24:36 UTC
Probably 2GB limit was exceeded.
Comment 3 Martin Entlicher 2011-01-14 14:50:23 UTC
Yes, probably the problem with inability to handle more than Integer.MAX_VALUE characters.
Comment 4 Exceptions Reporter 2012-03-29 12:50:22 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145592
Comment 5 jmichelberger 2012-03-30 09:53:20 UTC
Created attachment 117533 [details]
stacktrace
Comment 6 Michel Graciano 2012-04-02 18:41:21 UTC
Created attachment 117681 [details]
stacktrace

Compiling a big free form project
Comment 7 Quality Engineering 2012-10-18 02:05:51 UTC
Integrated into 'main-golden', will be available in build *201210180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/07ea7506f758
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #157501: Wrap all exceptions thown while creating read buffer to IOException
Comment 8 Jaroslav Havlin 2013-05-17 12:55:08 UTC
(In reply to comment #3)
> Yes, probably the problem with inability to handle more than Integer.MAX_VALUE
> characters.
Fixed in bug 185462.

No exception report since 7.2. Closing. Please reopen if you encounter the bug in NetBeans 7.3 or newer. Thank you.