[ 
https://issues.apache.org/jira/browse/NETBEANS-2183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034982#comment-17034982
 ] 

Mark Eggers commented on NETBEANS-2183:
---------------------------------------

This was working with the work-around I gave earlier, but has started to fail 
today (and maybe earlier).

It currently fails with 8.2, 10.0, 11.1, and 11.3-beta2.

I did a fresh download of 11.3-beta2, and only changed the following in the 
netbeans.conf file:

-J-Dfile.encoding=UTF-8 (at the end of netbeans_default_options

netbeans_jdkhome="D:\Programs-x64\Java\jdk-11.0.4"

I ran this in a new user directory, did not import any settings, and did not 
import any plugins.

I got an immediate null pointer exception.

Environment:

Windows 10 Professional 64 bit - latest updates

AdoptOpenJDK 11.0.4

NetBeans 11.3-beta2

Log file is attached.[^messages.log]

Access directly via a browser (Firefox 74.0b1) works and lists appropriate JSON 
information. For example:

[https://api.cdnjs.com/libraries?fields=description,homepage,assets&search=bootstrap]

returns bootstrap information as expected.

> CDNJS access no longer works
> ----------------------------
>
>                 Key: NETBEANS-2183
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2183
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 8.2, 10.0, 11.0
>         Environment: Windows 10 Professional 64 bit
> OpenJDK 11.0.2
> NetBeans 10.0 - latest updates
>            Reporter: Mark Eggers
>            Priority: Major
>         Attachments: cdnjs-search.png, cdnjs-update.png, 
> messages-with-additional-properties.log, messages.log, messages.log
>
>
> # Right-mouse button on a project and select properties
>  # Select CDNJS under Javascript libraries
>  # The list of libraries comes up
>  # Expect either a green checkbox or the latest version in the far right 
> column
>  # Question marks are there instead
> Also, when searching for a new library via CDNJS, a "Search Failed :(" 
> message is displayed.
> The trace in the logs:
> INFO [org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask]
> Unexpected token END OF FILE at position 0.
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:81)
>  at org.json.simple.parser.JSONParser.parse(JSONParser.java:75)
> [catch] at 
> org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.parse(LibraryProvider.java:303)
>  at 
> org.netbeans.modules.javascript.cdnjs.LibraryProvider$SearchTask.run(LibraryProvider.java:260)
>  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>  at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>  at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> INFO [null]: Last record repeated 9 more times.
> Note that this also fails on an old NetBeans 8.2 installation running on JDK 
> 8. I suspect that the remote request is failing.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to