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

Paul Gifford edited comment on NETBEANS-5398 at 4/10/21, 5:00 PM:
------------------------------------------------------------------

I encountered this on 12.2 and 12.3.

My development computer is not and never will be connected to the Internet.  

The first exception is thrown immediately when the Gradle options panel is 
displayed.  The exception is {{java.net.UnknownHostException: 
services.gradle.org}}

Clicking "Apply" or "OK" whether or not changes are made results in the 
initially reported NPE.  

The [offending line in 12.3 is 770|http://example.com/].  The code assumes 
{{cbGradleVersion}} will always have a selected item but in my case the combo 
box is empty.

*Workaround:* To set a custom Gradle Distribution edit or create 
{{${HOME}/.netbeans/12.3/config/Preferences/org/netbeans/modules/gradle.properties}}
 and set the following properties:
  
{code:none}
gradleHome=/my/custom/gradleHome
useCustomGradle=true
{code}


was (Author: pgifford):
I encountered this on 12.2 and 12.3.

My development computer is not and never will be connected to the Internet.  

The first exception is thrown immediately when the Gradle options panel is 
displayed.  The exception is {{java.net.UnknownHostException: 
services.gradle.org}}

Clicking "Apply" or "OK" whether or not changes are made results in the 
initially reported NPE.  

The [offending line in 12.3 is 770|http://example.com/].  The code assumes 
{{cbGradleVersion}} will always have a selected item but in my case the combo 
box is empty.

*Workaround:* To set a custom Gradle Distribution edit or create 
{{${HOME}/.netbeans/12.3/config/Preferences/org/netbeans/modules/gradle.properties}}
 and set the following properties:
  
{code:none}
gradleHome=/my/custom/gradleHome
useCustomGradle=true
{code}
 

 

 

> Exceptions thrown when attempting to set Gradle options
> -------------------------------------------------------
>
>                 Key: NETBEANS-5398
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5398
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>    Affects Versions: 12.2, 12.3
>            Reporter: Albert Flex
>            Assignee: Laszlo Kishalmi
>            Priority: Major
>              Labels: fix-by-workaround
>         Attachments: 截图_2021-03-03_00-49-10.png, 截图_2021-03-03_00-50-53.png
>
>
> There is an exception when setting the distribution address of gradle. 
> Although the interface display has been changed, it is still not set 
> successfully after restart. An exception was reported in the log.
>  
> java.lang.NullPointerException
>  at 
> org.netbeans.modules.gradle.options.SettingsPanel.applyValues(SettingsPanel.java:768)
>  at 
> org.netbeans.modules.gradle.options.GradleOptionsController.applyChanges(GradleOptionsController.java:53)
>  at 
> org.netbeans.modules.options.TabbedController.applyChanges(TabbedController.java:111)
>  at 
> org.netbeans.modules.options.CategoryModel$Category.applyChanges(CategoryModel.java:379)
>  at 
> org.netbeans.modules.options.CategoryModel$Category.access$1100(CategoryModel.java:302)
>  at org.netbeans.modules.options.CategoryModel.save(CategoryModel.java:198)
>  at org.netbeans.modules.options.OptionsPanel.save(OptionsPanel.java:294)
>  at org.netbeans.modules.options.OptionsPanel.save(OptionsPanel.java:278)
>  at 
> org.netbeans.modules.options.OptionsDisplayerImpl$OptionsPanelListener$3.run(OptionsDisplayerImpl.java:514)
>  at 
> org.netbeans.modules.progress.ui.RunOffEDTImpl$3.run(RunOffEDTImpl.java:252)
>  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)
> [catch] at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>  
>  



--
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