# Exception: wrong instance allocation

**URL:** <https://www.ruby-forum.com/t/exception-wrong-instance-allocation/50875>\
**Category:** Ruby\
**Created:** [December 22, 2005, 4:30am UTC](https://www.ruby-forum.com/t/exception-wrong-instance-allocation/50875 "2005-12-22T04:30:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nodogbite](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/53a042/32.png) [@nodogbite](https://www.ruby-forum.com/u/nodogbite)\
**Post date:** [December 22, 2005, 4:30am UTC](https://www.ruby-forum.com/t/exception-wrong-instance-allocation/50875/1 "2005-12-22T04:30:44Z")

</div>

I have developed a client-server ruby program using DRb. The client  
and server interact for some time without errors, but eventually I see  
an exception that reads “wrong instance allocation”. The stack trace  
shows the exception is raised right after calling new() to instantiate  
an object. The exception does not always appear in the same place –  
it happens on a variety of classes. I do not see any pattern to this  
error.

Can anybody help me with this? Has anybody else seen this?

Thank you.  
Greg
