Uploaded image for project: 'XML-RPC'
  1. XML-RPC
  2. XMLRPC-81

Failed to parse servers response:Unexpected non-whitespace character data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 3.0a1
    • None
    • Releases
    • None
    • Windows 2000 | JDK1.5 | ANT 1.6.5

    Description

      The server is PHP XML-RPC, the client used XMLRPC 3.0a, but i got the following exception:
      [java] Exception in thread "main" org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers response: Unexpecte
      d non-whitespace character data
      [java] at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:267)
      [java] at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:216)
      [java] at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
      [java] at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
      [java] at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
      [java] at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
      [java] at com.bokeland.imports.web.XmlRpcService.displayImporters(XmlRpcService.java:17)
      [java] at com.bokeland.imports.web.XmlRpcService.main(XmlRpcService.java:24)
      [java] Caused by:
      [java] org.xml.sax.SAXParseException: Unexpected non-whitespace character data
      [java] at org.apache.xmlrpc.parser.TypeParserImpl.characters(TypeParserImpl.java:79)
      [java] at org.apache.xmlrpc.parser.RecursiveTypeParserImpl.characters(RecursiveTypeParserImpl.java:139)
      [java] at org.apache.xmlrpc.parser.MapParser.characters(MapParser.java:79)
      [java] at org.apache.xmlrpc.parser.RecursiveTypeParserImpl.characters(RecursiveTypeParserImpl.java:142)
      [java] at org.apache.xmlrpc.parser.RecursiveTypeParserImpl.characters(RecursiveTypeParserImpl.java:142)
      [java] at org.apache.xerces.parsers.AbstractSAXParser.characters(Unknown Source)
      [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source)
      [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      [java] at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:265)
      [java] at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:216)
      [java] at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
      [java] at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
      [java] at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
      [java] at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
      [java] at com.bokeland.imports.web.XmlRpcService.displayImporters(XmlRpcService.java:17)
      [java] at com.bokeland.imports.web.XmlRpcService.main(XmlRpcService.java:24)
      [java] Java Result: 1

      The request message is:
      <?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>blogger.getImporters</methodName><params><param><value>myname</value></param><param><value>myname</value></param></params></methodCall>

      The response message is:

      <?xml version="1.0" encoding="UTF-8"?>
      <methodResponse>
      <params>
      <param>
      <value>
      <array><data>
      <value><struct>
      <member><name>blog_id</name><value><string>333</string></value></member>
      <member><name>user_id</name><value><string>333</string></value></member>
      <member><name>url</name><value><string>http://jnn.blogbus.com/index.rdf</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>905</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><boolean>0</boolean></value></member>
      <member><name>comments</name><value><int>0</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>164</string></value></member>
      <member><name>user_id</name><value><string>164</string></value></member>
      <member><name>url</name><value><string>http://www.movblog.cn/rss.xml</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>902</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><boolean>0</boolean></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>26</string></value></member>
      <member><name>user_id</name><value><string>26</string></value></member>
      <member><name>url</name><value><string>http://spaces.msn.com/ulyssus20ulyssus/feed.rss</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>48</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><boolean>0</boolean></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>91</string></value></member>
      <member><name>user_id</name><value><string>91</string></value></member>
      <member><name>url</name><value><string>http://spaces.msn.com/techie01977/feed.rss</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>212</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><boolean>0</boolean></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>70</string></value></member>
      <member><name>user_id</name><value><string>70</string></value></member>
      <member><name>url</name><value><string>http://rss.zol.com.cn/game.xml</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>131</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><array><data>
      <value><string>?????</string></value>
      </data></array></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>335</string></value></member>
      <member><name>user_id</name><value><string>335</string></value></member>
      <member><name>url</name><value><string>http://youya10.blogbus.com/index.rdf</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>907</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><boolean>0</boolean></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>335</string></value></member>
      <member><name>user_id</name><value><string>335</string></value></member>
      <member><name>url</name><value><string>http://spaces.msn.com/youya10/feed.rss</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>907</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><boolean>0</boolean></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>103</string></value></member>
      <member><name>user_id</name><value><string>103</string></value></member>
      <member><name>url</name><value><string>http://spaces.msn.com/lipp415/feed.rss</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>268</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><boolean>0</boolean></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>20</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>79</string></value></member>
      <member><name>user_id</name><value><string>79</string></value></member>
      <member><name>url</name><value><string>http://spaces.msn.com/benshuier/feed.rss</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>160</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><boolean>0</boolean></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>45</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>48</string></value></member>
      <member><name>user_id</name><value><string>48</string></value></member>
      <member><name>url</name><value><string>http://cn.engadget.com/category/media-pcs/rss.xml</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>87</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><array><data>
      <value><string>mac</string></value>
      <value><string>apple</string></value>
      </data></array></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>6</string></value></member>
      <member><name>user_id</name><value><string>6</string></value></member>
      <member><name>url</name><value><string>http://news.163.com/special/r/00011K6L/rss_newstop.xml</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>196</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><array><data>
      <value><string></string></value>
      </data></array></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>204</string></value></member>
      <member><name>user_id</name><value><string>204</string></value></member>
      <member><name>url</name><value><string>http://spaces.msn.com/loadmemory/feed.rss</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>703</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><array><data>
      <value><string>?????</string></value>
      </data></array></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>166</string></value></member>
      <member><name>user_id</name><value><string>166</string></value></member>
      <member><name>url</name><value><string>http://diversity.blog.hexun.com/rss2.aspx</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>464</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><array><data>
      <value><string>health</string></value>
      </data></array></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      <value><struct>
      <member><name>blog_id</name><value><string>349</string></value></member>
      <member><name>user_id</name><value><string>349</string></value></member>
      <member><name>url</name><value><string>http://angeleefly.blogbus.com/index.rdf</string></value></member>
      <member><name>category_ids</name><value><array><data>
      <value><string>942</string></value>
      </data></array></value></member>
      <member><name>external_category_ids</name><value><array><data>
      <value><string></string></value>
      </data></array></value></member>
      <member><name>comments</name><value><int>1</int></value></member>
      <member><name>status</name><value><string>1</string></value></member>
      <member><name>high_water_mark</name><value><string>1</string></value></member>
      </struct></value>
      </data></array>
      </value>
      </param>
      </params>
      </methodResponse>

      P.S. The response contains some chinese , but i don't know if it's cause the problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            maomaode maomaode
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: