AnsweredAssumed Answered

Erreur intégration Google Docs

Question asked by cpillette on Oct 23, 2013
Latest reply on Oct 31, 2013 by cpillette
Bonjour,

J'ai installé la version Linux de Community 4.2.c sur un serveur ubuntu.
J'ai installé la vesion 2.0.3 de Google Docs.
Lorsque j'essaie de créer un contenu de type Google Docs, j'ai l'erreur suivante :

Web Script Status 500 - Internal Error

The Web Script /alfresco/s/googledocs/completeauth has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.
   
Message:   09230002 Wrapped Exception (with status template): I/O error: accounts.google.com: Nom ou service inconnu; nested exception is java.net.UnknownHostException: accounts.google.com: Nom ou service inconnu
   
Exception:   java.net.UnknownHostException - accounts.google.com: Nom ou service inconnu
   
   java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
   java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
   java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258)
   java.net.InetAddress.getAllByName0(InetAddress.java:1211)
   java.net.InetAddress.getAllByName(InetAddress.java:1127)
   java.net.InetAddress.getAllByName(InetAddress.java:1063)
   org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:242)
   org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:130)
   org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
   org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
   org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)
   org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
   org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
   org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
   org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
   org.springframework.social.support.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:81)
   org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52)
   org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:438)
   org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)
   org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:279)
   org.springframework.social.oauth2.OAuth2Template.postForAccessGrant(OAuth2Template.java:152)
   org.springframework.social.oauth2.OAuth2Template.exchangeForAccess(OAuth2Template.java:104)
   org.alfresco.integrations.google.docs.service.GoogleDocsServiceImpl.completeAuthentication(GoogleDocsServiceImpl.java:504)
   org.alfresco.integrations.google.docs.webscripts.CompleteAuth.executeImpl(CompleteAuth.java:63)
   org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
   org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
   org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
   org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
   org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
   org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
   org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1771)
   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   java.lang.Thread.run(Thread.java:722)
   
Exception:   org.springframework.web.client.ResourceAccessException - I/O error: accounts.google.com: Nom ou service inconnu; nested exception is java.net.UnknownHostException: accounts.google.com: Nom ou service inconnu
   
   org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:453)
   
Exception:   org.springframework.extensions.webscripts.WebScriptException - 09230002 Wrapped Exception (with status template): I/O error: accounts.google.com: Nom ou service inconnu; nested exception is java.net.UnknownHostException: accounts.google.com: Nom ou service inconnu
   
   org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)
   
Server:   Community v4.2.0 (4576) schema 6 022
Time:   23 oct. 2013 15:53:25
   
Diagnostics:   Inspect Web Script (org/alfresco/integrations/google/docs/CompleteAuth.get)





Au niveau de la configuration Google Docs dans le fichier alfresco-global.properties :

# Enables google editable functionality
googledocs.googleeditable.enabled=true

# Google docs application name
googledocs.application.name=Alfresco ECM system

# Google docs URL (ne pas modifier cette adresse)
# Google docs URL (ne pas modifier cette adresse)

googledocs.url=https://docs.google.com/feeds/default/private/full
googledocs.downloadurl=https://docs.google.com/feeds/download

# System google docs authentication credentials
googledocs.username=USER
googledocs.password=PASSWORD

# Google docs spreadsheet service name
googledocs.spreadsheet.service.name=wise
googledocs.spreadsheet.downloadurl=https://spreadsheet.google.com/feeds/download

Et au niveau de la configuration Google Docs dans le fichier share-config-custom.xml:

   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">
           <google-docs>
                   <enabled>true</enabled>
                   <creatable-types>
                           <creatable type="doc">application/msword</creatable>
                           <creatable type="xls">application/vnd.ms-excel</creatable>
                           <creatable type="ppt">application/vnd.ms-powerpoint</creatable>
                   </creatable-types>
           </google-docs>
    </config>


Auriez-vous une idée du problème ?

Outcomes