You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "tmulle (via GitHub)" <gi...@apache.org> on 2024/01/03 16:51:23 UTC

[I] Cannot invoke "org.netbeans.Module.getCodeNameBase()" random error [netbeans]

tmulle opened a new issue, #6913:
URL: https://github.com/apache/netbeans/issues/6913

   ### Apache NetBeans version
   
   Apache NetBeans 20
   
   ### What happened
   
   Attempting to compile an existing Maven project with JDK17 running NetBeans 20 and received this error in the notification window.
   
   ```
   java.lang.NullPointerException: Cannot invoke "org.netbeans.Module.getCodeNameBase()" because "this.addedBecauseOfDependent" is null
   	at org.netbeans.ModuleManager.maybeAddToEnableList(ModuleManager.java:1783)
   	at org.netbeans.ModuleManager.maybeAddToEnableList(ModuleManager.java:1815)
   	at org.netbeans.ModuleManager.searchForPossibleEager(ModuleManager.java:1918)
   	at org.netbeans.ModuleManager.simulateEnable(ModuleManager.java:1714)
   	at org.netbeans.ModuleManager.simulateEnable(ModuleManager.java:1675)
   	at org.netbeans.modules.autoupdate.services.OperationValidator$EnableValidator.getModulesToEnable(OperationValidator.java:340)
   	at org.netbeans.modules.autoupdate.services.OperationValidator$EnableValidator.getRequiredElementsImpl(OperationValidator.java:376)
   	at org.netbeans.modules.autoupdate.services.OperationValidator.getRequiredElements(OperationValidator.java:108)
   	at org.netbeans.modules.autoupdate.services.OperationContainerImpl$OperationInfoImpl.getRequiredElements(OperationContainerImpl.java:443)
   	at org.netbeans.api.autoupdate.OperationContainer$OperationInfo.getRequiredElements(OperationContainer.java:383)
   	at org.netbeans.modules.ide.ergonomics.fod.FindComponentModules.getMissingModules(FindComponentModules.java:408)
   	at org.netbeans.modules.ide.ergonomics.fod.FindComponentModules.findComponentModules(FindComponentModules.java:284)
   	at org.netbeans.modules.ide.ergonomics.fod.FindComponentModules.access$000(FindComponentModules.java:58)
   	at org.netbeans.modules.ide.ergonomics.fod.FindComponentModules$2.run(FindComponentModules.java:239)
   	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1420)
   	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
   	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
   [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2035)
   ```
   
   ### Language / Project Type / NetBeans Component
   
   Java Maven Project no modules
   
   ### How to reproduce
   
   I don't have a reproducer because it doesn't always happen
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   MacOS Sonoma 14.2.1 on M1 Mac
   
   ### JDK
   
   17.0.8.1 OpenJDK
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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