AnsweredAssumed Answered

[SOLR] NamespaceException: URI has already been defined

Question asked by s_turner on Jun 11, 2014
Latest reply on Jun 11, 2014 by s_turner

I've defined a custom model and it's seems to all be working in Alfresco - my aspect is available to add and use, custom properties appear on content items and advanced search form, there are no errors in alfresco.log. Problem is SOLR search is refusing to index. In solr.log I just get the repeated error:

00:00:00,089 ERROR [org.quartz.core.JobRunShell] Job Solr.CoreTracker-alfresco threw an unhandled Exception:
org.alfresco.service.namespace.NamespaceException: URI quotall.model has already been defined
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.addURI(
   at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(
   at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(
   at org.alfresco.solr.AlfrescoSolrDataModel.putModel(
   at org.alfresco.solr.tracker.CoreTracker.loadModel(
   at org.alfresco.solr.tracker.CoreTracker.trackModels(
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(
   at org.quartz.simpl.SimpleThreadPool$

My customModel.xml file contains the definition of my model, (attached as customModel.txt). It's in the shared/classes/alfresco/extension folder and that's the only place I've made changes for my custom model. There are no other custom models defined.

I've attempted to reindex SOLR but that just gives this same error. I'm using Alfresco Community 4.2 and this custom model is the only change I've made to Alfresco after a standard install.

Anybody have any idea why SOLR is having this problem?