AnsweredAssumed Answered

Google docs en servidor sin acceso a Internet.

Question asked by carlosjl on Dec 3, 2015
Latest reply on Dec 9, 2015 by carlosjl
Hola!!.
En la actualidad, el entorno de producción que he desplegado está basado en alf. CE 5.0.c y en las últimas semanas me he encontrado con un problema al intentar desplegar la integración con google docs.

Después de diversas pruebas he comprobado que el servidor, precisa de tener acceso directo a internet. Sino, cuando lanzas la creación de un documento de google docs da el siguiente error:

ava.net.SocketInputStream.read(Unknown Source)
   java.net.SocketInputStream.read(Unknown Source)
   sun.security.ssl.InputRecord.readFully(Unknown Source)
   sun.security.ssl.InputRecord.read(Unknown Source)
   sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
   sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
   sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
   sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
   sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
   sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
   com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77)
   com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965)
   com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283)
   com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest.execute(GoogleAuthorizationCodeTokenRequest.java:158)
   org.alfresco.integrations.google.docs.service.GoogleDocsServiceImpl.completeAuthentication(GoogleDocsServiceImpl.java:744)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   java.lang.reflect.Method.invoke(Unknown Source)
   org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
   org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:64)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)
   org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:67)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   com.sun.proxy.$Proxy197.completeAuthentication(Unknown Source)
   org.alfresco.integrations.google.docs.webscripts.CompleteAuth.executeImpl(CompleteAuth.java:64)
   org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
   org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:470)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:532)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:600)
   org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:380)
   org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:261)
   org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
   org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
   org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
   org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)
   org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)
   java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   java.lang.Thread.run(Unknown Source)

¿Sabía alguien decirme si es posbible pasarle el parámetro de un proxy?.


Un saludo y gracias por la colaboración.

Outcomes