0

Im Planed to Store my Nested Json File into postgres db Using java Spring boot But the nested json array part throw a error, What can i do To solve this Error

Error Is

  Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
at org.hibernate.type.ComponentType.deepCopy(ComponentType.java:504) ~[hibernate-core-5.4.32.Final.jar:5.4.32.Final]
at org.hibernate.type.ComponentType.deepCopy(ComponentType.java:504) ~[hibernate-core-5.4.32.Final.jar:5.4.32.Final]
at org.hibernate.type.ComponentType.deepCopy(ComponentType.java:504) ~[hibernate-core-5.4.32.Final.jar:5.4.32.Final]
at org.hibernate.type.ComponentType.deepCopy(ComponentType.java:504) ~[hibernate-core-5.4.32.Final.jar:5.4.32.Final]
at org.hibernate.type.ComponentType.deepCopy(ComponentType.java:504) ~[hibernate-core-5.4.32.Final.jar:5.4.32.Final]
at org.hibernate.type.TypeHelper.deepCopy(TypeHelper.java:55) ~[hibernate-core-5.4.32.Final.jar:5.4.32.Final]

My Json Structure is

[{
        "basicInfo": {
           "uniqueFileNo": "xxx",
           "actualOrgid": "3",
           "tRefNo": "xxx",
           "tType": "xxx",
           "tFormContract": "Works",
           "tNoOfCovers": "2",
           "tTenderCategory": "xxx",
           "tNoOfBidOpeners": "xxx",
           "tAllowAutomaticEvaluation": "false",
           "tAllowMultiCurrencyForBoq": "false",
           "creatorName": "xxx",
           "creatorReference": "xxx"
        },
        "multiCurrencyForBoq": "",
        "boqinfo": "",
        "coverinfo": {
           "cover": [
              {
                 "tCoverNo": "1",
                 "tDocDesc": "xxx",
                 "tDocType": "xxx"
              },
              {
                 "tCoverNo": "2",
                 "tDocDesc": "xxx",
                 "tDocType": "mmm"
              }
           ]
        }
     }]

How To fix this Error

Akoram
  • 13
  • 6

0 Answers0