严重: No message body writer has been found for class java.util.ArrayList, ContentType: application/xm
来源:互联网 发布:无风险套利知乎 编辑:程序博客网 时间:2024/06/05 16:41
这几天,在用CXF做一个从内网数据库读取信息到外网数据库时,出现了一个错误:如下
严重: No message body writer has been found for class java.util.ArrayList, ContentType: application/xml
这是肿么了?百度不得其解,没有办法了!一步一步调试吧,打印sql,没问题;读取数据库的字段也没有问题!最后才发现原来我们在读取数据库的信息封装成xml文件时,javabean实体类前要加一个注解,如下:
@XmlRootElement(name = "VipCustomer")
public class CustBean implements Serializable {
}
问题解决,真是太小白了!
1 0
- 严重: No message body writer has been found for class java.util.ArrayList, ContentType: application/xm
- android开发:报错 No message body writer has been found for class java.util.HashMap, ContentType: */*
- No message body writer has been found for class
- No message body writer has been found for response class HibernateQueryException问题解决
- 开发webservice 遇到问题 No message body writer has been found for class
- javax.ws.rs.ProcessingException: org.apache.cxf.interceptor.Fault: No message body writer has been f
- Java.lang.RuntimeException: No application id has been found.
- Java.lang.RuntimeException: No application id has been found.解决办法
- Java.lang.RuntimeException: No application id has been found.
- java.lang.RuntimeException: No application id has been found.
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- 启动MyEclipse 出现java.lang.RuntimeException: No application id has been found 解决办法
- MyEclipse启动之java.lang.RuntimeException: No application id has been found.
- myeclipse启动报如下错误:java.lang.RuntimeException: No application id has been found.
- eclipse启动失败java.lang.RuntimeException: No application id has been found.
- 启动MyEclipse 出现java.lang.RuntimeException: No application id has been found 解决办法
- MyEclipse启动之java.lang.RuntimeException: No application id has been found.
- 调用手机号码归属地接口获取手机号码信息
- _splitpath, _wsplitpath 分割路径
- hiberante学习笔记(一)
- 滴滴有感
- Dubbo 学习
- 严重: No message body writer has been found for class java.util.ArrayList, ContentType: application/xm
- ubuntu server安装
- Access数据库使用
- 《盗梦空间》
- [Cloud Computing]Mechanisms: SLA Monitor
- R连接mysql数据库基本步骤
- memset函数初始化数组
- poj 2586 Y2K Accounting Bug
- too old (format 29) to work with client version '1.8.9 (r1591380)' (expects format 31).