You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/10/29 23:01:02 UTC
DO NOT REPLY [Bug 14072] New: -
Error When serializing a document
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: xerces-j-dev@xml.apache.org
ReportedBy: srinivas.kalla@verizon.com
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org