xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@novosoft.nsc.ru
Subject Re: Unexpeced exception while getting document root element
Date Tue, 05 Dec 2000 14:41:57 GMT

Hi!
I have found the problem.
It works fine with jdk1.3 and it fails with 1.2 jdk. Probably, it is
connected with tomcat servlet engine mal;functioning with 1.2 jdk.


Artem Goncharuk


                                                                                         
                         
                    art@novosoft.                                                        
                         
                    nsc.ru               To:     general@xml.apache.org                  
                         
                                         cc:                                             
                         
                    12/05/2000           Subject:     Unexpeced exception while getting document
root element      
                    03:37 PM                                                             
                         
                    Please                                                               
                         
                    respond to                                                           
                         
                    general                                                              
                         
                                                                                         
                         
                                                                                         
                         




Hello!

I am using xerces 1.2.1 for parsing xml-based requests to the servlet.
The folowing error occurs :

java.lang.NullPointerException
        at
org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(DeferredDocumentImpl.java:1402)

        at
org.apache.xerces.dom.DocumentImpl.getDocumentElement(DocumentImpl.java:572)

        ...

So the problem is that sometime on the SAME(!)   XML it is OK, and sometime
this exception raises.
Parsed XML is valid for sure.

How can I get rid of this error?
I have tryied to use xerces 1.1.3 and 1.2.1 , the error remains the same.

Thanks!

Sincerely,
Artem Goncharuk



---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org






Mime
View raw message