You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Scott Boag/CAM/Lotus <Sc...@lotus.com> on 2000/12/17 18:50:40 UTC

RE: NullPointerException in TransformerImpl.createResultContentHa ndle r

> Hi,
> I think I found the problem. I rebuilt both Xalan and Xerces using latest
> versions from CVS. And tried to test XSL's with them. In this case Xalan
> gave me all those errors I reported about. When I took xerces.jar from
the
> Xalan bin directory everything got OK. So it looks like latest builts of
> Xerces and Xalan are not compatible with each other.

I think this is a bug in Xerces.  I tried the same thing the other day, and
Xerces wasn't sending the SAX events, for some strange reason, even though
it pretended to parse just fine.  I reported the problem to Arnaud, but it
didn't ring any bells with him.  I guess I'll try again later today and
trace into the xerces code to see what's going on.

-scott




                                                                                                                      
                    "Voytenko,                                                                                        
                    Dimitry"                To:     "'xalan-dev@xml.apache.org'" <xa...@xml.apache.org>           
                    <DVoytenko@SECTO        cc:     (bcc: Scott Boag/CAM/Lotus)                                       
                    RBASE.COM>              Subject:     RE: NullPointerException in                                  
                                            TransformerImpl.createResultContentHa ndle r                              
                    12/17/2000 03:36                                                                                  
                    AM                                                                                                
                    Please respond                                                                                    
                    to xalan-dev                                                                                      
                                                                                                                      
                                                                                                                      




Hi,
I think I found the problem. I rebuilt both Xalan and Xerces using latest
versions from CVS. And tried to test XSL's with them. In this case Xalan
gave me all those errors I reported about. When I took xerces.jar from the
Xalan bin directory everything got OK. So it looks like latest builts of
Xerces and Xalan are not compatible with each other.

Thank you

-----Original Message-----
From: Voytenko, Dimitry [mailto:DVoytenko@SECTORBASE.COM]
Sent: Saturday, December 16, 2000 20:29
To: xalan-dev@xml.apache.org
Subject: NullPointerException in
TransformerImpl.createResultContentHandle r


Hi,

I downloaded latest version of Xalan J2 from CVS and got next error running
any stylesheet

java.lang.NullPointerException
        at
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(Tran

sformerImpl.java:976)
        at
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(Tran

sformerImpl.java:917)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:

1030)
        at XSLTMain2NoAddon.main(XSLTMain2NoAddon.java, Compiled Code)

Stylesheet is

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
    <root>
        <xsl:value-of select="'It is working now'"/>
    </root>
</xsl:template>

</xsl:stylesheet>

Thank you,
Dmitry E. Voytenko