[jbossws-issues] [JBoss JIRA] Updated: (JBWS-3164) NPE exception when the StreamSource with null inputstream in XMLFragment is wrote to OutputStream

Jim Ma (JIRA) jira-events at lists.jboss.org
Sun Nov 21 04:17:53 EST 2010


     [ https://jira.jboss.org/browse/JBWS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Ma updated JBWS-3164:
-------------------------

        Summary:  NPE exception when the StreamSource with null inputstream  in XMLFragment is wrote to OutputStream   (was: SAAJ Impl issue : NPE exception when the StreamSource with null inputstream  in XMLFragment is wrote to OutputStream )
    Description: 
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 . 


  was:
XMLFragment throws exception when client dispatch a StreamSource request:

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



>  NPE exception when the StreamSource with null inputstream  in XMLFragment is wrote to OutputStream 
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JBWS-3164
>                 URL: https://jira.jboss.org/browse/JBWS-3164
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-native
>    Affects Versions: jbossws-native-3.4.0.CR1
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>             Fix For: jbossws-native-3.4.0
>
>
> 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 . 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list