`
Sev7en_jun
  • 浏览: 1225327 次
  • 性别: Icon_minigender_1
  • 来自: 广州
博客专栏
84184fc0-d0b6-3f7f-a3f0-4202acb3caf5
Apache CXF使用s...
浏览量:111298
社区版块
存档分类
最新评论

解决: counts of IllegalAnnotationExceptions and JAXB can't handle interfaces.

 
阅读更多

、Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
java.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 com.cecltd.service.jaxws_asm.SayHi.arg0
                at com.cecltd.service.jaxws_asm.SayHi
java.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 com.cecltd.service.jaxws_asm.SayHi.arg0
                at com.cecltd.service.jaxws_asm.SayHi
解决方法:将服务端的services接口返回的Map类型的值,改成HashMap.
结论:在做webServices复杂类型值传递时,返回值的类型不要用接口类型。例如(List应该改为ArrayList,Map改为HashMap等)

分享到:
评论
1 楼 张晓燕 2015-07-27  
帮助很大,受益了

相关推荐

    EurekaLog_7.5.0.0_Enterprise

    Delphi and C++ Builder files are now located in StudioNum folders instead of old DelphiNum and CBuilderNum folders. Update your search paths if needed 3)....Added: Major improvements in ...

    Servlets和JSP核心技术 卷2(英文版) 第一部分

    The Struts Flow of Control and the Six Steps to Implementing It Section 10.4. Processing Requests with Action Objects Section 10.5. Handling Request Parameters with Form Beans Section 10.6. ...

    Small Loans, Big Dreams How Nobel Prize Winner Muhammad Yunus and Microfinance are Changing the World .pdf

    I have just finished an amazing and inspiring book that I'd like to make you aware of - Small Loans, Big Dreams - by my good friend, colleague, and advisor Alex Counts, President and CEO of the ...

    Servlets和JSP核心技术 卷2(英文版) 第二部分

    The Struts Flow of Control and the Six Steps to Implementing It Section 10.4. Processing Requests with Action Objects Section 10.5. Handling Request Parameters with Form Beans Section 10.6. ...

    Digging into WordPress.pdf

    9.3.1 Monitoring and Fixing Errors ...............................350 9.3.2 Alex King’s 404 Notifier Plugin .....................................................351 9.3.3 Broken Link Checker Plugin ....

    acpi控制笔记本风扇转速

    combinations of prefix handle and pathname. BZ 478 Example Code and Data Size: These are the sizes for the OS- independent acpica.lib produced by the Microsoft Visual C++ 6.0 32- bit compiler. The ...

    ICETOOL.PDF

    ICETOOL is designed to handle a wide range of data processing and reporting tasks, including but not limited to: - **Sorting**: Efficiently sort large datasets based on specified criteria. - **...

    GObject Reference Manual

    Reference counts and cycles Object properties Accessing multiple properties at once The GObject messaging system Closures C Closures non-C closures (for the fearless). Signals Signal ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    The autobaud sequence tries a variety of baud rates, some of which are not supported by RS-232 interfaces (but are supported on USB virtual COM ports). This was not handled properly, so if a call was...

    微软内部资料-SQL性能优化2

    Range of address that can be paged in and out of physical memory. Typically used by drivers who need memory but do not need to access that memory from DPC/dispatch of above interrupt level. ...

    eta-nonfab-deploy-guide-2019oct.pdf

    and packet counts of a flow. In addition, intraflow metadata, or information about events that occur inside of a flow, can be collected, stored, and analyzed within a flow monitoring framework. This ...

    SPSS Data Analysis for Univariate, Bivariate, and Multivariate Statistics

    SPSS Data Analysis for Univariate, Bivariate, and Multivariate Statistics offers a variety of popular statistical analyses and data management tasks using SPSS that readers can immediately apply as ...

    meteor-counts:非常简单的包,可以通过轮询计数

    $ meteor add cottz:counts 快速开始 // server Meteor . publish ( 'users' , function ( ) { var cursor = Meteor . users . find ( ) ; Counts . create ( cursor , 'users' , 5000 ) . publish ( this ) ; ...

    S7A驱动720版本

    Please make sure that slot number of the CPU is entered and not of the Profibus-CP!! - The driver now supports the different date and time data types of the S7 PLC. See Topic "Hardware Options ...

    Agile.Metrics.in.Action.16172924

    test and build tools, source control, continuous integration, and other built-in parts of the software development lifecycle generate a wealth of data that can be used to track and improve the ...

    代码统计工具(LocMetrics)

    LocMetrics counts total lines of code (LOC), blank lines of code (BLOC), comment lines of code (CLOC), lines with both code and comments (C&SLOC), logical source lines of code (SLOC-L), McCabe VG ...

    BCGControlBarPro.v12.00

    Using a new method CBCGPCalculator::SetExtendedCommands developers can add a lot of build-in calculator commands such as idCommandAdvSin, idCommandAdvCos, idCommandAdvTan and others. ...

    2017年 PRO DG SYSTEMS神庙扬声器中文介绍.pdf

    is a European company based in Casariche (Seville, South of Spain) which was created from the vision, knowledge and more than 30 years of experience of his founder, José Carlos López. Since the...

Global site tag (gtag.js) - Google Analytics