atrijitdasgupta / wordpress-java

Automatically exported from code.google.com/p/wordpress-java
Other
0 stars 0 forks source link

XmlRpcException: A network error occurred. #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 9 years ago
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 9 years ago
My bad, the app needed the "INTERNET" permission....

Original comment by Gares...@gmail.com on 21 Sep 2012 at 10:40

GoogleCodeExporter commented 9 years ago

Original comment by c...@bican.net on 21 Sep 2012 at 12:25