Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-227

NPE when "mustUnderstand" attribute is in SOAP header and no Interceptors have been defined

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.5 M1, 1.0.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat 5.5, JDK 5.0

      Description

      When the "mustUnderstand" attribute is set (to either "0" or "1") and no interceptors are defined a "PayloadRootQNameEndpointMapping" the org.springframework.ws.soap.server.SoapMessageDispatcher throw a NullPointerException when iterating over the mapped endpoint ´s Interceptors.

      Adding a "org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor" temporarily fixes the problem (as the code just gets "any" EndpointInterceptor before checking via "instanceof" on SoapEndpointInterceptor.class).

      Our Server might receive a SOAP Message with the mustUnderstand attribute set (to either "0" or "1") or not, but does not need to handle the attribute.

      A nullpointer check would be appropriate here.

      thx in advance.

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              luc.neulens luc neulens
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified