[MGNLEESOLR-135] Magnolia 6.1 DataIndexer not initialized Created: 11/Jul/19 Updated: 02/Apr/20 Resolved: 29/Jul/19 |
|
| Status: | Closed |
| Project: | Solr Search Provider |
| Component/s: | None |
| Affects Version/s: | 5.2.1 |
| Fix Version/s: | 5.2.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Thomas Peintner | Assignee: | Milan Divilek |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 1h | ||
| Time Spent: | 28m | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| 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: | |||||||||||||
| Epic Link: | Support | ||||||||||||
| Sprint: | Release 6.1.1 | ||||||||||||
| Story Points: | 3 | ||||||||||||
| Description |
|
Since the upgrade from Magnolia 6.0 to 6.1 it is not possible to initialize the DataIndexer in the magnolia-content-indexer module -> the whole module is not starting because of this failure. DataIndexer throws a NullPointerException in line 70. The SystemContentWrapper object is null but the fields are all set in the IndexerConfig object. 2019-07-22 14:02:43,668 INFO info.magnolia.module.ModuleManagerImpl : Stopping module content-indexer 2019-07-22 14:02:43,674 INFO info.magnolia.module.ModuleManagerImpl : Starting module content-indexer 2019-07-22 14:02:43,686 ERROR info.magnolia.event.SimpleEventBus : Exception caught when dispatching info.magnolia.module.StartModuleEvent with info.magnolia.module.ModuleManagerImpl$$Lambda$318/971779853 eventHandler. java.lang.NullPointerException: null at info.magnolia.module.indexer.DataIndexer.init(DataIndexer.java:70) ~[magnolia-content-indexer-5.2.1.jar:?] at info.magnolia.module.indexer.DataIndexerFactory.init(DataIndexerFactory.java:72) ~[magnolia-content-indexer-5.2.1.jar:?] at info.magnolia.module.indexer.ContentIndexerModule.start(ContentIndexerModule.java:77) ~[magnolia-content-indexer-5.2.1.jar:?] at info.magnolia.module.ModuleManagerImpl.startModule(ModuleManagerImpl.java:390) ~[magnolia-core-6.1.jar:?] at info.magnolia.module.ModuleManagerImpl.lambda$startModules$0(ModuleManagerImpl.java:355) ~[magnolia-core-6.1.jar:?] at info.magnolia.module.StartModuleEvent.dispatch(StartModuleEvent.java:52) ~[magnolia-core-6.1.jar:?] at info.magnolia.module.StartModuleEvent.dispatch(StartModuleEvent.java:42) ~[magnolia-core-6.1.jar:?] at info.magnolia.event.SimpleEventBus.fireEvent(SimpleEventBus.java:75) ~[magnolia-core-6.1.jar:?] at info.magnolia.config.module.ModuleMap2BeanTransformer.lambda$transform$1(ModuleMap2BeanTransformer.java:94) ~[magnolia-configuration-6.1.jar:?] at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) ~[magnolia-core-6.1.jar:?] at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:356) ~[magnolia-core-6.1.jar:?] at info.magnolia.config.module.ModuleMap2BeanTransformer.transform(ModuleMap2BeanTransformer.java:90) ~[magnolia-configuration-6.1.jar:?] at info.magnolia.config.source.jcr.JcrConfigurationSource.newProvider(JcrConfigurationSource.java:189) ~[magnolia-configuration-6.1.jar:?] at info.magnolia.config.module.ModuleJcrConfigurationSource.reload(ModuleJcrConfigurationSource.java:110) ~[magnolia-configuration-6.1.jar:?] at info.magnolia.config.module.ModuleJcrConfigurationSource.reload(ModuleJcrConfigurationSource.java:96) ~[magnolia-configuration-6.1.jar:?] at info.magnolia.observation.DeferringEventListener$ObservationBasedDelayedExecutor$1.run(DeferringEventListener.java:102) [magnolia-core-6.1.jar:?] at info.magnolia.cms.util.DelayedExecutor$RunnableWrapper.run(DelayedExecutor.java:103) [magnolia-core-6.1.jar:?] at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source) [concurrent-1.3.4.jar:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181] |
| Comments |
| Comment by Ronald Kerstens [ 22/Jul/19 ] |
|
We are experiencing the same issue in our project: the magnolia-content-indexer module is not working anymore after upgrading from 6.0 to 6.1 preventing SOLR to work. |
| Comment by Richard Gange [ 22/Jul/19 ] |
|
After some investigation the problem is related to the indexed property. Since SystemContentWrapper is never created so we are unable to check the value of the property. SystemContentWrapper is deprecated so I tried with SystemNodeWrapper but hit the same error. |
| Comment by Richard Gange [ 23/Jul/19 ] |
|
Hello tpeintner and ronald.kerstens, I put a fix for this on a branch called HTH |