Re: ClassCastException...
Re: ClassCastException...
- Subject: Re: ClassCastException...
- From: Chuck Hill <email@hidden>
- Date: Fri, 10 Jan 2003 18:49:39 -0800
At 07:12 PM 10/01/2003 +0000, Jonathan Fleming wrote:
>I have a form bound to tbJobPicture (TbJobPicture entity) which has a
>fileupload compnent in it and when I try to save I get this error:
>java.lang.ClassCastException
It is usually pretty good about mentioning the class of the object that
failed the cast. It would be good to know that.
> But if I take the fileUpload component out ot the form it saves OK.
> All the other fields are bound by the same object:
>tbJobPicture.theColumName
> If I try to replace the fileUpload component and make sure it is
>bound to,
> data -- tbJobPicture.jobImage
> filePath -- tbJobPicture.imgFileName
Is jobImage of type NSData and imgFileName of type String? Check the
signatures of the methods you have bound to! No, really, go look at them.
Are they what you expect?
Chuck
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.