Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7497227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:59:19+00:00 2026-05-29T18:59:19+00:00

I am having a problem while trying to upload a photo with my iOS

  • 0

I am having a problem while trying to upload a photo with my iOS app in Phonegap. The error is:

2012-02-16 19:06:17.523 ContactExplorer[851:207] File Transfer Error: Invalid server URL
2012-02-16 19:06:17.623 ContactExplorer[851:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: target)'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x01dfb5a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x01f4f313 objc_exception_throw + 44
    2   CoreFoundation                      0x01db3ef8 +[NSException raise:format:arguments:] + 136
    3   CoreFoundation                      0x01db3e6a +[NSException raise:format:] + 58
    4   CoreFoundation                      0x01df9e15 -[__NSCFDictionary setObject:forKey:] + 293
    5   ContactExplorer                     0x00021990 -[PGFileTransfer createFileTransferError:AndSource:AndTarget:] + 153
    6   ContactExplorer                     0x00020c0b -[PGFileTransfer upload:withDict:] + 717
    7   ContactExplorer                     0x000157bf -[PhoneGapDelegate execute:] + 434
    8   ContactExplorer                     0x000029f0 -[AppDelegate execute:] + 80
    9   ContactExplorer                     0x000151e4 -[PhoneGapDelegate executeQueuedCommands] + 265
    10  ContactExplorer                     0x00015291 -[PhoneGapDelegate flushCommandQueue] + 81
    11  ContactExplorer                     0x00015600 -[PhoneGapDelegate webView:shouldStartLoadWithRequest:navigationType:] + 822
    12  ContactExplorer                     0x00002d3c -[AppDelegate webView:shouldStartLoadWithRequest:navigationType:] + 108
    13  UIKit                               0x00a93a92 -[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:] + 291
    14  CoreFoundation                      0x01d6bc7d __invoking___ + 29
    15  CoreFoundation                      0x01d6bb51 -[NSInvocation invoke] + 145
    16  CoreFoundation                      0x01d99858 -[NSInvocation invokeWithTarget:] + 72
    17  WebKit                              0x0283cc76 -[_WebSafeForwarder forwardInvocation:] + 182
    18  CoreFoundation                      0x01d6ca04 ___forwarding___ + 1124
    19  CoreFoundation                      0x01d6c522 _CF_forwarding_prep_0 + 50
    20  CoreFoundation                      0x01d6bc7d __invoking___ + 29
    21  CoreFoundation                      0x01d6bb51 -[NSInvocation invoke] + 145
    22  WebCore                             0x03330150 _ZL20HandleDelegateSourcePv + 64
    23  CoreFoundation                      0x01ddc8ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    24  CoreFoundation                      0x01d3a88b __CFRunLoopDoSources0 + 571
    25  CoreFoundation                      0x01d39d86 __CFRunLoopRun + 470
    26  CoreFoundation                      0x01d39840 CFRunLoopRunSpecific + 208
    27  CoreFoundation                      0x01d39761 CFRunLoopRunInMode + 97
    28  GraphicsServices                    0x023781c4 GSEventRunModal + 217
    29  GraphicsServices                    0x02378289 GSEventRun + 115
    30  UIKit                               0x0090ac93 UIApplicationMain + 1160
    31  ContactExplorer                     0x0000246f main + 127
    32  ContactExplorer                     0x000023e5 start + 53
    33  ???                                 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'

I googled the error but there is no description for key:target.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T18:59:22+00:00Added an answer on May 29, 2026 at 6:59 pm

    Read more close:

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

    You are trying to set NIL to some dictionary object. We can’t find this place in your code using error log.

    Check also if you set all arguments properly into objects you’re using (several of them you can see in your stack trace). It is possible that exception occurred within some of them.

    * UPDATED:
    When I see these lines:

    5   ContactExplorer                     0x00021990 -[PGFileTransfer createFileTransferError:AndSource:AndTarget:] + 153
    6   ContactExplorer                     0x00020c0b -[PGFileTransfer upload:withDict:] + 717
    7   ContactExplorer                     0x000157bf -[PhoneGapDelegate execute:] + 434
    

    I can suggest than this error was born in PhoneGapDelegate. It uses PGFileTransfer who uses dictionary. And then crash. Some data you provide causing to this. The problem can be also in early realizing of your arguments.

    Few lines of code could help. Especially PhoneGap’s creation, delegate and custom callbacks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having this problem An error occurred while trying to make a request
I'm having a problem here trying to upload a file with powershell. What I'm
I've been running into a problem while trying to delete uploaded images. The error
I'm having a problem while trying to dynamically change a table cell's styling class
I'm having a problem while trying to call a custom Model method from my
I'm having a weird problem on deployment while trying to use Microsoft Enterprise Library's
I'm having a bit of an odd problem while trying to compile some code
I'm having problem (basically, I'm confused.) while trying to create a worker thread for
I've been having some problems while trying to fix a simple video recording app*.
I'm having a problem that I've been trying to solve for a while, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.