You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Benjamin Graf (JIRA)" <ji...@apache.org> on 2019/08/05 18:56:00 UTC

[jira] [Commented] (NETBEANS-2953) NPE after pressing "DTDs and XML Schemas" menu entry

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

Benjamin Graf commented on NETBEANS-2953:
-----------------------------------------

Additional Information:
Error seems to be in RunTimeDDCatalog which gets initialized without setting displayNameKey variable. Might be something wrong with layer.xml.

> NPE after pressing "DTDs and XML Schemas" menu entry
> ----------------------------------------------------
>
>                 Key: NETBEANS-2953
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2953
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.1
>         Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
>            Reporter: Benjamin Graf
>            Priority: Major
>
> Following stacktrace occurs every time when trying to open  "DTDs and XML Schemas" menu entry:
> {noformat}
> java.lang.NullPointerException
> 	at java.base/java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
> 	at java.base/java.util.Properties.get(Properties.java:1311)
> 	at org.openide.util.NbCollections$CheckedMap.get(NbCollections.java:385)
> 	at org.openide.util.NbBundle$PBundle.handleGetObject(NbBundle.java:880)
> 	at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:555)
> 	at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:521)
> 	at org.openide.util.NbBundle.getMessage(NbBundle.java:617)
> 	at org.netbeans.modules.payara.jakartaee.RunTimeDDCatalog.getDisplayName(RunTimeDDCatalog.java:382)
> 	at org.netbeans.modules.xml.catalog.CatalogRootNode$RootChildren.compare(CatalogRootNode.java:249)
> 	at java.base/java.util.TreeMap.put(TreeMap.java:550)
> 	at java.base/java.util.TreeSet.add(TreeSet.java:255)
> 	at org.netbeans.modules.xml.catalog.CatalogRootNode$RootChildren.createKeys(CatalogRootNode.java:225)
> 	at org.netbeans.modules.xml.catalog.CatalogRootNode$RootChildren.addNotify(CatalogRootNode.java:183)
> 	at org.openide.nodes.Children.callAddNotify(Children.java:550)
> 	at org.openide.nodes.EntrySupportDefault.getArray(EntrySupportDefault.java:627)
> 	at org.openide.nodes.EntrySupportDefault.getNodes(EntrySupportDefault.java:98)
> 	at org.openide.nodes.EntrySupportDefault.getNodes(EntrySupportDefault.java:149)
> 	at org.openide.nodes.EntrySupportDefault.getNodesCount(EntrySupportDefault.java:153)
> 	at org.openide.nodes.Children.getNodesCount(Children.java:484)
> 	at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.java:234)
> 	at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.java:224)
> 	at org.openide.explorer.view.VisualizerNode.getChildCount(VisualizerNode.java:301)
> 	at java.desktop/javax.swing.tree.DefaultTreeModel.getChildCount(DefaultTreeModel.java:192)
> 	at java.desktop/javax.swing.tree.FixedHeightLayoutCache$FHTreeStateNode.expand(FixedHeightLayoutCache.java:1155)
> 	at java.desktop/javax.swing.tree.FixedHeightLayoutCache.rebuild(FixedHeightLayoutCache.java:620)
> 	at java.desktop/javax.swing.tree.FixedHeightLayoutCache.treeStructureChanged(FixedHeightLayoutCache.java:492)
> 	at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.treeStructureChanged(BasicTreeUI.java:4324)
> 	at java.desktop/javax.swing.tree.DefaultTreeModel.fireTreeStructureChanged(DefaultTreeModel.java:607)
> 	at java.desktop/javax.swing.tree.DefaultTreeModel.nodeStructureChanged(DefaultTreeModel.java:391)
> 	at java.desktop/javax.swing.tree.DefaultTreeModel.setRoot(DefaultTreeModel.java:141)
> 	at org.openide.explorer.view.NodeTreeModel$1.run(NodeTreeModel.java:98)
> 	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:95)
> 	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:70)
> 	at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:66)
> 	at org.openide.util.Mutex.readAccess(Mutex.java:235)
> 	at org.openide.explorer.view.NodeTreeModel.setNode(NodeTreeModel.java:83)
> 	at org.openide.explorer.view.TreeView$4.run(TreeView.java:831)
> 	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:95)
> 	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:70)
> 	at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:66)
> 	at org.openide.util.Mutex.readAccess(Mutex.java:235)
> 	at org.openide.explorer.view.TreeView.synchronizeRootContext(TreeView.java:821)
> 	at org.openide.explorer.view.TreeView.lookupExplorerManager(TreeView.java:659)
> 	at org.openide.explorer.view.TreeView.addNotify(TreeView.java:639)
> 	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
> 	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
> 	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
> 	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
> 	at org.openide.windows.TopComponent.addNotify(TopComponent.java:256)
> 	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
> 	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
> 	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
> 	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
> 	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
> 	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783)
> 	at java.desktop/javax.swing.JRootPane.addNotify(JRootPane.java:733)
> 	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
> 	at java.desktop/java.awt.Window.addNotify(Window.java:786)
> 	at java.desktop/java.awt.Dialog.addNotify(Dialog.java:759)
> 	at org.netbeans.core.windows.services.NbPresenter.addNotify(NbPresenter.java:448)
> 	at java.desktop/java.awt.Window.pack(Window.java:824)
> 	at org.netbeans.core.windows.services.NbPresenter.initialize(NbPresenter.java:252)
> 	at org.netbeans.core.windows.services.NbPresenter.<init>(NbPresenter.java:179)
> 	at org.netbeans.core.windows.services.NbDialog.<init>(NbDialog.java:42)
> 	at org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(DialogDisplayerImpl.java:133)
> 	at org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(DialogDisplayerImpl.java:94)
> 	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:115)
> 	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:75)
> 	at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:71)
> 	at org.openide.util.Mutex.readAccess(Mutex.java:193)
> 	at org.netbeans.core.windows.services.DialogDisplayerImpl.createDialog(DialogDisplayerImpl.java:94)
> 	at org.netbeans.core.windows.services.DialogDisplayerImpl.createDialog(DialogDisplayerImpl.java:86)
> 	at org.netbeans.modules.xml.catalog.CatalogAction.actionPerformed(CatalogAction.java:83)
> 	at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:174)
> 	at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
> 	at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
> 	at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
> 	at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:177)
> 	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
> 	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
> 	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
> 	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
> 	at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
> 	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1020)
> 	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1064)
> 	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
> 	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
> 	at java.desktop/java.awt.Component.processEvent(Component.java:6397)
> 	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
> 	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
> 	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
> 	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
> 	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
> 	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
> 	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
> 	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
> 	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
> 	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
> 	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
> 	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
> 	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
> 	at java.base/java.security.AccessController.doPrivileged(Native Method)
> 	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
> 	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
> 	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
> 	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
> 	at java.base/java.security.AccessController.doPrivileged(Native Method)
> 	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
> 	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
> 	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
> [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
> 	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
> 	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
> 	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
> 	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> 	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
> {noformat}
> How to reproduce:
> * Clean installation from zip (without data from previous installation)
> * Activation of "Java SE" and "Java Web and EE" modules (with downloading nbjavac and jparser)
> * Calling menu entry "Tools/DTDs and XML Schemas"



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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