Support » Plugins » XmlRpcException when I goes to post data

  • I have a code to post data on word press i.e.-

    String username = "xyz";
    String password = "xyz";
    String xmlRpcUrl = "";
    WordPress wp = new WordPress(username, password, xmlRpcUrl);
    Page recentPost = new Page();
    String result = wp.newPost(recentPost, true);

    These same code was working 2 month but now its not working. Now when I goes to post data is showing an exception i.e.-

    [Fatal Error] :2:6: The processing instruction target matching “[xX][mM][lL]” is not allowed.
    redstone.xmlrpc.XmlRpcException: The response could not be parsed.
    at redstone.xmlrpc.XmlRpcClient.handleResponse(Unknown Source)
    at redstone.xmlrpc.XmlRpcClient.endCall(Unknown Source)
    at redstone.xmlrpc.XmlRpcClient.invoke(Unknown Source)
    at redstone.xmlrpc.XmlRpcProxy.invoke(Unknown Source)
    at net.bican.wordpress.$Proxy1.newMediaObject(Unknown Source)
    at net.bican.wordpress.Wordpress.newMediaObject(
    at WordPressPost.DataWordpressPost.DataPost(
    at arrestcentral.ArrestData.readPdf(
    at arrestcentral.ArrestpdfLink.pdfLink(
    at arrestcentral.ArrestpdfLink.startPosting(
    at arrestcentral.ArrestpdfLink.main(
    Caused by: redstone.xmlrpc.XmlRpcException: A problem occured during parsing
    at redstone.xmlrpc.XmlRpcParser.parse(Unknown Source)
    … 11 more
    Caused by: org.xml.sax.SAXParseException: The processing instruction target matching “[xX][mM][lL]” is not allowed.
    … 12 more

    I am using
    WordPress 3.2.1

  • The topic ‘XmlRpcException when I goes to post data’ is closed to new replies.