tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Duvaas" <>
Subject NPE in SystemLogHandler.findStream()
Date Tue, 28 Oct 2008 07:59:59 GMT
I have a problem with NPE in SystemLogHandler.findStream().

<copy tomcat 5.5.27>
     * Find PrintStream to which the output must be written to.
    protected PrintStream findStream() {
          PrintStream ps = (PrintStream) streams.get();
           if (ps == null) {
            ps = wrapped;
        return ps;
</copy tomcat 5.5.27>

Somone (in this case saxon) have created a new with
System.err as outputStream.

Later when flush() is called on the OutputStreamWriter i get a NPE as described below.

        at org.apache.jasper.util.SystemLogHandler.findStream( at
org.apache.jasper.util.SystemLogHandler.flush( at
sun.nio.cs.StreamEncoder$CharsetSE.implFlush( at
        at at
net.sf.saxon.event.MessageEmitter.close( at
net.sf.saxon.Controller.transformDocument( at

Google found a similar problem for me, but I could not find any solution. See

I may try to replace System.err with System.out and hope this will solve the problem.

But I would like to know what the problem is. Anyone had this before?

Lars :-)

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message