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

debug logging will hide parsing error on non well formed xml, and continue processing with incomplete xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.5.9
    • Component/s: XML
    • Labels:
      None
    • Environment:
      java version "1.6.0_07"
      Windows & Linux

      Description

      logResponse will call toString() on the message, this will trigger the parsing of the xml, parsing exceptions are suppressed by toString. However the message (SaajSoapMessage) will be partially filled.
      When getEnvelope() is called the incomplete message will be returned without any error or exception.

        Activity

        Hide
        woltere Wolter Eldering added a comment -

        unit test showing the issue.

        Show
        woltere Wolter Eldering added a comment - unit test showing the issue.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        This issue does not seem to exist anymore in the current 1.5.9 SVN codebase. I get the following exception when the message is loaded:

        org.springframework.ws.soap.saaj.SaajSoapMessageException: Could not access envelope: Unable to create envelope from given source: ; nested exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source: 

        Show
        arjen.poutsma Arjen Poutsma added a comment - This issue does not seem to exist anymore in the current 1.5.9 SVN codebase. I get the following exception when the message is loaded: org.springframework.ws.soap.saaj.SaajSoapMessageException: Could not access envelope: Unable to create envelope from given source: ; nested exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            woltere Wolter Eldering
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0d
              0d
              Logged:
              Time Spent - 14m
              14m