Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1242

Json scanner can not read some case of truncated text

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: Storage
    • Labels:
      None

      Description

      This error caused by complex type of truncated json.

      sample test : {"id":[{"text":"json test
      
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 25
      	at net.minidev.json.parser.JSONParserByteArray.indexOf(JSONParserByteArray.java:78)
      	at net.minidev.json.parser.JSONParserMemory.readString(JSONParserMemory.java:120)
      	at net.minidev.json.parser.JSONParserBase.readMain(JSONParserBase.java:394)
      	at net.minidev.json.parser.JSONParserBase.readObject(JSONParserBase.java:530)
      	at net.minidev.json.parser.JSONParserBase.readMain(JSONParserBase.java:387)
      	at net.minidev.json.parser.JSONParserBase.readArray(JSONParserBase.java:257)
      	at net.minidev.json.parser.JSONParserBase.readMain(JSONParserBase.java:390)
      	at net.minidev.json.parser.JSONParserBase.readObject(JSONParserBase.java:530)
      	at net.minidev.json.parser.JSONParserBase.readFirst(JSONParserBase.java:285)
      	at net.minidev.json.parser.JSONParserBase.parse(JSONParserBase.java:150)
      	at net.minidev.json.parser.JSONParserByteArray.parse(JSONParserByteArray.java:57)
      	at net.minidev.json.parser.JSONParserByteArray.parse(JSONParserByteArray.java:39)
      	at net.minidev.json.parser.JSONParser.parse(JSONParser.java:173)
      	at org.apache.tajo.storage.json.JsonLineDeserializer.deserialize(JsonLineDeserializer.java:66)
      

        Attachments

          Activity

            People

            • Assignee:
              jhkim Jinho Kim
              Reporter:
              jhkim Jinho Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: