cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade alfresco-4.0.d to 4.2.c problem

tom4
Champ in-the-making
Champ in-the-making
Hello, after upgrading alfresco from 4.0d to 4.2.c, i can't create workflows. Combobox with the types of workflows can't be opened. Evertime when i try to open combo i get that error in logs:


ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Exception from executeScript - redirecting to status template error: 00210215 Wrapped Exception (with status template): Namespace prefix itdwf is not mapped to a namespace URI
org.springframework.extensions.webscripts.WebScriptException: 00210215 Wrapped Exception (with status template): Namespace prefix itdwf is not mapped to a namespace URI
        at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
        at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
        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:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: org.alfresco.service.namespace.NamespaceException: Namespace prefix itdwf 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.repo.workflow.WorkflowQNameConverter.convertNameToQName(WorkflowQNameConverter.java:103)
        at org.alfresco.repo.workflow.WorkflowQNameConverter.convertNameToQName(WorkflowQNameConverter.java:85)
        at org.alfresco.repo.workflow.WorkflowQNameConverter.mapNameToQName(WorkflowQNameConverter.java:71)
        at org.alfresco.repo.workflow.WorkflowObjectFactory.getTaskTypeDefinition(WorkflowObjectFactory.java:409)
        at org.alfresco.repo.workflow.WorkflowObjectFactory.createTaskDefinition(WorkflowObjectFactory.java:209)
        at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.getTaskDefinition(ActivitiTypeConverter.java:155)
        at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:144)
        at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:311)
        at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:285)
        at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.filterByDomainAndConvert(ActivitiTypeConverter.java:99)
        at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.getValidWorkflowDefinitions(ActivitiWorkflowEngine.java:1187)
        at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.getDefinitions(ActivitiWorkflowEngine.java:581)
        at org.alfresco.repo.workflow.WorkflowServiceImpl.getDefinitions(WorkflowServiceImpl.java:296)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy68.getDefinitions(Unknown Source)
        at org.alfresco.repo.web.scripts.workflow.WorkflowDefinitionsGet.buildModel(WorkflowDefinitionsGet.java:52)
        at org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.executeImpl(AbstractWorkflowWebscript.java:80)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
        … 28 more






And every 5 seconds in my logs problem with solr:


First transaction was not found with the correct timestamp.
2013-01-23 08:50:00,040  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] SOLR has successfully connected to your repository  however the SOLR indexes and repository database do not match.
2013-01-23 08:50:00,040  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] If this is a new or rebuilt database you SOLR indexes also need to be re-built to match the database.
2013-01-23 08:50:00,040  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] You can also check your SOLR connection details in solrcore.properties.
2013-01-23 08:50:00,040  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-2] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 00233595 Initial transaction not found with correct timestamp





Does anybody know how to resolve problem with workflows?

My upgrading process:
1. create dump of 4.0 version
2. install new 4.2, start and stop
3. restore dump
4. restore configs
4 REPLIES 4

loftux
Star Contributor
Star Contributor
It looks like you are missing a data model, itdwf after upgrade. It was probably installed by a module you no longer have, or is one custom data model created by you. Nodede exist in your repository that use this namespace, therefor solr cannot index them
Add that model and it should be fine.
And if it is still complaining, you may need to purge your solr index, remove the index and the data models in solr/archive-SpacesStore/alfrescoModels and solr/workspace-SpacesStore/alfrescoModels

tom4
Champ in-the-making
Champ in-the-making
Loftux, thank you for your answer! You are right! I have installed alvex module in old version. But now i don't want install it. I try refresh my lucene indexes, but error is still the same…

avasyukov
Champ in-the-making
Champ in-the-making
Let me guess - you had Alvex 1.2.x in your Alfresco 4.0.d installation.

You have two options now:
<ol>
<li>Remove nodes in the repo that use Alvex models. After it you can remove models safely. Your issue is not about just SOLR indexes themselves - you have nodes in the repository that still use Alvex models.</li>
<li>Install alvex-*-compat-* packages as described in http://docs.alvexcore.com/en-US/Alvex/1.3/html/Admin_Guide/ch06s03.html These packages contain legacy Alvex 1.2.x models only and do not contain active Alvex modules. They are meant exactly for the case if you want to remove Alvex but do not want to clean up the repo.</li>
</ol>

tom4
Champ in-the-making
Champ in-the-making
Thank You for your great answer!
Did you know, how to remove nodes, without writing code?