ECJ-INTEREST-L Archives

December 2009

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Wed, 16 Dec 2009 22:19:53 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
That is a weird one.  Java serialization can sometimes be tricky.  I  
think the issue is that you have a serializable object which doesn't
have a default (no-argument) constructor or is subclassing from a
class with the same. See:

http://forums.sun.com/thread.jspa?threadID=686452

Sean

On Dec 5, 2009, at 5:52 AM, John Smith wrote:

> When restoring a checkpoint, I receive a strange error:
>
> STARTUP ERROR:
> An exception was generated upon starting up from a checkpoint.
>
> java.io.InvalidClassException: brain.BrainHelper; brain.BrainHelper;
> no
> valid constructor
>
> This class BrainHelper is only used as a helper class to evaluate the
> individual, and is not referenced by EvolutionState, the problem, or
> the
> Individual. I could create a default constructor that does nothing,
> but I am
> curious why this class is even relevant?
>
> Thanks for any help.

ATOM RSS1 RSS2