Hello,

This should probably go on a xerces users list, but I couldn't find
one.  Couldn't find an archive either so appologies if this question has

already been asked, but...

I'm having some trouble serializing and reincarnating DOM Document
objects generated by Xerces (1.1.2).  I'm using an application server
and I thought it was the App. server's marshalling at first.  However,
if I generate a document locally, convert it to a byte array, convert it

back to an object (this works so far) and then try printing it out with
XMLSerializer, I get the following exception:




Exception in thread "main" java.lang.NullPointerException

 
atorg.apache.xerces.dom.DeferredDocumentImpl.clearChunkIndex(DeferredDocumentImpl.java,
 Compiled Code)

 at 
org.apache.xerces.dom.DeferredDocumentImpl.getNodeType(DeferredDocumentImpl.java:1066)

 at 
org.apache.xerces.dom.DeferredDocumentImpl.getNodeType(DeferredDocumentImpl.java:1050)

 at 
org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(DeferredDocumentImpl.java:1382)

 at org.apache.xerces.dom.DocumentImpl.getDoctype(DocumentImpl.java:479)

 at 
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:944)

 at 
org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.java:444)

 at com.killik.util.xml.DOMParserTest.main(DOMParserTest.java:65)

Anyone seen this before?

Cheers,
  Graham.
--
Any opinions expressed here are my own and not necessarily
those of my employer.



--
**********************************************************************
Please visit our website at http://www.killik.co.uk for the free Daily View
and other Internet Services such as online dealing and research.

This  document should only be read by those persons to whom it is addressed
and  is  not  intended  to  be relied upon by any person without subsequent
written confirmation of its contents. Accordingly, Killik & Co disclaim all
responsibility  and  accept  no liability (including in negligence) for the
consequences  of  any  person  acting,  or  refraining from acting, on such
information  prior  to  the  receipt by those persons of subsequent written
confirmation.  If  you  have  received this E-mail message in error, please
notify  us  immediately  by  telephone on (+44) 0207 761 4400 - please also
destroy   and   delete   the  message  from  your  computer.  Any  form  of
reproduction,    dissemination,    copying,    disclosure,    modification,
distribution   and/or  publication  of  this  E-m



Reply via email to