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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.0.8, 4.0.9, 4.1.9, 4.2.12, 4.3.6
    • Fix Version/s: 5.0.M2, 4.3.7
    • Component/s: JDBC Support
    • Labels:

      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

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

              Dates

              Created:
              Updated:
              Resolved: