Re: NSKeyedUnarchiver incomprehensible archive exception
Re: NSKeyedUnarchiver incomprehensible archive exception
- Subject: Re: NSKeyedUnarchiver incomprehensible archive exception
- From: Martin Redington <email@hidden>
- Date: Thu, 21 Dec 2006 05:28:37 +0000
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.
On 20 Dec 2006, at 21:44, Martin Redington wrote:
I've seen quite lot of these exceptions recently. I'm reading
archives from a network connection using AsyncSocket. I'm just
about to add some extra debugging, so that I can see exactly what's
going on inside AsyncSocket, and what bytes it thinks it's got
(although I'm pretty confident that the archives I'm passing to
from the other end are good).
12/20/06 12:35:50.419 : - *** -[NSKeyedUnarchiver
initForReadingWithData:]: incomprehensible archive (0x62, 0x70,
0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)
When the error occurs, I see the message below in the console log a
few milliseconds earlier. I'm using sync services, and the filename
mentioned is a sync services related data file. I don't access this
file, or anything like it directly at all, and certainly not when
unarchiving the inbound data.
The bytes in the exception message are always exactly the same - it
actually looks like the first few bytes of an archived property
list. As I said, I'm going to look more closely at AsyncSocket, and
what bytes it's actually passing, but I noticed that a number of
other people have run into very similar issues, with the exact same
byte sequence, in other contexts. I've pasted a couple of
references below.
Does anyone know if this is just a simple case of me passing bad
data to be unarchived, or something more complicated?
2006-12-20 12:35:50.415 SyncTogether[2303] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is
not proper UTF-8. The file name for this data could be:
/Users/jpmaster/Library/Application Support/SyncServices/Local/
clientdata/
0063006f006d002e006d00610072006b00730070006100630065002e00730079006e00
630074006f006700650074006800650072002e006a007000610072006b00340040004d
006100630069006e0074006f00730068/0075007500690064
The parser will retry as in 10.2, but the problem should be
corrected in the plist.
(event handler):Null value
=====
http://realmacsoftware.com/support/viewtopic.php?pid=100195
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)
======
http://paste.lisp.org/display/4708
2005-01-03 07:20:02.348 Colloquy[28175] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the
data is not proper UTF-8. The file name for this data could be:
/Users/james/src/svn/colloquy/build/Colloquy.app/Contents/
Resources/JVChatRoom.nib/keyedobjects.nib
The parser will retry as in 10.2, but the problem should be
corrected in the plist.
2005-01-03 07:20:03.771 Colloquy[28175] Exception raised during
posting of notification. Ignored. exception: *** -
[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible
archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)
======
_______________________________________________
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:
40ucl.ac.uk
This email sent to email@hidden
_______________________________________________
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