cancel
Showing results for 
Search instead for 
Did you mean: 

A namespace prefix is not registered for uri xxx

zladuric
Champ on-the-rise
Champ on-the-rise
Hi,

I am using Alfresco 4.2.d Community, and I've made some changes to my custom model.

Now, the changes are in for a couple of weeks now, but I've just noticed this in the log, it happens often:
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri bv.model


What could that mean?
One potential issue is that at the first try, I just had this in my model file:
<namespace uri="bv.model" prefix="bv"/>


Now, after the changes, I have something slightly different:
<namespace uri="http://www.mydomain.com/model/dictionary/1.0" prefix="bv"/>

<em>(www.mydomain.com is altered here)</em>

What is Solr trying to tell me?

And further more, how to stop getting that message in the log?
7 REPLIES 7

mitpatoliya
Star Collaborator
Star Collaborator
Have you tried after changing the model file name? also change the context file accordingly.

zladuric
Champ on-the-rise
Champ on-the-rise
What should I name my file then?

mitpatoliya
Star Collaborator
Star Collaborator
Name could be anything but the point is because you have same model name it will consider it as same model file and its previous version is also being loaded So my assumption is if you completely rename the model file name and also change uri(which you have already done) and prefix it should not look for old namespace.

Ok, thanks, I can give it a shot.

Although, two things confuse me here.
For one, I thought that if I change the model, the new version will automatically be deployed. Does this mean that since I changed the namespace, I should also change the name of the file?

And second thing, when you see that the previous model is being loaded too, do you mean by solr? Or by Alfresco?

zladuric
Champ on-the-rise
Champ on-the-rise
Well, in any case, it didn't help. I still get the messages in the log.

davidbalt
Champ in-the-making
Champ in-the-making
This is affecting me as well.

kaynezhang
World-Class Innovator
World-Class Innovator
You should edit Model name instead of model file name, Whether a model will automatically be deployed is acorrding model name not file name.
Of cause the model name you changed should not already exist.
<strong>
<model name="app:applicationmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
</strong>