Errror when check-ing Google Docs document [java.lang.NullPointerException]

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump to solution

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:

ERROR.png

Could anyone help me to solve this error?

Regards!

1 Solution

Accepted Solutions
Highlighted
Member II

Re: Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump 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,

View solution in original post

7 Replies
Highlighted
Member II

Re: Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump to solution

I have the same problem on alfresco 5.1.g

Highlighted
Member II

Re: Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump 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,

View solution in original post

Highlighted
Community Manager
Community Manager

Re: Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump to solution

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 Smiley Happy 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
Highlighted
Member II

Re: Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump to solution

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

 

 

Highlighted
Community Manager
Community Manager

Re: Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump to solution

Hola @edtalla,

Cuando dice que agregó estas líneas en alfresco-global.properties, ¿reinició tomcat?

 

 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
Highlighted
Member II

Re: Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump to solution

Si reincie el tomcat.. pero igual seguió persistiendo el error.

Highlighted
Community Manager
Community Manager

Re: Errror when check-ing Google Docs document [java.lang.NullPointerException]

Jump to solution

Hi @edtalla,

Vale. Comience un nuevo hilo - ya que esto está marcado como resuelto, podría ser ignorado. Incluya su version y entorn.

 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!