Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3164

Enhancement : NPE exception when the StreamSource with null inputstream in XMLFragment is wrote to OutputStream

XMLWordPrintable

      XMLFragment throws exception when client dispatch a StreamSource request:

      StreamSource requestSource = new StreamSource(new File(requetMessage.xml));
      dispatch.invoke(requestSource);

      Here the input stream of requestSource is null , the StreamSource constructor uses file.toURI() to set the systemId value . We can do some enhancement to create Input stream internally from the systemId for this case.

      Anyway constructs a StreamSource with InputStream or Reader will be more informative than StreamSource(File f) for StreamSource consumer to know where to get/read the data source .

              rhn-engineering-ema Jim Ma
              rhn-engineering-ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: