2013年9月5日星期四

JSON when abnormal End of input at character 1 of

The exception to break out because org.json.JSONException: End of input at character 1 of

do not know you have not encountered

my post request

httpPost.setEntity (urlEncodedFormEntity);
System.out.println (" Parameters :" + url + ";" + params + ";" + ; httpPost);
/ / exception sentence
HttpResponse httpResponse = httpClient.execute (httpPost);

httpPost statement also go , the content can be played out

But do not go back

On the server side can not see my request


how does that matter , online , etc. , thank you slightly !
------ Solution ---------------------------------------- ----
you are try to go exception of network links when it
This is caused by the network .
see if there are problems to run a virtual machine
If there is , then starting from the code to check to see if forget to add internet permission of Manifest.xml
<uses-permission android:name="android.permission.INTERNET"></uses-permission>

If not , check your equipment up .
wireless network card device is possibly a problem , or your wireless router problems, or anything else, such as your sim card uim card or something, whether it can be a normal link networks. .

------ For reference only ---------------------------------- -----
ccacacacacacac
------ For reference only ----------------------------- ----------
but the browser to open the URL , it is no problem ah ? Solving

------ For reference only ---------------------------------- -----
I also encountered the same problem , do not know how to solve ?

------ For reference only ---------------------------------- -----
not solve this problem , ah, I also encountered the same problem ? ? Kink

没有评论:

发表评论