Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4202

StoredProcOutboundGateway produces NPE in case of null from the DB and expect-single-result="true"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Complete
    • 3.0.8, 4.0.9, 4.1.9, 4.2.12, 4.3.6
    • 5.0.M2, 4.3.7
    • JDBC Support

    Description

      If payload = resultMap.values().iterator().next(); returns null, the next this.getMessageBuilderFactory().withPayload(payload).copyHeaders(requestMessage.getHeaders()).build() ends up with the java.lang.IllegalArgumentException: payload must not be null.

      As a workaround do not extract single result and get deal with the whole Map downstream manually.
      Therefore it isn't critical and may be backported to 4.2.x and below on demand.

      Attachments

        Activity

          People

            abilan Artem Bilan
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: