Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 4.1.7
    • Fix Version/s: 4.1.9
    • Labels:
      None
    • Environment:
      Cloud Version: Alfresco Cloud v4.2.0
      (-Cloud31 r56352-b2-c79) schema 6024
      Enterprise Version: 4.1.7
      Database: MySQL
      App Server: Tomcat
      OS: RHEL

      Description

      This issue is specific to Enterprise 4.1.7 only.

      Already tested on 4.1.4, 4.1.5, 4.1.6, 4.1.7, and 4.2.0. Issue only replicated in 4.1.7.

      Steps to replicate:-
      1) Make sure to install a valid license key with cloud sync enabled on fresh 4.1.7 install.
      2) Add the following to log4j.properties:
      log4j.logger.org.alfresco.repo.remotecredentials=debug
      log4j.logger.org.alfresco.repo.remote=debug
      log4j.logger.org.alfresco.repo.remoteconnector=debug
      log4j.logger.org.alfresco.repo.remoteticket=debug

      3) Start Tomcat server.
      4) Navigate to Alfresco Share (http://localhost:8080/share) and login as default admin user.
      5) Navigate to Admin > My Profile > Cloud Sync, connect to my cloud account. eg. seng.liaw@alfresco.com with password.
      6) Notice, you will get notification of "Connect to Cloud successfully".
      7) Navigate to any of your site content's document details page, click on 'Sync to Cloud' document action.
      8) Immediately, you will get the failure notice "Failure. Unable to sync to Cloud."

      In alfresco.log, you will see error exception thrown:-
      07:43:18,552 DEBUG [org.alfresco.repo.remotecredentials.RemoteCredentialsServiceImpl] Resolved Remote Credentials Container for Cloud of workspace://SpacesStore/50f30a73-13fa-4eec-b2e1-6b7cd0214e23 in parent workspace://SpacesStore/42a978f2-057d-4a0d-b435-bea0e0279613
      07:43:18,685 INFO [org.alfresco.enterprise.repo.web.scripts.sync.connector.CloudPassThroughWebScript] No network supplied, assuming the default is needed
      07:43:18,693 DEBUG [org.alfresco.repo.remotecredentials.RemoteCredentialsServiceImpl] Resolved Remote Credentials Container for Cloud of workspace://SpacesStore/50f30a73-13fa-4eec-b2e1-6b7cd0214e23 in parent workspace://SpacesStore/42a978f2-057d-4a0d-b435-bea0e0279613
      07:43:18,701 DEBUG [org.alfresco.repo.remoteticket.RemoteAlfrescoTicketServiceImpl] Fetching new ticket for seng.liaw@alfresco.com on Cloud
      07:43:18,708 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Performing POST request to https://a.alfresco.me/alfresco/a/-default-/api/login
      07:43:18,708 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Header: key: xxxxxxxxxxx

      07:43:18,708 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Header: Content-Type: application/json

      07:43:18,708 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Payload:

      {"username":"seng.liaw@alfresco.com","password":"********"}

      07:43:19,099 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] response url=https://a.alfresco.me/alfresco/a/-default-/api/login, length =-1, responceContentType application/json;charset=UTF-8, statusText =OK
      07:43:19,099 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Response was 200 OK
      07:43:19,115 DEBUG [org.alfresco.repo.remoteticket.RemoteAlfrescoTicketServiceImpl] JSON Ticket Response Received: {"data":{"ticket":"TICKET_f2576b18d4a53004d16c26004594325f22922a92"}}
      07:43:19,123 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Performing GET request to https://a.alfresco.me/alfresco/a/-default-/api/tenant/information
      07:43:19,123 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Header: Content-Type:

      07:43:19,123 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Header: Authorization: Basic xxxxxxxxxxxxxxx

      07:43:19,123 DEBUG [org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl] Header: key: xxxxxxxxxxxxxxxxx

      07:43:19,123 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: org.apache.commons.httpclient.methods.ByteArrayRequestEntity cannot be cast to org.apache.commons.httpclient.methods.StringRequestEntity
      java.lang.ClassCastException: org.apache.commons.httpclient.methods.ByteArrayRequestEntity cannot be cast to org.apache.commons.httpclient.methods.StringRequestEntity
      at org.alfresco.repo.remoteconnector.RemoteConnectorServiceImpl.executeRequest(RemoteConnectorServiceImpl.java:184)
      at org.alfresco.enterprise.repo.sync.connector.impl.CloudConnectorServiceImpl.executeCloudRequest(CloudConnectorServiceImpl.java:295)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      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:46)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:161)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:64)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:449)
      at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:67)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      at $Proxy149.executeCloudRequest(Unknown Source)
      at org.alfresco.enterprise.repo.web.scripts.sync.connector.CloudPassThroughWebScript.execute(CloudPassThroughWebScript.java:167)
      at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:414)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:449)
      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:483)
      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:521)
      at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:333)
      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
      at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
      at java.lang.Thread.run(Thread.java:662)
      07:43:29,959 DEBUG [org.alfresco.repo.remotecredentials.RemoteCredentialsServiceImpl] Resolved Remote Credentials Container for Cloud of workspace://SpacesStore/50f30a73-13fa-4eec-b2e1-6b7cd0214e23 in parent workspace://SpacesStore/42a978f2-057d-4a0d-b435-bea0e0279613
      07:43:37,319 DEBUG [org.alfresco.repo.remotecredentials.RemoteCredentialsServiceImpl] Resolved Remote Credentials Container for Cloud of workspace://SpacesStore/50f30a73-13fa-4eec-b2e1-6b7cd0214e23 in parent workspace://SpacesStore/42a978f2-057d-4a0d-b435-bea0e0279613

      See attachment for full logs and JMX dumps from v4.1.6 (no-cloud sync error) vs v4.1.7 (cloud sync error).

        Attachments

        1. alfresco_4.1.6_noError.log
          31 kB
        2. alfresco_4.1.7_error.log
          29 kB
        3. jmxdump_2014_1_9_v416.txt
          1.45 MB
        4. jmxdump_2014_1_9_v417.txt
          1.45 MB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  sliaw Seng Liaw
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 2 hours, 30 minutes
                    2h 30m

                      Structure Helper Panel