[MAGNOLIA-1880] NPE when module descriptor points to non existing class Created: 21/Nov/07  Updated: 12/Dec/07  Resolved: 12/Dec/07

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 3.5 RC1
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Jan Haderka Assignee: Magnolia International
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

java.lang.NullPointerException
at info.magnolia.module.ModuleManagerImpl$3.exec(ModuleManagerImpl.java:363)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:402)
at info.magnolia.module.ModuleManagerImpl.executeStartupTasks(ModuleManagerImpl.java:356)
at info.magnolia.module.ModuleManagerImpl.startModules(ModuleManagerImpl.java:273)
at info.magnolia.module.ui.ModuleManagerWebUI$1.exec(ModuleManagerWebUI.java:104)
...



 Comments   
Comment by Magnolia International [ 12/Dec/07 ]

can't reproduce:

  • from what the stacktrace tells me, this would happen with a null version handler (retrieved from the registry), but if a version handler is not existing, an exception is thrown way earlier (when loading the model), and if a vh is not specified, then a Default or Legacy ModuleVersionHandler is instanciated and registered.
  • if the module class does not exist, then a CNFE is thrown (wrapped in a RuntimeException) later on startup, but this would be a scenario for MAGNOLIA-1670
  • if the module class does not exist and no vh is specified, an exception is thrown way earlier (when loading the model) - this is also a candidate scenario for MAGNOLIA-1670

If there's anything I overlooked, please reopen !

Generated at Mon Feb 12 03:31:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.