DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6558

null ptr in RequestDumperValve.toString if debug in catalina/XmlMapper

           Summary: null ptr in RequestDumperValve.toString if debug in
                    catalina/XmlMapper
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED],[EMAIL PROTECTED]


there is a null pointer in RequestDumperValve.toString 
when I've set the debug mode so that XmlMapper
shows it's behavior

the error seems to came from the fact that the container
is not yet set, and that ObjectCreate action call
toString on this young valve.

in my opinion this explins
bug 2635 in Apache SOAP
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2635


the solution could be to test the fact that the conainer is null
in the toString :

 /**
     * Return a String rendering of this object.
     */
    public String toString() {

        StringBuffer sb = new StringBuffer("RequestDumperValve[");
        if(container!=null) {sb.append(container.getName());}
        sb.append("]");
        return (sb.toString());

    }


[ERROR,EmbeddedCatalinaServiceSX] Stopped
java.lang.NullPointerException
        at org.apache.catalina.valves.RequestDumperValve.toString
(RequestDumperValve.java:254)
        at java.lang.String.valueOf(String.java:1947)
        at java.lang.StringBuffer.append(StringBuffer.java:370)
        at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:619)
        at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
        at org.apache.catalina.util.xml.XmlMapper.startElement
(XmlMapper.java:91)

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to