Hi José,

the isse was introduced by this PR:

https://github.com/apache/netbeans/pull/3038

the problem is, that the displayName property references a missing
bundle key, as the new key is in a different Bundle. With assertions
enabled you get a sensible error message:

INFO [org.netbeans.core.startup.layers.BinaryFS]: value = 
org.netbeans.modules.refactoring.java.Bundle#RefactoringRules.Options.Export.displayName
 from OptionsExport/Advanced/RuleFiles
java.util.MissingResourceException: Can't find resource for bundle 
org.openide.util.NbBundle$PBundle, key 
RefactoringRules.Options.Export.displayName
        at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:564)
[catch] at 
org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:676)
        at 
org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:506)
        at 
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:918)
        at 
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:851)
        at 
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:914)
        at 
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:851)
        at 
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:772)
        at 
org.netbeans.modules.options.export.OptionsExportModel$Category.getItems(OptionsExportModel.java:626)
        at 
org.netbeans.modules.options.export.OptionsChooserPanel.createOptionsTreeModel(OptionsChooserPanel.java:431)
        at 
org.netbeans.modules.options.export.OptionsChooserPanel.access$700(OptionsChooserPanel.java:72)
        at 
org.netbeans.modules.options.export.OptionsChooserPanel$6.run(OptionsChooserPanel.java:339)
CONFIG [null]: Missing resource from class: org.openide.util.NbBundle$PBundle
CONFIG [null]: Key which was not found: 
RefactoringRules.Options.Export.displayName
SEVERE [global]
java.lang.AssertionError: Display name of export option item not defined in 
layer.
        at 
org.netbeans.modules.options.export.OptionsExportModel$Category.getItems(OptionsExportModel.java:627)
        at 
org.netbeans.modules.options.export.OptionsChooserPanel.createOptionsTreeModel(OptionsChooserPanel.java:431)
        at 
org.netbeans.modules.options.export.OptionsChooserPanel.access$700(OptionsChooserPanel.java:72)
[catch] at 
org.netbeans.modules.options.export.OptionsChooserPanel$6.run(OptionsChooserPanel.java:339)


This should fix it - could you please check it?

https://github.com/apache/netbeans/pull/3075

Greetings

Matthias


Am Samstag, dem 24.07.2021 um 20:48 +0000 schrieb José Contreras:
> 
> Hi everyone,
> 
> The Export/Import Options action is currently broken in master, I
> tried to export and import and the behavior is the same, never
> finished loading, can not continue and an exception is thrown.
> 
> I could identified the culprit:
> [PR-3058] Micronaut: Allow for creating project on JDK 16
> 
> But I do not know how to solve it.
> 
> I hope that someone can reproduce this issue.
> 
> Regards
> José Contreras
> ---------------------------------------------------------------------
> 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