Repo content model Unexpanded entity reference

Showing results for 
Search instead for 
Did you mean: 
Active Member

Repo content model Unexpanded entity reference

Alfresco Community - 5.2.0 (re21f2be5-b22)


In short, we have custom content models both bootstrapped and also in the repository - Data Dictionary/Models repo space. Our local development is running fine so must be isolated to the models in the repo. However, we cannot seem to be able to find the source of the problem, since:

  • The repo content models have not changed
  • We cannot seem to find which model it's complaining about
  • We have tried deleting the indexes and models cache

While everything was working fine, the latest deployment will fail to start Alfresco and things get corrupted. This has also happened with a new server, so need to figure it out.


We have enabled debugging to get some logging.

# Dictionary/Model debugging‍‍‍


When starting up Alfresco, the following errors are what we see (attached full logs). 

ERROR [web.context.ContextLoader] Context initialization failed org.alfresco.service.cmr.dictionary.DictionaryException: 10140018 Failed to parse model
Caused by: org.jibx.runtime.JiBXException: Unexpanded entity reference in text at (line 1, col 704)‍‍‍‍‍‍‍‍

There doesn't seem to be any reference to which model and again since they have not changed, why would they suddenly fail?

Right now need to get to the bottom of it. Has anyone run into this before? Any way of getting deeper logs to find the affected model so we can look at it?

EDIT: Installing fresh

When we install a fresh instance with the code. There are no issues, after using it, then restarting and deploy - the same issue occurs.

5 Replies
Alfresco Employee

Re: Repo content model Unexpanded entity reference

Probably it should be easier to guess what's happening if you provide your XML Content Model file.

Software Engineer in Alfresco Search Team.

Re: Repo content model Unexpanded entity reference


May you have an space in the first character of an xml file ? May you have some model without the proper XML header definition ?

May you find in SOLR some WARNING about some content model ? 



Active Member

Re: Repo content model Unexpanded entity reference

That is the problem, there are many currently in use. They are automatically created by our system - we would need to know which one. However, these are currently in use and working fine. Only when we deploy code and restart does it throw this error. 

Active Member

Re: Repo content model Unexpanded entity reference

As mentioned above, these models are running fine until the new deployment. Additionally, no models have changed in the deployment.

SOLR only throws the following:

2018-11-20 00:02:05,109 ERROR [org.alfresco.solr.tracker.AbstractTracker] Model tracking failedorg.alfresco.error.AlfrescoRuntimeException: 10200000 GetModelsDiff return status is 404 at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff( at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl( at org.alfresco.solr.tracker.ModelTracker.trackModels( at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync( at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore( at org.alfresco.solr.tracker.CoreWatcherJob.execute( at at org.quartz.simpl.SimpleThreadPool$
Active Member

Re: Repo content model Unexpanded entity reference

More information - if we install fresh. There are no issues.