You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Sami Suuriniemi (JIRA)" <ji...@apache.org> on 2013/01/17 13:16:16 UTC

[jira] [Created] (XALANJ-2568) TransformerImpl causes a

Sami Suuriniemi created XALANJ-2568:
---------------------------------------

             Summary: TransformerImpl causes a 
                 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 in eg, 

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