Re: NSKeyedUnarchiver incomprehensible archive exception
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