[MAGNOLIA-4842] Don't fail with an obscure NPE when the version's repository isn't configured propertly Created: 14/Feb/13 Updated: 10/Mar/21 Resolved: 10/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 4.5.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Unassigned |
| Resolution: | Outdated | 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
|
| Description |
|
When configuring Jackrabbit, users sometimes make the mistake of not configuring the schemaObjectPrefix properly for the Versioning PM. They might for example copy paste a snippet for the regular PM which includes <param name="schemaObjectPrefix" value="${wsp.name}_"/>. When this happens, startup fails miserably - it should still fail, but a more specific and explicit message would help ! com.google.inject.CreationException: Guice creation errors:
1) Error injecting constructor, java.lang.NullPointerException
at info.magnolia.cms.core.version.VersionManager.<init>(VersionManager.java:65)
at info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindImplementation(GuiceComponentConfigurationModule.java:155)
while locating info.magnolia.cms.core.version.VersionManager
Caused by: java.lang.NullPointerException
at info.magnolia.cms.core.version.BaseVersionManager$1.exec(BaseVersionManager.java:126)
at info.magnolia.cms.core.version.BaseVersionManager$1.exec(BaseVersionManager.java:121)
at info.magnolia.cms.security.JCRSessionOp.exec(JCRSessionOp.java:69)
at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:403)
(see complete stacktrace in attachement)
2) Error injecting constructor, java.lang.NullPointerException
at info.magnolia.freemarker.FreemarkerHelper.<init>(FreemarkerHelper.java:91)
at info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindImplementation(GuiceComponentConfigurationModule.java:155)
while locating info.magnolia.freemarker.FreemarkerHelper
Caused by: java.lang.NullPointerException
at info.magnolia.freemarker.FreemarkerHelper.<init>(FreemarkerHelper.java:113)
|