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=14072>.
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=14072

Error When serializing a document

           Summary: Error When serializing a document
           Product: Xerces2-J
           Version: 2.0.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Serialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am trying to serializing a Document. I am getting the following error.
 1323  got XMLSerializer                                                       
 1324  trying to serialize the doc                                             
 1325  Exception in thread "main" java.lang.AbstractMethodError                
 1326          at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(B
seMarkupSerializer.java:952)                                                   
 1327          at org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseM
rkupSerializer.java:431)                                                       
 1328          at com.Verizon.Gateway.util.XMLUtil.serialize(XMLUtil.java:930) 


Here is the code:
 StringWriter sw = new StringWriter();                   
                                                                       
 /**                                                     
  * apache serializer using base class format            
  */                                                     
  System.out.println("getting XML serializer");                           
  XMLSerializer serializer = new XMLSerializer(sw, format)
                                                                               
  System.out.println("got XMLSerializer");                                
                                                                          
  /**                                                     
   * serialize the Document                               
   */                                                     
   try {                                                   
  System.out.println("trying to serialize the doc");                      
                  serializer.serialize(doc);                      
  System.out.println("after serializing the doc");                        
   }                                                       
 catch (IOException e) {                                 
   GWServletLog.printInfo("Exception while serializng:" + e.getMessage
() );                                                                           
 throw new GatewayException(className+methodName,
      "error in writing out the dom model ",e);                                 
      }

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

Reply via email to