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 Evans
Agitar Software
Know Your Code, Trust Your Code
What are the ruby versions? Do you have the same classes loaded on each side?
···
On Jul 6, 2006, at 5:47 PM, Robert Evans wrote:
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?
--
Eric Hodel - drbrain@segment7.net - 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
···
On Jul 6, 2006, at 6:32 PM, Eric Hodel wrote:
On Jul 6, 2006, at 5:47 PM, Robert Evans wrote:
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?
What are the ruby versions? Do you have the same classes loaded on each side?
--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant
http://trackmap.robotcoop.com
Hi,
The objects involved were fairly complex, so I will try to create a simpler case that exhibits the problem.
Bob
···
On Jul 8, 2006, at 7:22 AM, Yukihiro Matsumoto wrote:
Hi,
In message "Re: Marshal Problem" > on Sat, 8 Jul 2006 04:13:11 +0900, Robert Evans > <robert.evans@acm.org> 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
···
On Jul 8, 2006, at 7:22 AM, Yukihiro Matsumoto wrote:
Hi,
In message "Re: Marshal Problem" > on Sat, 8 Jul 2006 04:13:11 +0900, Robert Evans > <robert.evans@acm.org> 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.