This one time, at band camp, Stephen Ince said:

SI>I have found an issue with implementing the _object member as a
SI>SequenceHashtable. In one of my objects I override the hashCode method. For
SI>some reason that was wrecking havac with the object lookup. Castor kept
SI>throwing  the following exception, IllegalArgumentException("ObjectEntry to
SI>be rehash is not found!") in org.exolab.castor.persist.TransactionContext.
SI>Does anyone have any ideas why? I guess my hashcode is not valid.  Should I
SI>also override the equals method.
SI>
SI>    public int hashCode() {
SI>          return (  ((this.ipAddress == null)? "" :  this.ipAddress )
SI>+((this.hostName == null)? "" :  this.hostName )).hashCode();

Stephen,

That's the first thing I would try to do - override the equals()
method. Let us know the results.

Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to