Hello there!
I'm with an error when I try to check-in an edited document on Google Docs [Alfresco Community 2017-07].
This is the first lines of alfresco.log:
org.springframework.extensions.webscripts.WebScriptException: 01270019
Caused by: java.lang.NullPointerException
Full log
org.springframework.extensions.webscripts.WebScriptException: 01270019 at org.alfresco.integrations.google.docs.webscripts.SaveContent.executeImpl(SaveContent.java:317) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64) at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210) at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2486) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at org.alfresco.integrations.google.docs.service.GoogleDocsServiceImpl.hasConcurrentEditors(GoogleDocsServiceImpl.java:2045) at sun.reflect.GeneratedMethodAccessor860.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy221.hasConcurrentEditors(Unknown Source) at org.alfresco.integrations.google.docs.webscripts.SaveContent.executeImpl(SaveContent.java:153) ... 37 more
And this is the error message I get on Alfresco Share:
Could anyone help me to solve this error?
Regards!
Solved! Go to Solution.
Hey Paolo! How are u?
I think I've found the solution, all you need to do is to specify 2 parameters in alfresco-global.properties.
I've added this lines at the end of configuration file:
googledocs.enabled=true integration.googleDocs.idleThresholdSeconds=<specify in ms the time to concurrent doc lock>
In my Alfresco I added:
googledocs.enabled=true integration.googleDocs.idleThresholdSeconds=5
If this does not work for you, try another parameter:
googledocs.enabled=true googledocs.idleThresholdSeconds=5
It works smooth for me.
Regards,
I have the same problem on alfresco 5.1.g
Hey Paolo! How are u?
I think I've found the solution, all you need to do is to specify 2 parameters in alfresco-global.properties.
I've added this lines at the end of configuration file:
googledocs.enabled=true integration.googleDocs.idleThresholdSeconds=<specify in ms the time to concurrent doc lock>
In my Alfresco I added:
googledocs.enabled=true integration.googleDocs.idleThresholdSeconds=5
If this does not work for you, try another parameter:
googledocs.enabled=true googledocs.idleThresholdSeconds=5
It works smooth for me.
Regards,
Hi @juliodobkovski,
Thanks for updating your thread with the answer that worked for you - very helpful! Let's hope it works for @PaoloP too.
Have a nice day
Tengo el mismo error, agregué las líneas indicas y no funciona. Nos complica trabajar en equipo. Tengo instalado Alfresco 5.1. Su ayuda urgente. Gracias
Hola @edtalla,
Cuando dice que agregó estas líneas en alfresco-global.properties, ¿reinició tomcat?
Si reincie el tomcat.. pero igual seguió persistiendo el error.
Hi @edtalla,
Vale. Comience un nuevo hilo - ya que esto está marcado como resuelto, podría ser ignorado. Incluya su version y entorn.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.