Deserialization Error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Deserialization Error

Lapin
All,

I have extended the serialization of few classes.
It works fine for certain but for other I get the following message:

ohObjectLoad - Error deserializing file test.xml: stream error

I am getting mad at it because the xml file is correctly created but I have trouble to load it.
Any idea where I could have a look in the code?

Tks
Reply | Threaded
Open this post in threaded view
|

Re: Deserialization Error

Bojan Nikolic

Hi,

I've seen these errors when trying to de-serialise XML which was made
before a change in code which lead to changes in the structure of the
XML (e.g., adding another parameter to an object) so it is worth double
checking you are only trying to load newest files.

Otherwise you are probably best off building a debug version of
boost_serialize and setting a break point on the c++ throw function...

Best,
Bojan

Yomi <[hidden email]> writes:

> All,
>
> I have extended the serialization of few classes.
> It works fine for certain but for other I get the following message:
>
> ohObjectLoad - Error deserializing file test.xml: stream error
>
> I am getting mad at it because the xml file is correctly created but I have
> trouble to load it.
> Any idea where I could have a look in the code?
>
> Tks


--
Bojan Nikolic          ||          http://www.bnikolic.co.uk

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Deserialization Error

Lapin
Tx Bojan,

The xml is generated by the same version of the code.
That is why it drives me nuts.
I might have missed something in the extension of the serialization, but I can not put my finger on it.

G


2012/6/1 Bojan Nikolic <[hidden email]>

Hi,

I've seen these errors when trying to de-serialise XML which was made
before a change in code which lead to changes in the structure of the
XML (e.g., adding another parameter to an object) so it is worth double
checking you are only trying to load newest files.

Otherwise you are probably best off building a debug version of
boost_serialize and setting a break point on the c++ throw function...

Best,
Bojan

Yomi <[hidden email]> writes:

> All,
>
> I have extended the serialization of few classes.
> It works fine for certain but for other I get the following message:
>
> ohObjectLoad - Error deserializing file test.xml: stream error
>
> I am getting mad at it because the xml file is correctly created but I have
> trouble to load it.
> Any idea where I could have a look in the code?
>
> Tks


--
Bojan Nikolic          ||          http://www.bnikolic.co.uk


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users