Marshal Problem

Hi,

I’ve got a serialized object that I am trying to read back in with
Marshal. When it reads the class back in, it complains with the
following message:

undefined class/module ;

This is running on windows. Under Mac OS X, everything works fine
(Note: I serialize and de-serialize on the same platform, so it’s not
a cross platform issue.)

Anyone have any clues as to why it is looking to resolve a class
called “;” from the serialized file?

Thanks,
Bob E.

Agitar Software
Know Your Code, Trust Your Code

On Jul 6, 2006, at 5:47 PM, Robert E. wrote:

Anyone have any clues as to why it is looking to resolve a class
called “;” from the serialized file?

What are the ruby versions? Do you have the same classes loaded on
each side?


Eric H. - [email protected] - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com

Hi Eric,

The Mac OS X version, which works is 1.8.4 (2005-12-24). The windows
version is ruby 1.8.4 (2005-12-24) [i386-mswin32].

The same classes are used to dump and load, from the same irb session
even.

Bob

Hi,

The objects involved were fairly complex, so I will try to create a
simpler case that exhibits the problem.

Bob

Hi,

In message “Re: Marshal Problem”
on Sat, 8 Jul 2006 04:13:11 +0900, Robert E.
[email protected] writes:

|The same classes are used to dump and load, from the same irb session
|even.

Can you show us how to reproduce the problem?

						matz.

Hi,

Following up. I finally got back to this issue, and now everything
works fine.
I believe the problem may have had to do with reading and writing the
files that contained the marshalled objects without using the binary
flag.

Thanks for your help,
Bob

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs