cancel
Showing results for 
Search instead for 
Did you mean: 

4.2 alfresco community. Context initialization failed, Please help~~

jimmy_huang
Champ in-the-making
Champ in-the-making
I am trying to migrate the alfresco system from Windows7 to Windows server 2003.
After I synchronized the mysql database structure and data from to win7 to Windows server 2003 and replace the alf_data on target server, I restart the the alfresco server ,then the error cames out. Can anyone help??!

09:12:46,937 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
09:12:47,015 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
09:12:47,078 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.7.0_07-b10; maximum heap size 682.688MB
09:12:47,078 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
java.lang.NullPointerException
   at java.lang.StringBuilder.<init>(StringBuilder.java:109)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl$BaseDescriptor.getVersion(DescriptorServiceImpl.java:551)
   at org.alfresco.repo.descriptor.DescriptorStartupLog.onBootstrap(DescriptorStartupLog.java:185)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   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)
3 REPLIES 3

abarisone
Star Contributor
Star Contributor
Hi,
I think the problem is related to the fact you're trying to migrate towards a OS versione that is not longer supported.
Try to install it on a Windows Server 2008 R2 as reported by compatibility matriz.

Regards,
Andrea

kaynezhang
World-Class Innovator
World-Class Innovator
you can configure the log4j.properties file and set log4j.logger.org.alfresco.repo.descriptor = info and trace the log file to see what is going on ,Maybe you are missing some configuration files.

rjohnson
Star Contributor
Star Contributor
Your maximum heap is is rather small, can you increase it? We did occasionally get context fails on a restart when we first started with Alfresco and found that tuning the JVM settings eliminated them.