OutputStreamWriter problem.

Subject: OutputStreamWriter problem.
From: "Scott Carlson" <Scott.Carlson@xxxxxxxxxxxxxxx>
Date: Tue, 2 May 2000 10:37:47 -0500
I'm trying to use xalan on a 2.6 Solaris box, with the Java 1.2.2 JRE
installed.
I have tried this on a similiarly configured Linux machine (afaik), with no
problems.

I've included simple examples.

Can anybody point me in the right direction.  Thanks

Scott


$ java org.apache.xalan.xslt.Process -IN in.xml -XSL convert.xsl -OUT out
========= Parsing convert.xsl ==========
Parse of convert.xsl took 962 milliseconds
========= Parsing 05012000014352.xml ==========
Parse of in.xml took 165 milliseconds
Exception in thread "main" java.lang.NullPointerException
        at sun.io.Converters.getConverterClass(Converters.java:83)
        at sun.io.Converters.newConverter(Converters.java:143)
        at
sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:71)
        at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:78)
        at
org.apache.xalan.xslt.StylesheetRoot.makeSAXSerializer(StylesheetRoot.java:5
59)
        at org.apache.xalan.xslt.StylesheetRoot.process(Compiled Code)
        at org.apache.xalan.xslt.Process.main(Compiled Code)
$


in.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<output>
<message type="info">
<time>05/01/2000 01:43:52</time>
<str>this is a string</str>
</message>
<message type="info">
<time>05/01/2000 01:50:38</time>
<str>This is a string also</str>
</message>
</output>

convert.xsl:
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="text"/>
<xsl:template match="output">
<xsl:for-each select="message">
      <xsl:value-of select="str"/><xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread