Rest calls are getting 406 error with beta refresh

We are seeing that our REST API calls are getting http 406 error. We have not made any changes on the REST Service. In Console, i see following messages that might be related to this issue.
8/31/12 9:33:23.259 PM TAOMobile: -JSONValue failed. Error trace is: (
"Error Domain=org.brautaset.JSON.ErrorDomain Code=11 \"Unexpected end of string\" UserInfo=0xc0ab830 {NSLocalizedDescription=Unexpected end of string}"
8/31/12 9:33:23.265 PM TAOMobile: -JSONValue failed. Error trace is: (
"Error Domain=org.brautaset.JSON.ErrorDomain Code=11 \"Unexpected end of string\" UserInfo=0xaec1590 {NSLocalizedDescription=Unexpected end of string}"
Here is how we make the call.
RestServiceAdapter restServiceAdapter = Model.createRestServiceAdapter();
restServiceAdapter.clearRequestProperties();
restServiceAdapter.setConnectionName("TAORestWebService");
restServiceAdapter.setRequestType(RestServiceAdapter.REQUEST_TYPE_GET);
restServiceAdapter.addRequestProperty("Content-Type", "application/json");
restServiceAdapter.setRetryLimit(0);
restServiceAdapter.setRequestURI(argRequestURI);
String response = "";
// It's a GET request, so there's no payload
response = restServiceAdapter.send("");
System.out.println("Response from the server: " + response);

Added this after looking at one of the forum entry.
restServiceAdapter.addRequestProperty("Accept", "application/json; charset=UTF-8");
And issue is resolved. Documentation update in sample code would help others.
Edited by: Chandresh on Sep 4, 2012 2:36 PM

Similar Messages

  • Getting strange error with connect by clause

    Hi Everyone,
    I have a 2 test oracle databases and each of them contain a table called department (dept_no,dept_name, main_dept_no) where each department entry is connected to main department by dept_no in the MAIN_DEPT_NO column.
    The strange problem is when I execute the query on the 1 ^st^ database I get D.DEPT_NO is not available column (D.* all columns from department table) but it is there and what is more strange this query works fine on 2 ^nd^ database.
    Is there any settings I have to do in the database so that it can work with connect by clause ?
    SELECT SUBSTR(LPAD(' ', 4*(LEVEL))  || '· ' ||DEPT_NAME,1,50)  DEPT_NAME_HY, D.*
    FROM PERSONEL.DEPARTMENT D
    START WITH MAIN_DEPT_NO IS NULL
    CONNECT BY PRIOR DEPT_NO=MAIN_DEPT_NOThank you.

    SSU wrote:
    Hi Everyone,
    I have a 2 test oracle databases and each of them contain a table called department (dept_no,dept_name, main_dept_no) where each department entry is connected to main department by dept_no in the MAIN_DEPT_NO column. Did you mean two SCHEMAs or tow databases?
    Please post DB version.
    The exact error message you are getting.
    output of the below from the DB rom where you are getting the error
    DESC PERSONEL.DEPARTMENT

  • I am using apple configerator. I am unable to prepare or supervise 1 ipad. After preparing, I get an error that says "refresh completed but with an error, unable to verify supervision state" . I have erased all content and set up as a new ipad.

    I am using apple configerator. I am unable to prepare or supervise 1 ipad. After preparing, I get an error that says "refresh completed but with an error, unable to verify supervision state" . I have erased all content and set up as a new ipad and tried again with no success. Any help would be appreciated

    Hello jaybearden,
    Thanks for the question. After reviewing your post, it sounds like you are not able to restore the iOS device since you get an error 9. I would recommend that you read this article, it may be able to help the issue.
    Resolve iOS update and restore errors - Apple Support
    Check your security software
    Related errors: 2, 4, 6, 9, 1000, 1611, 9006. Sometimes security software can prevent your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't preventing a connection to the Apple servers.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • What is a user parameter list in iMovie? I am trying to sent the movie from imovie to idvd and I keep getting an error with the user parameter list. Help?

    What is a user parameter list in iMovie? I am trying to sent the movie from imovie to idvd and I keep getting an error with the user parameter list. Help?

    Can you give more details?   What exactly is the entire error message text?  there should be an error number too.   Are you trying to finalize this to an external disk?

  • No point of using Skype.. calls are getting drop f...

    No point of using Skype.. calls are getting drop frequently..
    I have waisted time and money too here.
    My calls are getting dropped again and again.. now i am thinking how to finish available balance.
    anybody can suggest me how to use my rest money because calling someone is not worth.

    Please,  run the DirectX diagnostics tool. Go to Windows Start  and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post. Be aware that you will have to zip this file before attaching it here.

  • When we post Inbound Invoice IDocs, we are getting an error message "Enter a tax jurisdiction code".

    Hi Experts,
    When we post Inbound Invoice IDocs, we are getting an error message "Enter a tax jurisdiction code". As checked, we have configured OBCD and OBCA for the vendor and we are passing the Tax Jurisdiction code in E1EDP04 SAL segment. Can anybody give us some idea to resolve this issue.
    Regards,
    Sameek

    Hi Sameek,
    Please refer the below link. Hope it helps.
    http://scn.sap.com/thread/1435286
    Regards,
    Chandan.

  • Keeping getting an error with-in the App Store. Error 100 saying that my payment can't be received at the time. I updated to Mountain Lion to download the new Logic Pro X. Now left with now recording software and it's not letting me buy the new one.

    Keeping getting an error with-in the App Store. Error 100 saying that my payment can't be received at the time. I updated to Mountain Lion to download the new Logic Pro X. Now left with now recording software and it's not letting me buy the new one.
    iMac, OS X Mountain Lion (10.8.4), trying to get Logic Pro X

    Hello jst84,
    The following article may be helpful in getting your purchase to complete.
    Mac App Store: "An unknown error occurred (100)" when purchasing
    http://support.apple.com/kb/TS3637
    Cheers,
    Allen

  • When installing Premiere Elements I get an error with Shared Technologies

    When installing Premiere Elements onto a Windows XP Service Pak 3, I get an error with Shared Technologies.

    Hi,
    Thx for the reply.
    I had Bridge open in background and once I closed that Elements installed correctly.
    Thank you.

  • HT3275 Can some HELP, I keep getting this error with my Time Machine Back up, "The backup disk image "/Volumes/JKPN Safe/JKPN IMAC.sparsebundle" is already in use.

    Can some one HELP me , I keep getting this error with my Time Machine Back up, "The backup disk image “/Volumes/JKPN Safe/JKPN IMAC.sparsebundle” is already in use.

    See > http://pondini.org/TM/C12.html

  • CCM we are getting timeout error.

    Hello Gurus
    In CCM2.0 & SRM4.0 we are having issue while creating shopping cart from CCM.We are getting timeout error.
    When we checked report /CCM/CHECK_TREX it's not showing the master catalog file too.
    We have tried full & delta publishing also but it didn't resolved the issue.
    Can any have any suggesstion for it.
    Best Regards.
    Sandip.
    Edited by: Saha Sandip on May 19, 2011 11:38 AM

    Hi Sandip,
    Please close this thread, it is already created on the SRM General forum.
    Thank you
    Lisa

  • Having a problem with iphone 4S. Phone calls are getting dropped and cutting in and out.

    I seem to have very little or no service at all recently.
    All my calls are cutting in and out or hanging up in the middle of a conversation. I have to stand in the corner or my kitchen to get a clear call or get at least 2 bars.
    I called Verizon yesterday and tried a few things they suggested but nothing worked.
    I dont have another phone to call them back on since they suggest we call from a different phone until the late evening. Someone was supposed to call my back and never did.
    Not sure on what else to do.
    I am extremely frustrated and annoyed that I cant even really use my phone.
    HELP

    If the on/off switch does not work, that is a hardware problem. The other problems may be related to a hardware problem or faulure as well.
    Make an appointment at an Apple store if there is one nearby to confirm.

  • How can I edit iCal server addresses in Mountain Lion? I keep getting an error with regards to my google calendar and I understand that the way to fix the problem is adjust the server address, but I cannot access it because the preferences are restrictive

    How can I edit iCal server addresses in Mountain Lion?
    I keep getting an error message with my google calendar, and I heard that if I delete the extra slash at the end of the address the problem will be fixed. But the iCal account preferences take me to system preferences > accounts every time I want to edit the account.
    Does anyone know where I can edit the server address?

    You should ask in the iCloud forum, this is for iMacs. https://discussions.apple.com/community/icloud/icloud_on_my_mac

  • Hello, we are using Lab View, to run testers, for checking our production parts. At different times during testing we are getting an error message with a number indicating something.

    The number appears to be different every time. The error will stop the test. Sometimes, the test will complete, but instead of passing or failing, we get an error message. Most times these keep comingup every other or every 3rd part.Most times we can reset the problem, and at least get rid of the errors for a while, by shutting down the whole system, including the main disconnect. Then powering back up. HELP!! This has been going on too long!!

    What's the error number and message? Is it a LabVIEW error code or a user created one?

  • Getting an error - with date prompt

    Hi,
    I really need a help to resolve this issue -
    I have created a date prompt As of date with presentation variable name CPG_CASH_DATE.
    I have use this variable in different number columns - Amount Due Original , Amount Applied , Amount Due Remaining.
    Inside the amount due original the function is CASE WHEN "Fact - CPG AR Payment Schedules"."Due Date" <=CAST(CAST(substring(('@{CPG_CASH_DATE}'),1,4)||'/'||substring(('@{CPG_CASH_DATE}'),6,2)||'/'||substring(('@{CPG_CASH_DATE}'),9,2)||' 00:00:00' AS CHAR) AS DATE) THEN ifnull("Fact - CPG AR Payment Schedules"."Amount Due Original",0) ELSE 0 END
    Inside the amount applied the function is CASE WHEN "Fact - CPG AR Payment Schedules"."Due Date" <=CAST(CAST(substring(('@{CPG_CASH_DATE}'),1,4)||'/'||substring(('@{CPG_CASH_DATE}'),6,2)||'/'||substring(('@{CPG_CASH_DATE}'),9,2)||' 00:00:00' AS CHAR) AS DATE) THEN ifnull("Fact - CPG AR Payment Schedules"."Amount Applied",0) ELSE 0 END
    Sometimes it is working -but now I am getting below error.
    Oracle Error code: 1861, message: ORA-01861: message: ORA-01861: literal does not match format string
    at OCI call OCIStmtExecute:
    Please help me to resolve this issue.
    Poojak

    Poojak,
    This is a common error when attempting CAST to dates. I've resolved this in the past using Gerad's post here, http://gerardnico.com/wiki/dat/obiee/cast_as_date
    I'm not sure why you are getting thie inconsistency when you say it was "sometimes" working and now it is not. Perhaps you've been in iterative develpment and changed a few things which broke something here.
    Take a look at Gerad's notes that this will resolve your issue.
    Please awards points if this helps or answers your question.
    Cheers,
    Christian
    http://www.artofbi.com

  • Getting an error with Netflix app-

    I can pick a movie/show and hit play- it just "loads" and then comes up with an error.  I have tried everything: reset network settings, deleted app and reinstalled it, shut it off, signed out/in. not on Ipad just Iphone.
    Anyone else??? I called Netflix and they said that it was my phone provider- called ATT and they even reset my phone on the network- not my service..... I reset network settings about a week ago and it worked for 2 days... getting the error again....

    Sorry, there are million of apps in the App Store.
    Apple do not fix 3rd parties apps. It's the responsibility of the developer.
    Maybe some other Netflix user can help.
    Did you go to their forum?
    Netflix Forum - Netflix Account Support Forums

Maybe you are looking for