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.

        Activity

        Hide
        ivan_cavanaugh Ivan Cavanaugh added a comment -

        Propesed fixed DomContentHandler

        Show
        ivan_cavanaugh Ivan Cavanaugh added a comment - Propesed fixed DomContentHandler
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Applied the patch with some minor changes (SAAJ nodes extend the standard DOM interfaces, so there is no reason to make the DomContentHandler SAAJ-specific).

        Thanks for the patch!

        Show
        arjen.poutsma Arjen Poutsma added a comment - Applied the patch with some minor changes (SAAJ nodes extend the standard DOM interfaces, so there is no reason to make the DomContentHandler SAAJ-specific). Thanks for the patch!

          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: