You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Cirip Tomas <to...@theimo.com> on 2003/01/03 21:25:56 UTC

Problem with Serialization

Hi,

I had following piece of code:

    OutputFormat outputFormat = new
OutputFormat(document,OutputFormat.Defaults.Encoding, true);
    XMLSerializer serializer = new XMLSerializer(outputStream,
outputFormat);

    serializer.serialize(document);

This works fine when I use downloaded source code for Xerces 2.2.1.
Unfortunately when I use downloaded jar files I am getting following error:

Exception occurred during event dispatching: 
java.lang.NoSuchMethodError 	
	at org.apache.xml.serialize.IndentPrinter.printText(Unknown Source)

	at org.apache.xml.serialize.XMLSerializer.startDocument(Unknown
Source) 	
	at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown
Source) 	
	at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

	at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)

	at org.apache.xml.serialize.BaseMarkupSerializer.serialize(Unknown
Source)
...

Any ideas what I am doing wrong? Thank you

Tomas

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Problem with Serialization

Posted by George Cristian Bina <ge...@sync.ro>.
Hi Tomas,

You can have a look at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15768

Best Regards,
 George
-------------------------------------------------------------
George Cristian Bina mailto:george@sync.ro
COO - sync.ro
Phone  +40-(0)251-461480, +40-(0)251-461481
Fax       +40-(0)251-461482
Mobile +40-(0)723-224067
SyncRO Soft srl, Bd N. Titulescu 170, Craiova, 1100 - Romania
http://www.sync.ro
<oXygen/> XML Editor - http://www.oxygenxml.com/


----- Original Message -----
From: "Cirip Tomas" <to...@theimo.com>
To: <xe...@xml.apache.org>
Sent: Friday, January 03, 2003 10:25 PM
Subject: Problem with Serialization


> Hi,
>
> I had following piece of code:
>
>     OutputFormat outputFormat = new
> OutputFormat(document,OutputFormat.Defaults.Encoding, true);
>     XMLSerializer serializer = new XMLSerializer(outputStream,
> outputFormat);
>
>     serializer.serialize(document);
>
> This works fine when I use downloaded source code for Xerces 2.2.1.
> Unfortunately when I use downloaded jar files I am getting following
error:
>
> Exception occurred during event dispatching:
> java.lang.NoSuchMethodError
> at org.apache.xml.serialize.IndentPrinter.printText(Unknown Source)
>
> at org.apache.xml.serialize.XMLSerializer.startDocument(Unknown
> Source)
> at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown
> Source)
> at
> org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)
>
> at
> org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
Source)
>
> at org.apache.xml.serialize.BaseMarkupSerializer.serialize(Unknown
> Source)
> ...
>
> Any ideas what I am doing wrong? Thank you
>
> Tomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org