Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-04-2010, 09:30 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 54
jcww33 is on a distinguished road
Default Dictionary error

Hi all,
I am trying to populate a table view with RSS data. No errors in code but when I build it it crashes. Here is the console


[Session started at 2010-12-04 10:26:28 -0500.]
2010-12-04 10:26:32.594 ISS Viewer[5499:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: date)'
*** Call stack at first throw:
(
0 CoreFoundation 0x0248eb99 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x025de40e objc_exception_throw + 47
2 CoreFoundation 0x02447238 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x024471aa +[NSException raise:format:] + 58
4 CoreFoundation 0x0248d405 -[__NSCFDictionary setObject:forKey:] + 293
5 ISS Viewer 0x0000452a -[Parser parser:didEndElement:namespaceURI:qualifiedName:] + 594
6 Foundation 0x000f93a9 _endElementNs + 453
7 libxml2.2.dylib 0x0291bea7 xmlParseXMLDecl + 1346
8 libxml2.2.dylib 0x02926bb1 xmlParseChunk + 3984
9 Foundation 0x000f8baa -[NSXMLParser parse] + 321
10 ISS Viewer 0x00003fff -[Parser connectionDidFinishLoading:] + 226
11 Foundation 0x00061b96 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading] + 108
12 Foundation 0x00061aef _NSURLConnectionDidFinishLoading + 133
13 CFNetwork 0x02a4272f _ZN19URLConnectionClient23_clientDidFinishLoadingE PNS_26ClientConnectionEventQueueE + 285
14 CFNetwork 0x02b0dfcf _ZN19URLConnectionClient26ClientConnectionEventQue ue33processAllEventsAndConsumePayloadEP20XConnecti onEventInfoI12XClientEvent18XClientEventParamsEl + 389
15 CFNetwork 0x02a37968 _ZN19URLConnectionClient13processEventsEv + 100
16 CFNetwork 0x02a377e5 _ZN17MultiplexerSource7performEv + 251
17 CoreFoundation 0x0246ffaf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FU NCTION__ + 15
18 CoreFoundation 0x023ce39b __CFRunLoopDoSources0 + 571
19 CoreFoundation 0x023cd896 __CFRunLoopRun + 470
20 CoreFoundation 0x023cd350 CFRunLoopRunSpecific + 208
21 CoreFoundation 0x023cd271 CFRunLoopRunInMode + 97
22 GraphicsServices 0x02d6d00c GSEventRunModal + 217
23 GraphicsServices 0x02d6d0d1 GSEventRun + 115
24 UIKit 0x002ceaf2 UIApplicationMain + 1160
25 ISS Viewer 0x000028cc main + 102
26 ISS Viewer 0x0000285d start + 53
)
terminate called after throwing an instance of 'NSException'
jcww33 is offline   Reply With Quote
Old 12-04-2010, 11:01 AM   #2 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Code:
[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: date)

5 ISS Viewer 0x0000452a -[Parser parser:didEndElement:namespaceURI:qualifiedName:] + 594
At the end of some tag in the XML you're trying to insert a nil object into the dictionary for the key "date". I'd look out the code where you're adding the date to the dictionary and find out why the date is nil.

You'll have to either create some dummy date to insert, or just don't insert the date if it's nil.
__________________

Free Games!
smasher is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 366
6 members and 360 guests
chemistry, daudrizek, HemiMG, Kirkout, MarkC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:51 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0