易截截图软件、单文件、免安装、纯绿色、仅160KB

json有关xml问题

                        TestBean msg = new TestBean();

msg.setId("dist1");

msg.setName("peng1");

TestBean msg1 = webResource.accept(MediaType.APPLICATION_JSON_TYPE)
.post(new GenericType <TestBean>() {}, msg);

System.out.println(msg1.getId());

System.out.println(msg1.getName());
我用json客户端接受服务端传过来的对象时。结果是有了,但出现了下面的异常。不知道如何解决。
警告: JAXP feature XMLConstants.FEATURE_SECURE_PROCESSING cannot be set on a SAXParserFactory. External general entity processing is disbaled but other potential securty related features will not be enabled.
org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl. <init>(Unknown Source)
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(Unknown Source)
at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(Unknown Source)
at com.sun.jersey.core.impl.provider.xml.SAXParserContextProvider.getInstance(SAXParserContextProvider.java:77)
at com.sun.jersey.core.impl.provider.xml.SAXPar


相关问答:

XML轉DataSet、DataTable

我想要一個通用的xml轉DataTable,xml文件來自不同的文檔,
例如:excel文檔另存為xml文檔怎么把這個xml文檔轉換成DataSet、DataTable ......

好 请问有什么XML的好书

好 我想学习XML好书,请问有什么书,可以深入的学习下的 谢谢
无废话XML 台湾两只老虎

XML入门经典

友情 帮顶。

无废话XML 台湾两只老虎知识点比较少

XML从入门到精通
......

如何获取运行telnet命令后返回的xml字串信息

Ganglia中的gmond组件可以收集机器资源的信息,通过命令:telnet localhost 8649 后,就会在屏幕上返回一个xml格式的资源信息的字串。请问在java中如何获取telnet返回的结果呢?(在java中我知道怎么去调用telnet命 ......

如何对xml内容数据进行比较 - VC/MFC / HTML/XML

如何对xml内容数据进行比较
例如:
<?xml version='1.0' encoding='utf-8'?>
  <TestLIST>
  <PID>40</PID>
  <TestName>深圳市</TestName> ......

ie6 xml 高分求解!

浏览器IE6
在一个页面中有一个连接,连接的页面内容如下:
<%@ page contentType="text/xml; charset=UTF-8" language="java"%>
<?xml version="1.0" encoding=& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号