cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
185
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Vinay Kanakath on 15-01-2013 08:39:36 AM
Hi there, I was able to post the data in xml format successfully, but while trying to post the same data in json format i am getting 404 exception, in the code i am convering java object to json format and try to post that json data, then I am getting the following exception.  {"statusCode":404,"startIndex":0,"itemsPerPage":0,"totalResults":0,"filtered":false,"sorted":false,"entry":[],"serverMessages":[{"code":"QUAD-502","description":"No such entity","message":"No Group exists with the primary key 12345"}]}   for xml data i am sending this way input = new StringEntity(      ""        + post.getTitle()        + ""        + post.getBody()        + ""+post.getType()+""        + ""+post.getPermissions().getPrincipal().getId()+"http://quad.cisco.com/schema/1.0/community"        + ""+post.getPermissions().getPermissionFlags().isView()+""+post.getPermissions().getPermissionFlags().isEdit()+""+post.getPermissions().getPermissionFlags().isComment()+""        + ""+post.getPermissions().getPermissionFlags().isShare()+""+post.getPermissions().getPermissionFlags().isAuthorize()+""        + "tag2tag3"        + "tag4");   then it's working fine, inseted of this If I send in json format through that exception. Can anyone help me to clear this exception. Thanks,
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links