[aerogear-dev] [aerogear-ios] error on store save

Matthias Wessendorf matzew at apache.org
Wed Jun 12 15:56:04 EDT 2013


yeah, until we fix it (see AGIOS-31) :-)

Hopefully your "filtering" would not be needed that long...

If you are trying to do that, feel free to convert the fix into a patch :-)
If you need help on that, let us know :-))

Thanks for looking at AeroGear!
-Matthias

On Wednesday, June 12, 2013, Yavuz Selim YILMAZ wrote:

> Thanks. So, what is your recommended client side solution while using the
> current version of the library? Should I iterate through my responseObject
> and exclude the NSNull fields?
>
> I appreciate your help. Cheers,
>
> ---
> Yavuz Selim Yilmaz
> SUNY at Buffalo
> Computer Science and Engineering
> PhD Candidate
>
> On Jun 12, 2013, at 3:37 PM, Matthias Wessendorf <matzew at apache.org>
> wrote:
>
> Hi Yavuz,
>
> the "problem" is that the 'null' (for telephone on the first object) is,
> in Cocoa/ObjC mapped to NSNull. However, NSNull is, unfortunately, not a
> "valid" PList object/type.
> A work around, on your server, would be to do something like:  "telephone"
> => "NULL", or simply exclude all keys where values are "NULL"... :-/
>
> There are ways how we could fix it on the library:
> * exclude every key, where value is NSNull (which makes the value 'nil'
> (not NSNull)
> * see if new 'store' could be written, that simply
> uses NSJSONSerialization, to store JSON on the "filesystem"
>
> I will create a JIRA ticket for this issue.
>
> Thanks for the feedback.
>
> -M
>
>
>
> On Wed, Jun 12, 2013 at 7:52 PM, Yavuz Selim YILMAZ <yavuzsel at buffalo.edu>wrote:
>
> here is my response object from log:
>
>  ({
>         id = 1;
>         mail = "yavuzsel at buffalo.edu";
>         name = "yavuz";
>         telephone = "<null>";
>     },
>     {
>         id = 2;
>         mail = "yavuzsel at buffalo.edu";
>         name = "yavuzsel";
>         telephone = "001234";
>     }
> )
>
> thanks,
>
> ---
> Yavuz Selim Yilmaz
> SUNY at Buffalo
> Computer Science and Engineering
> PhD Candidate
>
> On Jun 12, 2013, at 1:49 PM, Matthias Wessendorf <matzew at apache.org>
> wrote:
>
> can u NSLog the 'responseObject'?
>
> Is that a NSDictionary or NSArray?
>
>
>
> On Wednesday, June 12, 2013, Yavuz Selim YILMAZ wrote:
>
> Hi all,
>
> I am getting error while saving my response object to my store. Here are
> my codes:
>
>
> AGPipeline *pipeline = [AGPipeline pipelineWithBaseURL:[NSURL
> URLWithString:@"localhost"]];
>
> id<AGPipe> dataPipe = [pipeline pipe:^(id<AGPipeConfig> config) {
>             [config setName:@"persons"];
>             [config setEndpoint:@"get_persons.php"];
>         }];
>
> AGDataManager *dm = [AGDataManager manager];
>
> id<AGStore> dataStore = [dm store:^(id<AGStoreConfig> config) {
>         [config setName:@"persons"];
>         [config setType:@
>
>

-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130612/5afe57b2/attachment.html 


More information about the aerogear-dev mailing list