• 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: 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.

References: 
 >ClassCastException... (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: Re: Project Builder Assistant
  • Next by Date: Re: saving / addObjectToBothSidesOfRelationshipWithKey
  • Previous by thread: ClassCastException...
  • Next by thread: Re: ClassCastException...
  • Index(es):
    • Date
    • Thread