Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-684

Create and approve loan in batch mode with transaction true fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.3.0
    • Loan

    Description

      For pre-approved loans, requirement is to create, approve and disburse loan as part of single batch request with transaction set to true. It fails with Nil pointer exception. 
      Couple of observations:
      1. if enclosingTransaction=true is not specified, the request works. Only fails with transaction mode on
      2. If enclosingTransaction=true is specified, and the batch request is to create loan, and approve a pre-existing loan, it works.

       sample request attached.
      error msg recieved:

      [
      {
      "statusCode": 400,
      "body": "Transaction is being rolled back. First erroneous request: \n{\"requestId\":3,\"statusCode\":500,\"headers\":[

      {\"name\":\"Content-type\",\"value\":\"text/html\"}

      ],\"body\":\"

      {\\\"Exception\\\": java.lang.NullPointerException}

      \"}"
      }
      ]

      Attachments

        1. BatchRequest.txt
          3 kB
          sapana

        Activity

          People

            Unassigned Unassigned
            sapana sapana
            Votes:
            1 Vote for this issue
            Watchers:
            2 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 - 1h 20m
                1h 20m