xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sami Suuriniemi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (XALANJ-2568) TransformerImpl NullPointerException when faulty encoded XSL file
Date Thu, 17 Jan 2013 12:18:23 GMT

     [ https://issues.apache.org/jira/browse/XALANJ-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sami Suuriniemi updated XALANJ-2568:
------------------------------------

    Description: 
In situation:

String sourceFile = "./transform.xsl";
TransformerFactory tFac = TransformerFactory.newInstance();
Transformer transformer = tFac.newTransformer(new StreamSource(sourceFile));
transformer.setOutputProperty("encoding", "UTF-8");

If source XSL file has UTF-8 characters in it and the FILE itself is not encoded UTF-8 it
causes a an odd and hard to locate nullpointerexception 

java.lang.NullPointerException
                             at org.apache.xalan.transformer.TransformerImpl.setOutputProperty(TransformerImpl.java:966)


  was:
In situation:

String sourceFile = "./transform.xsl";
TransformerFactory tFac = TransformerFactory.newInstance();
Transformer transformer = tFac.newTransformer(new StreamSource(sourceFile));
transformer.setOutputProperty("encoding", "UTF-8");

If source XSL file has UTF-8 characters in it and the FILE itself is not encoded UTF-8 it
causes a an odd and hard to locate nullpointerexception in eg, 

java.lang.NullPointerException
                             at org.apache.xalan.transformer.TransformerImpl.setOutputProperty(TransformerImpl.java:966)


    
> TransformerImpl NullPointerException when faulty encoded XSL file
> -----------------------------------------------------------------
>
>                 Key: XALANJ-2568
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2568
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in Xalan projects.
 Anybody can view the issue.) 
>          Components: Xalan
>    Affects Versions: 2.7.1
>            Reporter: Sami Suuriniemi
>            Assignee: Steven J. Hathaway
>            Priority: Minor
>
> In situation:
> String sourceFile = "./transform.xsl";
> TransformerFactory tFac = TransformerFactory.newInstance();
> Transformer transformer = tFac.newTransformer(new StreamSource(sourceFile));
> transformer.setOutputProperty("encoding", "UTF-8");
> If source XSL file has UTF-8 characters in it and the FILE itself is not encoded UTF-8
it causes a an odd and hard to locate nullpointerexception 
> java.lang.NullPointerException
>                              at org.apache.xalan.transformer.TransformerImpl.setOutputProperty(TransformerImpl.java:966)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Mime
View raw message