AnsweredAssumed Answered

Error after adding custom model

Question asked by blacksylo on Jan 12, 2016
Latest reply on Jan 28, 2016 by blacksylo
Hi all!

I had an alfresco setup with several custom types and everything was working smoothly, then added another type, but Alfresco couldnt start :C.

Then I erased the newType.xml and Alfresco still couldnt start :'C.

Now I have tried removing and changing all the other types that were there before but with no success to make Alfresco start again.

So I went to the logs:


INFO: Server startup in 204311 ms
2016-01-12 17:42:40,006  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-1] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 00120009 Failed to compile model dl:datalistmodel
        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:108)
        at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:163)
        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:266)
        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(DictionaryDAOImpl.java:259)
        at org.alfresco.solr.AlfrescoSolrDataModel.putModel(AlfrescoSolrDataModel.java:1173)
        at org.alfresco.solr.SolrInformationServer.putModel(SolrInformationServer.java:2849)
        at org.alfresco.solr.tracker.ModelTracker.loadModel(ModelTracker.java:516)
        at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:138)
        at org.alfresco.solr.tracker.ModelTracker.<init>(ModelTracker.java:85)
        at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
        at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.namespace.NamespaceException: URI http://www.alfresco.org/model/dictionary/1.0 cannot be imported as it is not defined (with prefix d
        at org.alfresco.repo.dictionary.CompiledModel.createLocalPrefixResolver(CompiledModel.java:206)
        at org.alfresco.repo.dictionary.CompiledModel.constructDefinitions(CompiledModel.java:130)
        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:88)
        … 12 more
2016-01-12 17:42:40,008  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-1] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 00120009 Failed to compile model dl:datalistmodel]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 00120009 Failed to compile model dl:datalistmodel
        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:108)
        at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:163)
        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:266)
        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(DictionaryDAOImpl.java:259)
        at org.alfresco.solr.AlfrescoSolrDataModel.putModel(AlfrescoSolrDataModel.java:1173)
        at org.alfresco.solr.SolrInformationServer.putModel(SolrInformationServer.java:2849)
        at org.alfresco.solr.tracker.ModelTracker.loadModel(ModelTracker.java:516)
        at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:138)
        at org.alfresco.solr.tracker.ModelTracker.<init>(ModelTracker.java:85)
        at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
        at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        … 1 more
Caused by: org.alfresco.service.namespace.NamespaceException: URI http://www.alfresco.org/model/dictionary/1.0 cannot be imported as it is not defined (with prefix d
        at org.alfresco.repo.dictionary.CompiledModel.createLocalPrefixResolver(CompiledModel.java:206)
        at org.alfresco.repo.dictionary.CompiledModel.constructDefinitions(CompiledModel.java:130)
        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:88)
        … 12 more
2016-01-12 17:43:00,006  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-2] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 00120010 Failed to compile model dl:datalistmodel
        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:108)
        at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:163)
        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:266)
        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(DictionaryDAOImpl.java:259)
        at org.alfresco.solr.AlfrescoSolrDataModel.putModel(AlfrescoSolrDataModel.java:1173)
        at org.alfresco.solr.SolrInformationServer.putModel(SolrInformationServer.java:2849)
        at org.alfresco.solr.tracker.ModelTracker.loadModel(ModelTracker.java:516)
        at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:138)
        at org.alfresco.solr.tracker.ModelTracker.<init>(ModelTracker.java:85)
        at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
        at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.namespace.NamespaceException: URI http://www.alfresco.org/model/dictionary/1.0 cannot be imported as it is not defined (with prefix d
        at org.alfresco.repo.dictionary.CompiledModel.createLocalPrefixResolver(CompiledModel.java:206)
        at org.alfresco.repo.dictionary.CompiledModel.constructDefinitions(CompiledModel.java:130)
        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:88)
        … 12 more
2016-01-12 17:43:00,007  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-2] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 00120010 Failed to compile model dl:datalistmodel]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 00120010 Failed to compile model dl:datalistmodel
        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:108)
        at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:163)
        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:266)
        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(DictionaryDAOImpl.java:259)
        at org.alfresco.solr.AlfrescoSolrDataModel.putModel(AlfrescoSolrDataModel.java:1173)
        at org.alfresco.solr.SolrInformationServer.putModel(SolrInformationServer.java:2849)
        at org.alfresco.solr.tracker.ModelTracker.loadModel(ModelTracker.java:516)
        at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:138)
        at org.alfresco.solr.tracker.ModelTracker.<init>(ModelTracker.java:85)
        at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
        at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        … 1 more
Caused by: org.alfresco.service.namespace.NamespaceException: URI http://www.alfresco.org/model/dictionary/1.0 cannot be imported as it is not defined (with prefix d
        at org.alfresco.repo.dictionary.CompiledModel.createLocalPrefixResolver(CompiledModel.java:206)
        at org.alfresco.repo.dictionary.CompiledModel.constructDefinitions(CompiledModel.java:130)
        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:88)
        … 12 more


I dont really know what to do now, hope someone can help me, thanks in advance!

Outcomes