Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-5654

HttpClientFactory$HttpsClient failed to send a 4128 byte body

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Duplicate
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0.2
    • Component/s: Web Scripts and Surf
    • Labels:
      None
    • Environment:
      Alfresco Enterprise 4.0.0 + Alfresco Enterprise Solr
    • Bug Priority:
      Category 1

      Description

      In an Alfresco Enterprise 4.0.0 + Alfresco Solr installation, the following exception is observed. A debug session shows that Solr is sending a 4128 byte JSON body. This occurs in org.alfresco.solr.client.SOLRAPIClient.getModelsDiff() line 1002. body.toString() yields a 4128 character string.

      Notice in the exception below, the first "Caused by: ... at character 4096". This indicates the server only received 4096 characters from the HTTP body, and the debugger confirms that.

      2012-Mar-29 09:27:07,877 ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 02290002 Invalid JSON
      org.springframework.extensions.webscripts.WebScriptException: 02290002 Invalid JSON
      at org.alfresco.repo.web.scripts.solr.AlfrescoModelsDiff.executeImpl(AlfrescoModelsDiff.java:55)
      at org.springframework.extensions.webscripts.DeclarativeWebScript.executeImpl(DeclarativeWebScript.java:235)
      at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
      at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:393)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:462)
      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:500)
      at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:275)
      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372)
      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
      at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
      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:58)
      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:563)
      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.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: org.json.JSONException: Unterminated string at character 4096
      at org.json.JSONTokener.syntaxError(JSONTokener.java:410)
      at org.json.JSONTokener.nextString(JSONTokener.java:244)
      at org.json.JSONTokener.nextValue(JSONTokener.java:341)
      at org.json.JSONObject.<init>(JSONObject.java:205)
      at org.json.JSONTokener.nextValue(JSONTokener.java:344)
      at org.json.JSONArray.<init>(JSONArray.java:125)
      at org.json.JSONTokener.nextValue(JSONTokener.java:348)
      at org.json.JSONObject.<init>(JSONObject.java:205)
      at org.json.JSONObject.<init>(JSONObject.java:402)
      at org.alfresco.repo.web.scripts.solr.AlfrescoModelsDiff.buildModel(AlfrescoModelsDiff.java:68)
      at org.alfresco.repo.web.scripts.solr.AlfrescoModelsDiff.executeImpl(AlfrescoModelsDiff.java:42)
      ... 27 more
      Mar 29, 2012 9:27:08 AM org.quartz.core.JobRunShell run
      SEVERE: Job Solr.CoreTracker-archive threw an unhandled Exception:
      org.alfresco.error.AlfrescoRuntimeException: 02290000 GetModelsDiff return status is 500
      at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1010)
      at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1630)
      at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1134)
      at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
      at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
      Mar 29, 2012 9:27:08 AM org.quartz.core.ErrorLogger schedulerError
      SEVERE: Job (Solr.CoreTracker-archive threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.error.AlfrescoRuntimeException: 02290000 GetModelsDiff return status is 500]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
      Caused by: org.alfresco.error.AlfrescoRuntimeException: 02290000 GetModelsDiff return status is 500
      at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1010)
      at org.alfresco.solr.tracker.CoreTracker.trackModels(CoreTracker.java:1630)
      at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1134)
      at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:491)
      at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
      ... 1 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                michael.chen_rivetlogic Michael Chen (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: