Re: ClassCastException

Graham J Lee <[email protected]> Tue, 11 Jul 2006 15:53:08 +0100
Newsgroups gmane.comp.web.webobjects.newbies
Message-ID <[email protected]>
On 11 Jul 2006, at 15:41, Graham J Lee wrote:

> However, it's causing the following exception:
>> Error:
>> java.lang.ClassCastException: java.lang.Boolean
>> Reason:
>> java.lang.Boolean

Solutions always come along precisely ten minutes after I post to a  
mailing list, and I don't know why.  In this case, the problem was  
that the 'value type', which I don't usually have exposed in  
EOModeler so hadn't been thinking about, was set to 'c' which is the  
specifier for a Boolean.  Change that to 'i', no more exception.

Cheers,

Graham.

-- 
Graham J Lee
"Oxford University's UNIX Expert"
As seen in MacWorld UK
http://iamleeg.blogspot.com
smime.p7s (application/pkcs7-signature, 2.4 KB) - not displayed