久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

android 的 XML RPC - 無(wú)法創(chuàng)建 XML 解析:org.xml.sax.Sax

XML RPC for android - Unable to create the XML parse: org.xml.sax.SaxNotRecognizedException(android 的 XML RPC - 無(wú)法創(chuàng)建 XML 解析:org.xml.sax.SaxNotRecognizedException)
本文介紹了android 的 XML RPC - 無(wú)法創(chuàng)建 XML 解析:org.xml.sax.SaxNotRecognizedException的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我的問(wèn)題正是 this 問(wèn)題,只有答案對(duì)我沒(méi)有幫助.

My question is exactly this question, only the answer doesn't cut it for me.

答案只是指向this 討論.問(wèn)題的根源顯然與鏈接的 SO 問(wèn)題相同,但我看不出如何將線程末尾提到的解決方法應(yīng)用于我的問(wèn)題.

The answer simply points to this discussion. The root of the problem there is obviously the same as in the linked SO question, but I don't see how I can apply the workaround mentioned by the end of the thread to my problem.

所以問(wèn)題是:在 XML-RPC 案例中,我該如何避免這個(gè)錯(cuò)誤 - 鏈接的 SO-question 中描述的那個(gè)錯(cuò)誤

So the question is: How do I go about to avoid this error in the XML-RPC case - the one described in the linked SO-question

推薦答案

一個(gè)可能的解決方法是阻止 apache xml-rpc 設(shè)置這些功能.由于這些設(shè)置無(wú)論如何都不受支持,所以這應(yīng)該不是問(wèn)題(對(duì)我來(lái)說(shuō)很好).

A possible fix is to prevent apache xml-rpc from setting these features. As these settings are unsupported anyway it shouldn't be a problem (works fine for me).

在 3.1.3 版本中,您需要更改 org.apache.xmlrpc.util.SAXParsers 第 37-50 行:

In version 3.1.3 you need to change org.apache.xmlrpc.util.SAXParsers Lines 37-50:

    try {
        spf.setFeature("http://xml.org/sax/features/external-general-entities", false);
    } catch (javax.xml.parsers.ParserConfigurationException e) {
        // Ignore it
    } catch (org.xml.sax.SAXException e) {
        // Ignore it
    }
    try {
        spf.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
    } catch (javax.xml.parsers.ParserConfigurationException e) {
        // Ignore it
    } catch (org.xml.sax.SAXException e) {
        // Ignore it
    }

只需將它們注釋掉,編譯并替換原來(lái)的 xmlrpc-common jar.

Just comment them out, compile it and replace the original xmlrpc-common jar.

這篇關(guān)于android 的 XML RPC - 無(wú)法創(chuàng)建 XML 解析:org.xml.sax.SaxNotRecognizedException的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Upload progress listener not fired (Google drive API)(上傳進(jìn)度偵聽(tīng)器未觸發(fā)(Google 驅(qū)動(dòng)器 API))
Save file in specific folder with Google Drive SDK(使用 Google Drive SDK 將文件保存在特定文件夾中)
Google Drive Android API - Invalid DriveId and Null ResourceId(Google Drive Android API - 無(wú)效的 DriveId 和 Null ResourceId)
Google drive api services account view uploaded files to google drive using java(谷歌驅(qū)動(dòng)api服務(wù)賬戶(hù)查看上傳文件到谷歌驅(qū)動(dòng)使用java)
Google Drive service account returns 403 usageLimits(Google Drive 服務(wù)帳號(hào)返回 403 usageLimits)
com.google.api.client.json.jackson.JacksonFactory; missing in Google Drive example(com.google.api.client.json.jackson.JacksonFactory;Google Drive 示例中缺少)
主站蜘蛛池模板: www.久久| 中文字幕乱码一区二区三区 | 免费久久网 | 一级做a爰片久久毛片免费看 | 久久精品69 | 亚洲精品久久久久久一区二区 | 日韩一级欧美一级 | 亚洲一区二区三区在线 | 美女国产一区 | 91成人在线| 国产精品视频在线观看 | av网站在线看 | 91在线视频观看免费 | 色婷婷亚洲国产女人的天堂 | 欧美九九 | 国产视频福利一区 | 久久成人免费视频 | 欧美一区二区三区在线 | 久久成人免费视频 | 日韩不卡视频在线 | 天堂资源最新在线 | 国内精品一区二区三区 | 日本一区二区在线视频 | 亚洲欧美激情精品一区二区 | 精品国产亚洲一区二区三区大结局 | 精品一区视频 | 久久精品一区二区视频 | 麻豆国产一区二区三区四区 | 91精品一区二区三区久久久久久 | 国产精品毛片一区二区三区 | 天天摸天天干 | 国产一区二区影院 | av免费观看在线 | 人人干视频在线 | 精品久久免费 | 国产精品国产a | 欧美日韩电影一区二区 | 亚洲444eee在线观看 | 欧美日韩a | 欧美一级免费 | 免费在线观看黄视频 |