• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ClassCastException...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ClassCastException...


  • Subject: Re: ClassCastException...
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Wed, 15 Jan 2003 17:11:46 +0000

For Chuck and anyone else interested in knowing the resolve of this problem:

I found that the binding on the WOForm for enctype was not set to "multipart/form-data" which cause the ClassCastException in this case

Regards
Jonathan







From: Chuck Hill <email@hidden>
To: "Jonathan Fleming" <email@hidden>, email@hidden
Subject: Re: ClassCastException...
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.


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
_______________________________________________
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.

  • Prev by Date: Collapsed Component
  • Next by Date: Re: illegal argument error
  • Previous by thread: Re: ClassCastException...
  • Next by thread: saving / addObjectToBothSidesOfRelationshipWithKey
  • Index(es):
    • Date
    • Thread