Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1545

DispatchOutDatabindingInterceptor apparently incorrectly using MessageFactory.createMessage() method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5, 2.1
    • 2.2.2
    • Core
    • None
    • Novice

    Description

      On line 345 of DispatchOutDatabindingInterceptor[1] the no-parameter version of SAAJ's MessageFactory.createMessage() is being called. However Sun's SAAJ 1.3 implementation does not allow that variant--in com.sun.xml.messaging.saaj.soap.MessageFactoryImpl, line 70, SAAJ will throw an UnsupportedOperationException() if you use that version. Sun requires the createMessage(MimeHeaders headers, InputStream in) version on line 79 of that same file. If I'm correct here, line 345 of this class needs to be rewritten to use this version.

      Version of SAAJ being used:

      System.setProperty("javax.xml.soap.MessageFactory", "com.sun.xml.messaging.saaj.soap.MessageFactoryImpl");

      Maven: (same as CXF):

      <dependency>
      <groupId>com.sun.xml.messaging.saaj</groupId>
      <artifactId>saaj-impl</artifactId>
      <version>1.3</version>
      <exclusions>
      <exclusion>
      <groupId>javax.activation</groupId>
      <artifactId>activation</artifactId>
      </exclusion>
      </exclusions>
      </dependency>

      [1] http://tinyurl.com/6pvjxv

      Attachments

        Activity

          People

            Unassigned Unassigned
            gmazza Glen Mazza
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: