cancel
Showing results for 
Search instead for 
Did you mean: 

GoogleDocs failed to start in 5.0.b

mnemonic
Champ on-the-rise
Champ on-the-rise
After upgrading to Alfresco CE 5.0.b, GoogleDocs (2.0.7) failed to start. It produces the following error:

23:03:16,323 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'googledocs' subsystem, ID: [googledocs, v2]
23:03:16,353 WARN  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'googledocs' subsystem, ID: [googledocs, v2] failed
java.lang.IllegalArgumentException: Cannot merge with object of type [class org.springframework.beans.factory.config.RuntimeBeanReference]
        at org.springframework.beans.factory.support.ManagedMap.merge(ManagedMap.java:114)
        at org.springframework.beans.MutablePropertyValues.mergeIfRequired(MutablePropertyValues.java:222)
        at org.springframework.beans.MutablePropertyValues.addPropertyValue(MutablePropertyValues.java:170)
        at org.springframework.beans.MutablePropertyValues.addPropertyValues(MutablePropertyValues.java:139)
        at org.springframework.beans.factory.support.AbstractBeanDefinition.overrideFrom(AbstractBeanDefinition.java:311)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1185)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1125)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1111)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:352)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:437)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:624)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:809)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:991)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:530)
        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:334)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)
        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:649)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
23:03:16,356 ERROR [org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean] [localhost-startStop-1] Error auto-starting subsystem
java.lang.IllegalArgumentException: Cannot merge with object of type [class org.springframework.beans.factory.config.RuntimeBeanReference]
        at org.springframework.beans.factory.support.ManagedMap.merge(ManagedMap.java:114)
        at org.springframework.beans.MutablePropertyValues.mergeIfRequired(MutablePropertyValues.java:222)
        at org.springframework.beans.MutablePropertyValues.addPropertyValue(MutablePropertyValues.java:170)
        at org.springframework.beans.MutablePropertyValues.addPropertyValues(MutablePropertyValues.java:139)
        at org.springframework.beans.factory.support.AbstractBeanDefinition.overrideFrom(AbstractBeanDefinition.java:311)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1185)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1125)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1111)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:352)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:437)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:624)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:809)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:991)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:530)
        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:334)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)
        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:649)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

Did I miss something?
11 REPLIES 11

rshariff
Champ in-the-making
Champ in-the-making
I'm seeing the same error on a default install of 5.0b.  Any resolution to this?

mkpelletier
Champ in-the-making
Champ in-the-making
Same problem here.  I did notice several threads of a similar vein back in the 4.2x versions.  These were related to changes within the Google Docs api's.  I have also seen a few comments about moving to Google Drive implementation instead, but my brand new shiny 5.0b with the google docs amp 2.0.7 doesn't work.

I would love to roll out our Alfresco Share site, but with broken features, it creates a bad impression.  Does anyone have a clue about how to fix this or whether the feature is being deprecated?  FWIW, I would also be happy if we could use libreoffice to edit via the web page rather than just view the document.  Surely this is possible, no?

mpelper
Champ in-the-making
Champ in-the-making
Same thing here.

d_hoang
Champ in-the-making
Champ in-the-making
seam to be fixed but don't know how to get the news realease.
https://issues.alfresco.com/jira/browse/GOOGLEDOCS-264

mnemonic
Champ on-the-rise
Champ on-the-rise
It's not. It is works fine with 5.0.a. This problem occurs with 5.0.b. I also tried a nightly build with the same result.

d_hoang
Champ in-the-making
Champ in-the-making
I've just tried to install Alfresco Google Docs Modules. It seams to work with my Alfresco 5.0.b installation.
I have done these steps:

(1) Download alfresco-googledocs-repo-2.0.8.amp and alfresco-googledocs-share-2.0.8.amp from https://artifacts.alfresco.com/nexus/#nexus-search;gav~~alfresco-google*~2.0.8~~

copy alfresco-googledocs-repo-2.0.8.amp to /opt/alfresco-5.0.b/amps
copy alfresco-googledocs-share-2.0.8.amp to /opt/alfresco-5.0.b/amps_share

(2) Uninstall Google Docs Integration Module 2.0.7
root@myserver:/opt/alfresco-5.0.b#./java/bin/java -jar ./bin/alfresco-mmt.jar uninstall org.alfresco.integrations.google.docs ./tomcat/webapps/alfresco.war

(3) Uninstall Alfresco / Google Docs Share Module 2.0.7
root@myserver:/opt/alfresco-5.0.b#./java/bin/java -jar ./bin/alfresco-mmt.jar uninstall org.alfresco.integrations.share.google.docs ./tomcat/webapps/share.war

(4) Install new modules
root@myserver:/opt/alfresco-5.0.b#:/bin/apply_amps.sh

(5) Restart Alfresco

Hope that helps you.

nwheatley
Champ in-the-making
Champ in-the-making
I just upgraded to the 5.0.b release and had the same issue. Updating the Google Doc amps to the 2.0.8 release resolved this for me as well.

mkpelletier
Champ in-the-making
Champ in-the-making
The above worked for me too.  Sort of.  Rather than using the apply_amps.sh script, I installed the amps manually.  If  you have any other amps in your amps folder, they will also get applied.  To apply just the google-docs amps, you need to do the following (make sure alfresco is not running):

(1) put the respective amps in their folders
(2) Uninstall existing Google Docs integration according to the above instructions
(3) ./java/bin/java -jar ./bin/alfresco-mmt.jar install ./amps/alfresco-googledocs-repo-2.0.8.amp ./tomcat/webapps/alfresco.war
(4) ./java/bin/java -jar ./bin/alfresco-mmt.jar install ./amps_share/alfresco-googledocs-share-2.0.8.amp ./tomcat/webapps/share.war
(5) rm -RI ./tomcat/webapps/alfresco/
(6) rm -RI ./tomcat/webapps/share/

restart alfresco: ./alfresco.sh start

mukata69
Champ in-the-making
Champ in-the-making
This works for me too, thank you "d.hoang".