• 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: NSKeyedUnarchiver incomprehensible archive exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSKeyedUnarchiver incomprehensible archive exception


  • Subject: Re: NSKeyedUnarchiver incomprehensible archive exception
  • From: Michael Nickerson <email@hidden>
  • Date: Fri, 22 Dec 2006 00:04:20 -0500


On Dec 21, 2006, at 12:28 AM, Martin Redington wrote:


It looks like AsyncSocket, or maybe SSL, is dropping a single byte somewhere in the middle of the archive in transit, so my archive is indeed corrupt on arrival.


The initial bytes (which are the start of the archive), and my delimiter seem to be intact, so its not a simple off-by-one error.

The console.log message still seems a bit misleading though. I've now seen cases both with and without that.


2006-12-12 13:40:41.428 RapidWeaver[1174] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
/Applications/RapidWeaver.app/Contents/Resources/ tab_background.png
The parser will retry as in 10.2, but the problem should be corrected in the plist.
2006-12-12 13:40:41.457 RapidWeaver[1174] Error loading document contents: *** -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)



That message gets logged whenever the system is unable to parse a plist file. It doesn't always return the correct file name (which is why it says "could be") - I think it just references the most recently opened / accessed file descriptor, but that's just a guess, I haven't actually done any checking on that. When it's not able to parse it as is, it tries to parse it as an old-style plist file:


{
    someKey = "someValue";
    someOtherKey = { aSubValue = "someOtherValue"; };
}

...which of course isn't usually the case.


Darkshadow (aka Michael Nickerson)



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSKeyedUnarchiver incomprehensible archive exception (From: Martin Redington <email@hidden>)
 >Re: NSKeyedUnarchiver incomprehensible archive exception (From: Martin Redington <email@hidden>)

  • Prev by Date: Re: Odd error on application exit: CGPixelAccess
  • Next by Date: Miniaturizing Custom Windows
  • Previous by thread: Re: NSKeyedUnarchiver incomprehensible archive exception
  • Next by thread: Modifying an object managed by NSArrayController
  • Index(es):
    • Date
    • Thread