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 243559 - IllegalArgumentException: Comparison method violates its general contract!
Summary: IllegalArgumentException: Comparison method violates its general contract!
Status: RESOLVED DUPLICATE of bug 243494
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-04 11:19 UTC by Shpiller
Modified: 2014-04-04 11:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208840


Attachments
stacktrace (1.79 KB, text/plain)
2014-04-04 11:19 UTC, Shpiller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shpiller 2014-04-04 11:19:42 UTC
Build: NetBeans IDE 8.0 (Build 201403022200)
VM: OpenJDK 64-Bit Server VM, 23.2-b09, OpenJDK Runtime Environment, 1.7.0_09-b30
OS: Linux

User Comments:
GUEST: In HTML5 project
1. Update Javascript files via the Project Properties (date of update 03/04/2014)
2. After update error is thrown and on the JavaScript files option the Available Library list fails to load.

GUEST: Tried to update the JS libraries which I could automaticaly download when starting a new html project.

This lead to the list never refreshing and allways showing "loading .... ".

GUEST: within HTML5 App project I have done a JS libraries update, after the update I can't see anymore the available Javascript libraries. It is stuck in Loading... forever. thanks

Shpiller: 1. Created HTML5 Project
2. Opened Project Properties/JavaScript Files
3. Updated js library to Apr 4, 2014 (downloading master.zip)
4. Had result in Library Table: Loading...
5. Had this error:

java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.util.TimSort.mergeHi(TimSort.java:868)
	at java.util.TimSort.mergeAt(TimSort.java:485)
	at java.util.TimSort.mergeCollapse(TimSort.java:410)
	at java.util.TimSort.sort(TimSort.java:214)
	at java.util.TimSort.sort(TimSort.java:173)
	at java.util.Arrays.sort(Arrays.java:659)
	at java.util.Collections.sort(Collections.java:217)
	at org.netbeans.modules.web.clientproject.api.jslibs.JavaScriptLibrarySelectionPanel$ModelItem.<init>(JavaScriptLibrarySelectionPanel.java:1545)
	at org.netbeans.modules.web.clientproject.api.jslibs.JavaScriptLibrarySelectionPanel$LibrariesTableModel$1$1.run(JavaScriptLibrarySelectionPanel.java:1272)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.a

GUEST: After installing (upgrading from netbeans 7.3) I created a cadorva project.
After project creation I added some javascript libraries.
Then, seeing that the libraries were never updated I clicked the update button.
After updating when I right click project->properties click Javascript libraries it just says "Loading..." in grey italics

GUEST: updated javascript libraries and now they do not work

GUEST: issued when download js libraries

GUEST: Html5 Project -> Properties -> JavaScript -> update cdn

GUEST: Update javascript library list

GUEST: IllegalArgumentException: Comparison method violates its general contract!

GUEST: I was just trying to update javascript libraries as i was creating a new HTML 5 application project.

GUEST: updated CDNJS lib

GUEST: Updatest Javascript Files from CDNJS

GUEST: cant pull any javascript files, crashes after updating not showing the list

GUEST: Updating javascript libraries

GUEST: Updating JavaScript libraries CDN. Hangs on "Loading..."

GUEST: while updating the Javascript CDNJS repository this error occurs

GUEST: nodata




Stacktrace: 
java.lang.IllegalArgumentException: Comparison method violates its general contract!
   at java.util.TimSort.mergeHi(TimSort.java:868)
   at java.util.TimSort.mergeAt(TimSort.java:485)
   at java.util.TimSort.mergeCollapse(TimSort.java:410)
   at java.util.TimSort.sort(TimSort.java:214)
   at java.util.TimSort.sort(TimSort.java:173)
   at java.util.Arrays.sort(Arrays.java:659)
Comment 1 Shpiller 2014-04-04 11:19:44 UTC
Created attachment 146546 [details]
stacktrace
Comment 2 Tomas Mysik 2014-04-04 11:31:34 UTC
Fixed in trunk already.

*** This bug has been marked as a duplicate of bug 243494 ***