Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6102

Category Actions can not be opend in project properties for certain Maven Projects

    XMLWordPrintableJSON

Details

    Description

      For Maven Projects of packaging type "pom" (e.g. the parent in a multi-module project) or "hpi" (Jenkins plugin), the menu item "Actions" in the project settings can not be opened. A NullPointerException is logged instead.

      This is likely a regression of commit c282a25d5071c1b44de7026a4ceb9d200e161e14 and PR #3016.

      NPE in messages.log
      java.lang.NullPointerException: Cannot invoke "org.netbeans.modules.maven.execute.model.NetbeansActionMapping.getGoals()" because "am" is null
      	at org.netbeans.modules.maven.execute.ActionToGoalUtils.isDisabledMapping(ActionToGoalUtils.java:201)
      	at org.netbeans.modules.maven.customizer.ActionMappings$Renderer.getListCellRendererComponent(ActionMappings.java:1082)
      	at java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1444)
      	at java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1394)
      	at java.desktop/javax.swing.plaf.basic.BasicListUI.getPreferredSize(BasicListUI.java:653)
      	at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1725)
      	at java.desktop/javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:799)
      	at java.desktop/java.awt.Container.layout(Container.java:1541)
      	at java.desktop/java.awt.Container.doLayout(Container.java:1530)
      	at java.desktop/java.awt.Container.validateTree(Container.java:1725)
      	at java.desktop/java.awt.Container.validateTree(Container.java:1734)
      	at java.desktop/java.awt.Container.validateTree(Container.java:1734)
      	at java.desktop/java.awt.Container.validateTree(Container.java:1734)
      	at java.desktop/java.awt.Container.validateTree(Container.java:1734)
      	at java.desktop/java.awt.Container.validateTree(Container.java:1734)
      	at java.desktop/java.awt.Container.validateTree(Container.java:1734)
      	at java.desktop/java.awt.Container.validate(Container.java:1660)
      	at java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:757)
      	at java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:755)
      	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      	at java.desktop/javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:754)
      	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1897)
      	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
      	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
      	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
      	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.pumpEventsForFilter(EventDispatchThread.java:117)
      	at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
      	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
      	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
      	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
      	at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
      	at java.desktop/java.awt.Dialog.show(Dialog.java:1080)
      	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1074)
      	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1124)
      	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1096)
      	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:106)
      	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:123)
      	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:77)
      	at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:71)
      	at org.openide.util.Mutex.readAccess(Mutex.java:199)
      	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1081)
      	at java.desktop/java.awt.Component.show(Component.java:1728)
      	at java.desktop/java.awt.Component.setVisible(Component.java:1675)
      	at java.desktop/java.awt.Window.setVisible(Window.java:1036)
      	at java.desktop/java.awt.Dialog.setVisible(Dialog.java:1016)
      	at org.netbeans.modules.maven.customizer.CustomizerProviderImpl$1.run(CustomizerProviderImpl.java:166)
      	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:97)
      	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:72)
      	at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:66)
      	at org.openide.util.Mutex.readAccess(Mutex.java:241)
      	at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.showCustomizer(CustomizerProviderImpl.java:147)
      	at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.showCustomizer(CustomizerProviderImpl.java:115)
      	at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.showCustomizer(CustomizerProviderImpl.java:110)
      	at org.netbeans.modules.project.ui.actions.CustomizeProject$1$1.run(CustomizeProject.java:135)
      	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
      	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
      	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
      	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
      	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)
      

      If you need a sample for "hpi" packaging, try https://github.com/jenkinsci/dependency-track-plugin.

      p.s.
      Disabling Micronaut support does not help.

      Attachments

        Issue Links

          Activity

            People

              sdedic Svatopluk Dedic
              sephiroth-j Ronny Perinke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m