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 243494 - IllegalArgumentException: Comparison method violates its general contract!
Summary: IllegalArgumentException: Comparison method violates its general contract!
Status: RESOLVED WONTFIX
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 243559 243675 243676 243796 243817 243998 248012 252964 253211 256293 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-02 19:13 UTC by cdicarlo
Modified: 2015-11-02 06:42 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208843


Attachments
stacktrace (4.32 KB, text/plain)
2014-04-02 19:13 UTC, cdicarlo
Details
Message.log file for exception (905.10 KB, application/octet-stream)
2014-11-25 12:29 UTC, Rahul.khandelwal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cdicarlo 2014-04-02 19:13:35 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
GUEST: New Project -> Cordova -> update js libraries

after update wizard now can
Comment 1 cdicarlo 2014-04-02 19:13:37 UTC
Created attachment 146514 [details]
stacktrace
Comment 2 Tomas Mysik 2014-04-03 05:23:30 UTC
Seems to be caused by updated JS libraries, will investigate it. Thanks.
Comment 3 leelofgren 2014-04-03 20:33:20 UTC
caused by the new cdnjs.zip file in the Local\NetBeans\Cache\8.0\html5\jslibs directory. Deleting it or copying an older version works once netbeans is restarted. The newest one is much much bigger 340M verses 5M. Also the new zip file is missing build and test directories.
Comment 4 Tomas Mysik 2014-04-04 08:59:24 UTC
This is bad, the transitivity is broken because library versions are really "wild" (1.0, 1.0, 1.0-pre, 1.0.beta.3 etc.) so it is not easy to compare them properly :/
Comment 5 Tomas Mysik 2014-04-04 10:22:38 UTC
Should be fixed now, please verify. BTW as a nice side effect, issue #230467 is mostly fixed as well.

Thanks.

http://hg.netbeans.org/web-main/rev/a385faff0266
Comment 6 Tomas Mysik 2014-04-04 11:31:34 UTC
*** Bug 243559 has been marked as a duplicate of this bug. ***
Comment 7 leelofgren 2014-04-04 20:06:05 UTC
I have been copying libraries into the libs directory and zipping the file and trying it until it fails

ember.js causes it to crash so you may want to look at the package.json in that.

Lee
Comment 8 leelofgren 2014-04-04 20:07:37 UTC
Just noticed that this is now marked as fixed so never mind :)
Comment 9 Quality Engineering 2014-04-05 03:30:17 UTC
Integrated into 'main-silver', will be available in build *201404050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a385faff0266
User: Tomas Mysik <tmysik@netbeans.org>
Log: #243494 - IllegalArgumentException: Comparison method violates its general contract!

It fixes #230467 as well.
Comment 10 Tomas Mysik 2014-04-09 06:10:19 UTC
*** Bug 243676 has been marked as a duplicate of this bug. ***
Comment 11 Vladimir Riha 2014-04-09 06:56:33 UTC
*** Bug 243675 has been marked as a duplicate of this bug. ***
Comment 12 Vladimir Riha 2014-04-14 06:35:30 UTC
*** Bug 243796 has been marked as a duplicate of this bug. ***
Comment 13 Vladimir Riha 2014-04-14 07:46:45 UTC
Verified

Product Version: NetBeans IDE Dev (Build 201404140001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 14 Tomas Mysik 2014-04-14 13:38:36 UTC
*** Bug 243817 has been marked as a duplicate of this bug. ***
Comment 15 Tomas Mysik 2014-04-18 06:13:22 UTC
Transplanted to releases repo to the branch release80.

Thanks.

http://hg.netbeans.org/releases/rev/d1b22ce758c2
http://hg.netbeans.org/releases/rev/7291636eedd3
Comment 16 Tomas Mysik 2014-04-22 15:04:59 UTC
*** Bug 243998 has been marked as a duplicate of this bug. ***
Comment 17 msorah 2014-04-22 16:56:52 UTC
(In reply to Tomas Mysik from comment #16)
> *** Bug 243998 has been marked as a duplicate of this bug. ***

As work around till the fix is released, or future related issues with cdnjs,

on Mac OS,
deleting the downloaded file: cdnjs.zip
located in
~/Library/Caches/NetBeans/8.0/html5/jslibs

and then restarting netbeans returns netbeans lets the list or javascripts reappear.

equivalent cache directories for other operating systems should do the same thing. see also comment 3.
Comment 18 Quality Engineering 2014-04-24 02:06:15 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/d1b22ce758c2
User: Tomas Mysik <tmysik@netbeans.org>
Log: #243494 - IllegalArgumentException: Comparison method violates its general contract!

It fixes #230467 as well.
(transplanted from a385faff02663b79677c4b5bc23cf5ffb9acf08a)
Comment 19 Vladimir Riha 2014-04-24 11:50:03 UTC
Cannot reproduce in patch1, updating finished w/o problem. Verified in patch1


Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 20 Tomas Mysik 2014-10-20 05:44:58 UTC
*** Bug 248012 has been marked as a duplicate of this bug. ***
Comment 21 Rahul.khandelwal 2014-11-25 12:29:40 UTC
Created attachment 150690 [details]
Message.log file for exception

I have attached log file which contain exception stack trace
Comment 22 Rahul.khandelwal 2014-11-25 12:32:39 UTC
I have got this issue while updating javascript libraries.
steps:
1. right click on 'my web project'.
2. select 'properties'
3. select 'Javascript files'
4. click on 'update' label.

NOTE: Update takes too much time and consumes too much CPU resources.

Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Updates: NetBeans IDE is updated to version NetBeans 8.0.1 Patch 1.1
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
Comment 23 Rahul.khandelwal 2014-11-25 12:33:50 UTC
Updating netbeans version for in which bug resurfaced.
Comment 24 Tomas Mysik 2014-11-25 12:41:17 UTC
@Rahul.khandelwal: Apparently, it is another use case (in other words: some other new JS libs cause this issue). Anyway, in the current dev build of NetBeans there already is another way to add/update JS libraries in a project (feel free to try it) so closing this one as WONTFIX.

Thanks.
Comment 25 Rahul.khandelwal 2014-11-26 04:39:54 UTC
@Tomas mysic: will there be an update for netbeans version 8.0.1 in near future with the feature to add/update js libraries in the project. What are the steps to add/update libraries in project in current dev build ?
Comment 26 Tomas Mysik 2015-06-15 05:53:46 UTC
*** Bug 252964 has been marked as a duplicate of this bug. ***
Comment 27 Tomas Mysik 2015-06-29 05:40:02 UTC
*** Bug 253211 has been marked as a duplicate of this bug. ***
Comment 28 Tomas Mysik 2015-11-02 06:42:14 UTC
*** Bug 256293 has been marked as a duplicate of this bug. ***