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

DomContentHandler throwing NullpointerExption on document

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0 M3
    • Fix Version/s: 1.0 M3
    • Component/s: XML
    • Labels:
      None
    • Environment:
      org.springframework.ws.soap.saaj.SaajSoapMessageContextFactory CastMarshaller

      Description

      The DomContentHandler used by the CastorMarshaller is throwing NullPointerException on document property in the class because it is not initialized.

      The problem is when using org.springframework.ws.soap.saaj.SaajSoapMessageContextFactory in the Servlet definition and defining the CastorMarshaller in the Endpoint definitions the node passed the the DomContentHandler is not of type org.w3c.Document but of type com.sum.xml.messaging.saaj.soap.impl.BodyImpl.

      The propesed fix to render the marshalling in a working state is attached to the issue.

      Please include this fix in the next version releases.

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              ivan_cavanaugh Ivan Cavanaugh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: