org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [UPDATE BATCH_JOB_EXECUTION_CONTEXT SET SHORT_CONTEXT = ?, SERIALIZED_CONTEXT = ? WHERE JOB_EXECUTION_ID = ?]; data exception: string data, right truncation; nested exception is java.sql.SQLDataException: data exception: string data, right truncation More stack trace: Caused by: org.hsqldb.HsqlException: data exception: string data, right truncation

Stack Overflow | sachin jain | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Spring Batch job metadata persistence issue

    Stack Overflow | 9 months ago | sachin jain
    org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [UPDATE BATCH_JOB_EXECUTION_CONTEXT SET SHORT_CONTEXT = ?, SERIALIZED_CONTEXT = ? WHERE JOB_EXECUTION_ID = ?]; data exception: string data, right truncation; nested exception is java.sql.SQLDataException: data exception: string data, right truncation More stack trace: Caused by: org.hsqldb.HsqlException: data exception: string data, right truncation

    Root Cause Analysis

    1. org.springframework.dao.DataIntegrityViolationException

      PreparedStatementCallback; SQL [UPDATE BATCH_JOB_EXECUTION_CONTEXT SET SHORT_CONTEXT = ?, SERIALIZED_CONTEXT = ? WHERE JOB_EXECUTION_ID = ?]; data exception: string data, right truncation; nested exception is java.sql.SQLDataException: data exception: string data, right truncation More stack trace: Caused by: org.hsqldb.HsqlException: data exception: string data, right truncation

      at org.hsqldb.error.Error.error()
    2. HyperSQL Database
      Error.error
      1. org.hsqldb.error.Error.error(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      2. org.hsqldb.error.Error.error(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      2 frames
    3. HSQLDB
      Session.execute
      1. org.hsqldb.types.CharacterType.castOrConvertToType(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      2. org.hsqldb.types.CharacterType.convertToType(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      3. org.hsqldb.StatementDML.getUpdatedData(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      4. org.hsqldb.StatementDML.executeUpdateStatement(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      5. org.hsqldb.StatementDML.getResult(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      6. org.hsqldb.StatementDMQL.execute(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      7. org.hsqldb.Session.executeCompiledStatement(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      8. org.hsqldb.Session.execute(Unknown Source)[hsqldb-2.3.3.jar!/:2.3.3]
      8 frames