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

        woltere Wolter Eldering created issue -
        Hide
        woltere Wolter Eldering added a comment -

        unit test showing the issue.

        Show
        woltere Wolter Eldering added a comment - unit test showing the issue.
        woltere Wolter Eldering made changes -
        Field Original Value New Value
        Attachment MessageLazyLoadTest.java [ 15999 ]
        arjen.poutsma Arjen Poutsma made changes -
        Fix Version/s 1.5.9 [ 11296 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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:
        arjen.poutsma Arjen Poutsma made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]
        arjen.poutsma Arjen Poutsma logged work - 06/Jan/10 1:34 AM
        • Time Spent:
          14m
           
          <No comment>
        arjen.poutsma Arjen Poutsma made changes -
        Time Spent 14m [ 840 ]
        Remaining Estimate 0d [ 0 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        23d 11h 11m 1 Arjen Poutsma 06/Jan/10 1:18 AM
        In Progress In Progress Resolved Resolved
        15m 19s 1 Arjen Poutsma 06/Jan/10 1:34 AM
        Resolved Resolved Closed Closed
        849d 5h 29m 1 Arjen Poutsma 04/May/12 7:03 AM

          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