Uploaded image for project: 'VIVO'
  1. VIVO
  2. VIVO-1943

StackOverflowException during parsing of SPARQL Update API request

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: v1.10, v1.11
    • Fix Version/s: v1.12
    • Component/s: Data Management
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2

      Description

      INSERT DATA { } requests with more than roughly 5K triples can/will throw StackOverflowExceptions due to an issue with the underlying Jena libraries discussed here:

      https://mail-archives.apache.org/mod_mbox/jena-users/201601.mbox/%3C568BA9FB.5090709@apache.org%3E

      The workaround mentioned (to use the "ARQ" parser instead of the "SPARQL" parser) is what I have been using for some time, and does indeed avoid the problem.  It is not immediately clear whether newer versions of Jena still exhibit this issue.

      In edu.cornell.mannlib.vitro.webapp.controller.api.SparqlUpdateApiController, I changed the line around line 94 to:

      return UpdateFactory.create(update, Syntax.syntaxARQ);

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              awoods Andrew Woods
              Reporter:
              brianjlowe Brian Lowe
              Reviewer:
              Brian Lowe Brian Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: