Migrating alfresco : A namespace prefix is not registered for uri http://www.alfresco.org/model/rmcustom/1.0

cancel
Showing results for 
Search instead for 
Did you mean: 
oounoughi
Partner

Migrating alfresco : A namespace prefix is not registered for uri http://www.alfresco.org/model/rmcustom/1.0

Hi,

To upgrade from 4.0.d to Community-201704 (5.2), I installed an new 4.0.d in new server and perform migration of contentstore and database, but when start my new alfresco server I have this error:

catalina.out
INFO: Server startup in 36126 ms
2017-08-10 16:32:00,277  INFO  [alfresco.util.OpenOfficeConnectionTester] [DefaultScheduler_Worker-4] The OpenOffice connection was re-established.
 10 août 2017 16:32:54 org.alfresco.solr.tracker.CoreTracker trackRepository
GRAVE: Tracking failed
org.alfresco.service.namespace.NamespaceException: Namespace prefix {http is not mapped to a namespace URI
    at org.alfresco.service.namespace.QName.createQName(QName.java:99)
    at org.alfresco.service.namespace.QName.createQName(QName.java:121)
    at org.alfresco.solr.client.SOLRAPIClient$SOLRTypeConverter$10.convert(SOLRAPIClient.java:1167)
    at org.alfresco.solr.client.SOLRAPIClient$SOLRTypeConverter$10.convert(SOLRAPIClient.java:1164)
    at org.alfresco.service.cmr.repository.datatype.TypeConverter.convert(TypeConverter.java:112)
    at org.alfresco.solr.client.SOLRAPIClient$SOLRTypeConverter.convert(SOLRAPIClient.java:1182)
    at org.alfresco.solr.client.SOLRAPIClient$SOLRDeserializer.deserializeValue(SOLRAPIClient.java:1200)
    at org.alfresco.solr.client.SOLRAPIClient.getNodesMetaData(SOLRAPIClient.java:775)
    at org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:1879)
    at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1410)
    at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
    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)
2017-08-10 16:32:55,694  ERROR [extensions.webscripts.AbstractRuntime] [http-8443-4] Exception from executeScript - redirecting to status template error: 07100002 Wrapped Exception (with status template): 07100007 Problem converting to Freemarker
 org.springframework.extensions.webscripts.WebScriptException: 07100002 Wrapped Exception (with status template): 07100007 Problem converting to Freemarker
    at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:970)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
    at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:393)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:462)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:500)
    at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:275)
    at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372)
    at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
    at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 07100007 Problem converting to Freemarker
    at org.alfresco.repo.web.scripts.solr.NodesMetaDataGet$1.handleNodeMetaData(NodesMetaDataGet.java:198)
    at org.alfresco.repo.solr.SOLRTrackingComponentImpl$NodeMetaDataQueryRowHandler.processResult(SOLRTrackingComponentImpl.java:879)
    at org.alfresco.repo.solr.SOLRTrackingComponentImpl.getNodesMetadata(SOLRTrackingComponentImpl.java:735)
    at sun.reflect.GeneratedMethodAccessor437.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:65)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy142.getNodesMetadata(Unknown Source)
    at org.alfresco.repo.web.scripts.solr.NodesMetaDataGet.executeImpl(NodesMetaDataGet.java:181)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.executeImpl(DeclarativeWebScript.java:235)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
    ... 25 more
Caused by: org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://www.alfresco.org/model/rmcustom/1.0
    at org.alfresco.service.namespace.QName.toPrefixString(QName.java:414)
    at org.alfresco.repo.web.scripts.solr.SOLRSerializer$SOLRTypeConverter$2.convert(SOLRSerializer.java:231)
    at org.alfresco.repo.web.scripts.solr.SOLRSerializer$SOLRTypeConverter$2.convert(SOLRSerializer.java:228)
    at org.alfresco.service.cmr.repository.datatype.TypeConverter.convert(TypeConverter.java:112)
    at org.alfresco.repo.web.scripts.solr.SOLRSerializer.serializeToJSONString(SOLRSerializer.java:108)
    at org.alfresco.repo.web.scripts.solr.SOLRSerializer.serialize(SOLRSerializer.java:170)
    at org.alfresco.repo.web.scripts.solr.NodesMetaDataGet$FreemarkerNodeMetaData.<init>(NodesMetaDataGet.java:294)
    at org.alfresco.repo.web.scripts.solr.NodesMetaDataGet$1.handleNodeMetaData(NodesMetaDataGet.java:193)
    ... 37 more
10 août 2017 16:32:55 org.alfresco.solr.tracker.CoreTracker trackRepository
GRAVE: Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 07100000 GetNodeMetaData return status is 500
    at org.alfresco.solr.client.SOLRAPIClient.getNodesMetaData(SOLRAPIClient.java:721)
    at org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:1879)
    at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1410)
    at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
    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)

I tried whit lucene, have also error after start, and this warning during indexation : " WAR  A namespace prefix is not registered for uri http://www.alfresco.org/model/rmcustom/1.0 "

I double checked all my process, I always have the same error

Database : mySql

Alfresco Version : Community 4.0.d

Regards,

3 Replies
angelborroy
Alfresco Employee

Re: Migrating alfresco : A namespace prefix is not registered for uri http://www.alfresco.org/model/rmcustom/1.0

Probably you missed to install some customisation. The one including a model with namespace http://www.alfresco.org/model/rmcustom/1.0 is the one Alfresco is missing.

Hyland Developer Evangelist
cesarista
Customer

Re: Migrating alfresco : A namespace prefix is not registered for uri http://www.alfresco.org/model/rmcustom/1.0

Maybe it is not related, but if in your original setup you had installed the RM module, you need it in the migration plan of the new version. This applies to any custom content models that you used previously. Take into consideration that many content models may be part of third party addons or custom extensions. So if you are migrating, you need these content models in the new instance.

Regards.

--C.

oounoughi
Partner

Re: Migrating alfresco : A namespace prefix is not registered for uri http://www.alfresco.org/model/rmcustom/1.0

Hi, thank you for your replays

It was a model deployed dynamically an removed from share and I found the model (in contentstore) with this query :

select alf_content_url.content_url from alf_node     left join alf_qname on alf_node.type_qname_id = alf_qname.id     left join alf_node_properties on alf_node_properties.node_id = alf_node.id     join alf_content_data on alf_content_data.id = alf_node_properties.long_value     left join alf_content_url on alf_content_url.id = alf_content_data.content_url_id where     alf_qname.local_name = 'dictionaryModel'     and alf_content_url.content_url is not null