`
link1987330
  • 浏览: 23242 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

error generating JAXB model

阅读更多
前几天因项目需要使用eclipse的XFire插件来自动生成webservice客户端代码,在生成代码的时候总是报error generating JAXB model,但是使用axis2的插件生成时却能正常生成。这个错误字面翻译为:错误的生成JAXB模型。JAXB是一项可以根据XML Schema产生Java类的技术。

后经查找,发现是由于命名规则引起的。服务器实体中一个字段的命名为_ADD_RESS,但是实体中有另一字段为ADDRESS,客户端使用的是XFire插件生成时,自动命名会将_ADD_RESS下划线全部去除,命名变为ADDRESS,就和原本的ADDRESS冲突了,而axis2的命名不会把下划线去除,俩字段命名不冲突,所以能正常生成。
解决方法就是在使用XFire的时候修改掉服务器实体中一个字段名称,或删掉一个。

对于这种错误的排查,可以试着将服务端实体类中的属性全部删除,只留一个,如果这样能正常生成就能确定是服务端的实体类中属性命名冲突问题了,接下去。。。大家都懂了。。。

希望对遇到同样错误的朋友有帮助!
分享到:
评论

相关推荐

    Modelling and Generating Ajax Applications A Model-Driven Approach

    ### Modelling and Generating AJAX Applications: A Model-Driven Approach #### Introduction AJAX (Asynchronous JavaScript and XML) represents a significant shift in the way interactive web applications...

    A hybrid approach for generating investor views in Black–Litterman model.pdf

    Black-Litterman模型是投资组合优化领域中的一个重要理论,它由 Fischer Black 和 Robert Litterman 在1992年提出。该模型的核心理念是将投资者的观点(或信念)纳入到资产配置的过程中,使得投资决策更加主观化且...

    Multi-emotional single-track music generating model based on LSTM

    近年来,随着短视频平台的崛起,用户通过制作视频分享自己生活的方式日益普及。背景音乐作为短视频不可或缺的组成部分,在情感表达上扮演着至关重要的角色。然而,目前短视频平台上的背景音乐相对单一,同时牵涉到...

    Wrox 的 Generating Code from the Visio Model

    ### Wrox 的 Generating Code from the Visio Model #### 概述 在软件开发过程中,从UML模型自动生成代码是一项非常高效且节省时间的技术。这一技术不仅有助于减少手动编码的工作量,还可以确保代码与设计的一致性...

    A_dynamical_model_for_generating_synthetic_electrocardiogram_signals

    electrocardiogram ( A_dynamical_model_for_generating_synthetic_electrocardiogram_signals.pdf ) 您可以上传小于50MB的文件

    Generating Artifacts问题解决.doc

    MESSAGE An internal error occurred during: "Generating Artifacts". !STACK 0 java.lang.IllegalArgumentException: Path must include project and resource name: / at org.eclipse.core.runtime.Assert.is...

    Matlab COM之MWMCR::EvaluateFunction error问题解决

    根据提供的内容描述,出现的错误为`MWMCR::EvaluateFunction error: Undefined function or method 'sim' for input arguments of type 'struct'`。此错误表明Matlab无法识别名为`sim`的函数,并且该函数试图处理...

    Generating Functionology

    《Generating Functionology》这本书由赫伯特·S·威尔夫(Herbert S. Wilf)编写,是关于生成函数及其在离散数学中的应用的一本著作。本书探讨了生成函数作为离散数学与连续分析之间桥梁的角色,特别强调了它在处理...

    adv Generating a Map Application源码

    adv Generating a Map Application源码

    adv Generating a Map Application 题目

    adv Generating a Map Application 题目

    A Face-to-Face Neural Conversation Model

    We showcase our joint face-text model in generating more natural conversations through automatic metrics and a human study. We demonstrate an example application with a face-to-face chatting avatar.

    QUARTUS II 编译报错Error: Run Generate Functional Simulation Netlist的解决方案

    在使用QUARTUS II进行FPGA项目开发时,编译过程中可能会遇到“Error: Run Generate Functional Simulation Netlist”的错误提示,这通常是由于缺少仿真网表导致的。在解决这个问题之前,我们首先要理解QUARTUS II的...

    Adaptive Model Rules From High-Speed Data Streams

    - To maintain the model's relevance in the face of changes in the data-generating process, AMRules incorporate a Page-Hinkley test. This test monitors the incoming data for any significant shifts and...

    IAR 编译错误清单

    #### 一、Tool Internal Error: Access Violation **错误描述:** 在使用 IAR 6.20 版本进行编译时,遇到了 Tool Internal Error 的问题,具体表现为两次出现相同的内部错误提示: ``` Internal Error: [CoreUtil/...

    Generating Parsers with JavaCC-Centennial

    《Generating Parsers with JavaCC-Centennial》是Tom Copeland撰写的一本书,出版于2009年,主要探讨了如何使用JavaCC工具生成解析器。JavaCC(Java Compiler Compiler)是一个广泛使用的开源工具,它允许开发者用...

    Generating Random Networks and Graphs

    Generating Random Networks and Graphs By 作者: Ton Coolen – Alessia Annibale – Ekaterina Roberts ISBN-10 书号: 0198709897 ISBN-13 书号: 9780198709893 Edition 版本: 1 出版日期: 2017-05-23 pages 页数...

    cuda_compile_generated_NCVPyramid.cu.o.cmake

    安装cuda后,安装opencv出现Error generating file,替换文件即可

    Episode-Based Prototype Generating Network for Zero-Shot Learnin

    在"Episode-Based Prototype Generating Network for Zero-Shot Learning"这篇论文中,作者提出了一种新的训练框架,用于解决零样本学习(ZSL)中的挑战。这个框架基于episode训练,每个episode模拟一个零样本分类...

    Language model

    Infer a language model for each document. Estimate the probability of generating the query according to each of these models. Rank the documents according to these probabilities. Usually a unigram ...

    Axure RP 8.0.0.3269 Update

    Axure RP 8.0.0.3269 Update 11/12/2015 - Bug Fixes - Fixed error generating legacy pages that had not yet been opened - Fixed error generating SVGs with Entities

Global site tag (gtag.js) - Google Analytics