gpt4 book ai didi

java - 是什么导致 SAXException2 : Instance of “com.foo.Bar” is substituting “java.lang.Object” , 但 “com.foo.Bar” 绑定(bind)到匿名类型

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:01:22 45 4
gpt4 key购买 nike

<分区>

将现有的 jaxb(同时使用 jaxb1.0.1 和 jaxb 2.0.5)应用程序(在带有 jdk5 的 JBoss 4.3 上)迁移到 jaxb 2.1.10(随 jdk6 提供,更新 jdk1.6.0_30)。

我无法修改客户提供的架构。

我已经从 Sun RI 中删除了对 jaxws20、jwsdp、jaxp 和 jaxb jar 的所有引用,并且我只使用 jdk 6 提供的 jar。

任何指针??

Caused by: com.sun.istack.SAXException2: Instance of “com.foo.Bar” is substituting “java.lang.Object”, but “com.foo.Bar” is bound to an anonymous type com.foo.Bar@a2e3ss
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:247)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:662)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:165)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:332)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:698)
at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:332)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:592)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:320)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:493)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:325)

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com