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

SOLR indexing fails with unterminated string for PDF uploaded

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.2
    • Component/s: Repository
    • Labels:
      None
    • Environment:
      Ubuntu 11.10 running in Virtualbox installed from Linux installer package using mysql instead of bundled Postgres
    • Bug Priority:
      Category 2

      Description

      Upon uploading attached PDF the SOLR indexing reports the following stack trace, as well as breaking access to the location uploaded to

      Offending node has string value: ??J S h o p S e r v e r I n s t a l l a t i o n M a n u a l

      29-May-2012 12:13:15 org.alfresco.solr.tracker.CoreTracker trackRepository
      SEVERE: Tracking failed
      org.json.JSONException: Unterminated string at character 1186
      at org.json.JSONTokener.syntaxError(JSONTokener.java:413)
      at org.json.JSONTokener.nextString(JSONTokener.java:244)
      at org.json.JSONTokener.nextValue(JSONTokener.java:344)
      at org.json.JSONObject.<init>(JSONObject.java:206)
      at org.json.JSONTokener.nextValue(JSONTokener.java:347)
      at org.json.JSONObject.<init>(JSONObject.java:206)
      at org.json.JSONTokener.nextValue(JSONTokener.java:347)
      at org.json.JSONArray.<init>(JSONArray.java:125)
      at org.json.JSONTokener.nextValue(JSONTokener.java:351)
      at org.json.JSONObject.<init>(JSONObject.java:206)
      at org.alfresco.solr.client.SOLRAPIClient.getNodesMetaData(SOLRAPIClient.java:725)
      at org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:1879)
      at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1410)
      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)
      29-May-2012 12:13:30 org.alfresco.solr.tracker.CoreTracker trackRepository

        Attachments

          Activity

            People

            • Assignee:
              closedbugs Closed Bugs
              Reporter:
              gazw Garry Watts
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 3 hours
                3d 3h