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.
Build: NetBeans IDE 8.1 Beta (Build 201507282201) VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b24 OS: Windows 7 User Comments: GUEST: Project > Properties > Javascript Libraries > CDNJS > Search = ERROR! thruminds: Project properties -> JavaScript Libraries -> CDNJS -> Add -> type angular in the 'find' text box -> hit search Stacktrace: java.lang.ClassCastException: java.lang.String cannot be cast to org.json.simple.JSONObject at org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.createVersion(LibraryProvider.java:418) at org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.createLibrary(LibraryProvider.java:376) at org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.parse(LibraryProvider.java:331) at org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.run(LibraryProvider.java:283) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
Created attachment 155050 [details] stacktrace
It seems that the CDNJS server returns the data in a different format than it used to return them. I have modified the corresponding code to handle both cases (the old and the current format). Modified file: https://hg.netbeans.org/web-main/rev/f028b440d36c
Integrated into release81_beta branch: https://hg.netbeans.org/releases/rev/02fb055cdd47 https://hg.netbeans.org/releases/rev/dec4b27736a3
Integrated into 'main-silver', will be available in build *201507310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f028b440d36c User: Jan Stola <jstola@netbeans.org> Log: #253987: ClassCastException: java.lang.String cannot be cast to org.json.simple.JSONObject
Verified in Beta, thank you Product Version: NetBeans IDE 8.1 Beta (Build 201507302201) Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)