XmlRpcException: A network error occurred.
Closed this issue · 3 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1.Android Application
2.AsyncTask to get the most recent posts
3.public List<Page> wpGetPosts() throws MalformedURLException,
XmlRpcFault {
String username = "user";
String password = "pwd";
String xmlRpcUrl = "blogurl/xmlrpc.php";
Wordpress wp = new Wordpress(username, password, xmlRpcUrl);
List<Page> recP = wp.getRecentPosts(10);
return recP;
}
wp.getRecentPosts(10) seems to return nothing, and I have "XmlRpcException: A
network error occurred."
When I tried the Main class in the example package I got the most recent post
of my site.
I'm using jwordpress 0.5.1, Windows 7 64bit and Wordpress 3.4.1
Original issue reported on code.google.com by Gares...@gmail.com
on 19 Sep 2012 at 2:41
GoogleCodeExporter commented
If not really a network related problem, it should be about the blog url.
BTW, I'm guessing you're testing it on the Android simulator, it may really be
a networking problem. Can you check in your code if you can ping the blog host?
Original comment by c...@bican.net
on 20 Sep 2012 at 5:28
GoogleCodeExporter commented
My bad, the app needed the "INTERNET" permission....
Original comment by Gares...@gmail.com
on 21 Sep 2012 at 10:40
GoogleCodeExporter commented
Original comment by c...@bican.net
on 21 Sep 2012 at 12:25
- Changed state: WontFix