报错:java.util.Map is an interface, and JAXB can't handle interfaces.
来源:互联网 发布:淘宝被同行刷直接访问 编辑:程序博客网 时间:2024/05/29 18:13
严重: Context [/cgf_service] startup failed due to previous errors at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:330) ... 68 moreCaused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptionsjava.util.Map is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at java.util.Map at private java.util.Map org.sklse.management.service.jaxws_asm.InvokeServiceMethod2.transportData at org.sklse.management.service.jaxws_asm.InvokeServiceMethod2java.util.Map does not have a no-arg default constructor. this problem is related to the following location: at java.util.Map at private java.util.Map org.sklse.management.service.jaxws_asm.InvokeServiceMethod2.transportData at org.sklse.management.service.jaxws_asm.InvokeServiceMethod2
解决方法:将服务端的services接口返回的Map类型的值改为HashMap.
因为在做webService复杂类型值传递时,返回值的类型不要用接口类型。例如List应该改为ArrayList,Map改为HashMap等。
0 0
- 报错:java.util.Map is an interface, and JAXB can't handle interfaces.
- 报错:java.util.Map is an interface, and JAXB can't handle interfaces.
- java.util.Map is an interface, and JAXB can't handle interfaces.
- SpringMvc报错解决:Failed to instantiate [java.util.List]: Specified class is an interface
- 国际化java.util.MissingResourceException: Can't find bundle for base name message报错
- JAXB 序列化 java.util.Map
- mybatis 报错 Specified class is an interface
- TabHost 报Activity can`t be added util containing is created;
- 关于运行期异常:Failed to instantiate [java.util.List]: Specified class is an interface
- 错误:Could not instantiate bean class [java.util.List]: Specified class is an interface
- 关于运行期异常:Failed to instantiate [java.util.List]: Specified class is an interface
- 关于运行期异常:Failed to instantiate [java.util.List]: Specified class is an interface
- 解决Failed to instantiate [java.util.List]: Specified class is an interface问题
- Failed to instantiate [java.util.List]: Specified class is an interface
- 解决Failed to instantiate [java.util.List]: Specified class is an interface问题
- Could not instantiate bean class [java.util.List]: Specified class is an interface
- MongoDB报错:"assertion" : "can't map file memory"
- springMVC接受list报错:Could not instantiate bean class [java.util.List]: Specified class is an interf
- 2016/04/8
- Linux iftop --网络流量监控
- Qt下 QString转char*
- C#基础-获得当前程序的 空间名.类名.方法名
- Fiddler抓包工具的配置
- 报错:java.util.Map is an interface, and JAXB can't handle interfaces.
- c++第二次作业
- ie8兼容css3的样式 如@media
- tomcat
- Linux iostat --对系统磁盘操作进行监控 2013年7月4日
- git rm简介
- 随笔记---web前端
- SurfaceView——重要的绘图组建
- 自定义PHP页面跳转函数redirect($url, $time = 0, $msg = '')