cancel
Showing results for 
Search instead for 
Did you mean: 

Solr throws exceptions after upgrade to 5.0.b

jbrucher
Champ in-the-making
Champ in-the-making
Hi,

I upgraded Alfresco 4.2.e to 5.0.b. After that there are many exceptions inside the solr.log.

What I did:

- Backup Database and alf_data (including the solr index)
- Installations of 5.0.b
- Testing the the new version
- In alfresco-global.properties, set index.subsystem.name=solr
- Roll in the Backup into the new version

Alfresco 5.0.b is working fine except the solr subsystem, here are the log messages (all the time there is something with the new property "facetable"):



09:14:08,667 WARN  [org.apache.solr.handler.component.SpellCheckComponent] No queryConverter defined, using default converter
09:14:11,825 WARN  [org.apache.solr.handler.component.SpellCheckComponent] No queryConverter defined, using default converter
09:16:32,567 WARN  [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out.
09:16:32,570 WARN  [org.alfresco.solr.tracker.CoreTracker] Tracking communication timed out.
09:17:28,127 ERROR [org.alfresco.solr.tracker.CoreTracker] Tracking failed
org.alfresco.service.cmr.dictionary.DictionaryException: 09290000 Failed to parse model
   at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:102)
   at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:88)
   at org.alfresco.solr.client.SOLRAPIClient.getModel(SOLRAPIClient.java:1023)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1905)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Expected "{http://www.alfresco.org/model/dictionary/1.0}index" end tag, found "{http://www.alfresco.org/model/dictionary/1.0}facetable" start tag (line 60, col 25)
   at org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:731)
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_30()
   at org.alfresco.repo.dictionary.JiBX_defaultM2Property_access.unmarshal()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_17()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_22()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_27()
   at org.alfresco.repo.dictionary.JiBX_defaultM2Type_access.unmarshal()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_7()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_9()
   at org.alfresco.repo.dictionary.JiBX_defaultM2Model_access.unmarshal()
   at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2757)
   at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
   at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:97)
   … 8 more
09:17:28,172 ERROR [org.alfresco.solr.tracker.CoreTracker] Tracking failed
org.alfresco.service.cmr.dictionary.DictionaryException: 09290001 Failed to parse model
   at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:102)
   at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:88)
   at org.alfresco.solr.client.SOLRAPIClient.getModel(SOLRAPIClient.java:1023)
   at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1905)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1227)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:513)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Expected "{http://www.alfresco.org/model/dictionary/1.0}index" end tag, found "{http://www.alfresco.org/model/dictionary/1.0}facetable" start tag (line 60, col 25)
   at org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:731)
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_30()
   at org.alfresco.repo.dictionary.JiBX_defaultM2Property_access.unmarshal()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_17()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_22()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_27()
   at org.alfresco.repo.dictionary.JiBX_defaultM2Type_access.unmarshal()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_7()
   at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_9()
   at org.alfresco.repo.dictionary.JiBX_defaultM2Model_access.unmarshal()
   at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2757)
   at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
   at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:97)
   … 8 more


This is repeating all the time…

Any suggestion are highly welcome!


Regards Johannes
4 REPLIES 4

ashort
Champ in-the-making
Champ in-the-making
I am experiencing similar issues with upgrading to 5.0.c. Did you solve this issue?

rjohnson
Star Contributor
Star Contributor
As moving from 4.x to 5.x changes the version of SOLR that is in use and probably changes the datamodel within Alfresco it would be advisable to delete your previous SOLR indexes and allow all new ones to be built. This may well take a while dependent upon the number of documents you have.

I have no direct experience but I would doubt SOLR 4 would react well to SOLR 1 indexes.

ashort
Champ in-the-making
Champ in-the-making
Hello,
Thanks for the suggestion regarding the indexes. Indeed I cleared the indexes when moving and recreated them with solr4.

There was still an issue in which documents which had the MLText metadata property would not be indexed. So far we have simply removed the MLText for now. This seems to allow the documents to be indexed and therefore searchable once again.

Thanks,
Andrew

sumeraxe
Champ in-the-making
Champ in-the-making
Thank you !
Okay , So in don't need to change anything
i'll try it again