Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2789

MalformedJsonException thrown when reading manually edited JSON data in Postgres

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.RC2, 4.2.M3, 4.2.B1, 4.2.RC1
    • 4.2, 5.0-M1
    • Database integration
    • None
    • PostgreSQL 15
      Windows 10
      Cayenne 4.2.RC2
      IntelliJ IDEA 2022.3

    Description

      Encountered this exception while modifying JSON data in the DB:
      org.apache.cayenne.value.json.MalformedJsonException: Unexpected end of document

      The data in question is simple test JSON like this:

      {"test": "some value"} 
      

      Same exact data that is inserted via java code is totally fine.
      I suspect that it could be Windows related, but need to check.

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m