• 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
NSData could not cast to Long
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSData could not cast to Long


  • Subject: NSData could not cast to Long
  • From: Ron X <email@hidden>
  • Date: Mon, 25 Jun 2012 19:05:07 +0300

hi4all

NSMutableArray<NSData> currentArtistID = (NSMutableArray<NSData>) validArtistsIDs.valueForKey("CURRENT_ARTIST_ID");

byte[] bytes = currentArtistID.get(i).bytes(); << there get an exception

if i write

int concreteCurrentArtistID = new Integer(new String(currentArtistID.get(i).bytes()));

i get the same exception:

ClassCastException: java.lang.Long cannot be cast to com.webobjects.foundation.NSData
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSData could not cast to Long
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Fwd: WOInject: harmed twice by classloader manipulation
  • Next by Date: NEXT_ROOT + embedding + unix/Linux
  • Previous by thread: Re: AWS server failure?
  • Next by thread: Re: NSData could not cast to Long
  • Index(es):
    • Date
    • Thread