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

android 的 XML RPC - 無法創建 XML 解析:org.xml.sax.Sax

XML RPC for android - Unable to create the XML parse: org.xml.sax.SaxNotRecognizedException(android 的 XML RPC - 無法創建 XML 解析:org.xml.sax.SaxNotRecognizedException)
本文介紹了android 的 XML RPC - 無法創建 XML 解析:org.xml.sax.SaxNotRecognizedException的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我的問題正是 this 問題,只有答案對我沒有幫助.

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

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

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.

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

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

推薦答案

一個可能的解決方法是阻止 apache xml-rpc 設置這些功能.由于這些設置無論如何都不受支持,所以這應該不是問題(對我來說很好).

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
    }

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

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

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

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

相關文檔推薦

Upload progress listener not fired (Google drive API)(上傳進度偵聽器未觸發(Google 驅動器 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 - 無效的 DriveId 和 Null ResourceId)
Google drive api services account view uploaded files to google drive using java(谷歌驅動api服務賬戶查看上傳文件到谷歌驅動使用java)
Google Drive service account returns 403 usageLimits(Google Drive 服務帳號返回 403 usageLimits)
com.google.api.client.json.jackson.JacksonFactory; missing in Google Drive example(com.google.api.client.json.jackson.JacksonFactory;Google Drive 示例中缺少)
主站蜘蛛池模板: 99免费精品视频 | 久久久精品亚洲 | 久久99精品久久久久久秒播九色 | 国产欧美一区二区三区在线看蜜臀 | 国产精品一区二区不卡 | 日韩在线播放av | 国产一区二区成人 | 亚洲国产成人一区二区 | 亚洲综合色自拍一区 | 综合网在线 | cao在线| 国产日产精品一区二区三区四区 | 色婷婷综合成人av | 国产精品视频网址 | 午夜资源 | 成人午夜精品 | 亚洲精品专区 | 色婷婷国产精品综合在线观看 | 欧美精品久久 | 综合第一页 | 美女在线视频一区二区三区 | 91精品国产91久久久久久 | 成年人免费网站 | 欧美精品1区2区3区 免费黄篇 | 激情综合五月 | 久久久久国产视频 | 91成人小视频 | 日韩一区二区三区视频 | 天堂一区二区三区 | 一片毛片 | heyzo在线| 欧美激情欧美激情在线五月 | 99久热在线精品视频观看 | 国产精品久久久久久久久久久免费看 | 97精品国产97久久久久久免费 | 天天夜碰日日摸日日澡 | 久久日韩粉嫩一区二区三区 | 九九九久久国产免费 | 中文视频在线 | 激情五月婷婷综合 | 一区二区在线 |