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 251920

Summary: IllegalArgumentException: Contents must be presorted - added value 152575 is less than preceding value 987922
Product: platform Reporter: Exceptions Reporter <exceptions_reporter>
Component: Output WindowAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 216833
Attachments: stacktrace

Description Exceptions Reporter 2015-04-18 08:28:55 UTC
This bug was originally marked as duplicate of bug 201450, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 7

User Comments:
GUEST: when I run the code that use java.nio to read a large file, it shows java result:-1




Stacktrace: 
java.lang.IllegalArgumentException: Contents must be presorted - added value 152575 is less than preceding value 987922
   at org.netbeans.core.output2.IntList.add(IntList.java:76)
   at org.netbeans.core.output2.AbstractLines.addTabAt(AbstractLines.java:1294)
   at org.netbeans.core.output2.OutWriter.doWrite(OutWriter.java:456)
   at org.netbeans.core.output2.OutWriter.print(OutWriter.java:568)
   at org.netbeans.core.output2.ErrWriter.print(ErrWriter.java:211)
   at org.netbeans.core.output2.ErrWriter.println(ErrWriter.java:165)
Comment 1 Exceptions Reporter 2015-04-18 08:28:58 UTC
Created attachment 153257 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-08-13 09:22:45 UTC
I'm sorry, I cannot reproduce this bug.

> when I run the code that use java.nio to read a large file, it shows java 
> result:-1
Was this a binary or textual file?

Can you please provide a test case (sample code, or the output contents)?

Thank you.