cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 4.2.c upgrade to 5.0.c

jalu
Champ in-the-making
Champ in-the-making
Hi,

I'm very new to Alfresco and seldom uses it. I've been issued with the task of upgrading Alfresco from 4.2.c to 5.0.c.

On one server I tried it everything looks okay. On the other I can't preview any documents. No idea why on the one server it shows fine and the other not.

In my alfresco.log file I have a few errors. How do I solve these. Any suggestions on the preview?

09:19:24,542 ERROR [org.apache.solr.core.SolrCore] [pool-1-thread-1] java.lang.NullPointerException
at org.alfresco.solr.AlfrescoSolrEventListener.newSearcher(AlfrescoSolrEventListener.java:182)
at org.apache.solr.core.SolrCore$3.call(SolrCore.java:1146)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

09:19:26,819 ERROR [org.apache.solr.core.SolrCore] [pool-3-thread-1] java.lang.NullPointerException
at org.alfresco.solr.AlfrescoSolrEventListener.newSearcher(AlfrescoSolrEventListener.java:182)
at org.apache.solr.core.SolrCore$3.call(SolrCore.java:1146)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper] In order to support dynamic setting of transformer options, Spring XML configuration
09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper] is no longer used to initialise these options.
09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper]
09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper] Your system appears to contains custom Spring configuration which should be replace by
09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper] the following Alfresco global properties. In the case of the Enterprise edition these
09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper] values may then be dynamically changed via JMX.
09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper]
09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper] content.transformer.wkhtmltopdf.extensions.html.pdf.priority=50
09:20:32,901 ERROR [org.alfresco.repo.content.transform.ContentTransformerHelper] content.transformer.wkhtmltopdf.extensions.html.pdf.supported=true
09:20:32,901 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopping 'Transformers' subsystem, ID: [Transformers, default]
09:20:32,901 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopped 'Transformers' subsystem, ID: [Transformers, default]
09:20:32,901 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Transformers' subsystem, ID: [Transformers, default]
09:20:33,072 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
09:20:33,104 ERROR [intecon.stargate.InteconUsersConstraint] Person service is now set
09:20:33,104 ERROR [intecon.stargate.InteconUsersConstraint] Search service is now set
09:20:33,213 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
09:20:33,213 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
09:20:37,596 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
09:20:37,643 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted] complete
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
What is the upgrade path that you have followed?

You should follow the following path:

4.2.c->4.2.d->4.2.e->4.2.f->5.0.a->5.0.b->5.0.c

Hope this helps.

jalu
Champ in-the-making
Champ in-the-making
Thanks for the reply - I basically upgraded directly from 4.2c -> 5.0c. Choose solr1, unchoose solr4 and
unchoose Sharepoint.

I used this article as my base: http://geekwithattitude.blogspot.com/

Then basically I used winmerge to compare a clean install to our current live version.

I copied and replaced:

….\tomcat\shared\classes\alfresco\web-extension (Copied and replaced old version)
….\tomcat\shared\classes\alfresco\extension     (Copied and replaced old version)
….\tomcat\conf\catalina.properties              (Copied and replaced old version)
….\tomcat\shared\classes\alfresco-global.properties (Changed the relevant url's etc.)
….\tomcat\webapps\share\WEB-INF\classes\log4j.properties (Copied over)
….\tomcat\work\Catalina\localhost\solr\WEB-INF    (Copy whole folder)
….\tomcat\webapps\share\js\forms-runtime-min.js and forms-runtime.js (Copy files)
….\tomcat\webapps\share\jquery\jquery-1.9.1.js and jquery-1.9.1.min.js (Copy files)
….\tomcat\work\Catalina\localhost\alfresco\org (Copy whole folder)
….\tomcat\work\Catalina\localhost\_ (Copy whole folder)
….\tomcat\shared\lib (Copy all "in-house" files)
….\tomcat\webapps\alfresco\web-inf\lib (Copy all "in-house" files)
….\tomcat\webapps\share\WEB-INF\lib\ (Copy all "in-house" files)
….\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\admin\usage.lib.ftl (Deleted this file - alfresco could not log in)
….\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\dashlets\ (Copy all "in-house" files)