JAXB2.2.6使用部分闭合的标记生成损坏的XML
我正在使用jaxb2.2.6和java7update76将对象序列化为本地磁盘上的文件(大小80MB)。XML输出格式为UTF-8。我的操作系统是CentOS 6.3。有时我会看到一些XML元素部分关闭,请参见下面的第三项(元素列1部分关闭): 这通常发生在JAXB密集使用约20小时后,没有任何相关的异常JAXB2.2.6使用部分闭合的标记生成损坏的XML,xml,marshalling,java-7,jaxb2,Xml,Marshalling,Java 7,Jaxb2,我正在使用jaxb2.2.6和java7update76将对象序列化为本地磁盘上的文件(大小80MB)。XML输出格式为UTF-8。我的操作系统是CentOS 6.3。有时我会看到一些XML元素部分关闭,请参见下面的第三项(元素列1部分关闭): 这通常发生在JAXB密集使用约20小时后,没有任何相关的异常 <create-item> <item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type=
<create-item>
<item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="genericGroupEntryItem">
<xmlID>-5987260994489220191</xmlID>
<item-id full-id="generic-group-entry[@dn='5824453118091914208']"/>
<column1>146.185.204.211</column1>
<gateway-status>
<gateway-block-reason str-value=""/>
<gateway-send-reason str-value="AlwaysInGw"/>
</gateway-status>
<parent>4725476808104611397</parent>
</item>
</create-item>
<create-item>
<item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="genericGroupEntryItem">
<xmlID>-5987175959784878857</xmlID>
<item-id full-id="generic-group-entry[@dn='-2315178527002837052']"/>
<column1>94.181.23.248</column1>
<gateway-status>
<gateway-block-reason str-value=""/>
<gateway-send-reason str-value="AlwaysInGw"/>
</gateway-status>
<parent>4725476808104611397</parent>
</item>
</create-item>
<create-item>
<item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="genericGroupEntryItem">
<xmlID>-5987081327585374961</xmlID>
<item-id full-id="generic-group-entry[@dn='-188747396585508342']"/>
<column1>108.166.108.109</colu<gateway-block-reason str-value=""/>
<gateway-send-reason str-value="AlwaysInGw"/>
</gateway-status>
<parent>-6672437912731396466</parent>
</item>
</create-item>
-5987260994489220191
146.185.204.211
4725476808104611397
-5987175959784878857
94.181.23.248
4725476808104611397
-5987081327585374961
108.166.108.109看起来与描述的问题相同。评论中还链接了一个bug报告。我阅读了描述的问题,看起来很相似,但没有示例。是的,但是评论提到:一些xml标记缺失,一些标记不正确。表示存在部分闭合的标记,某些标记在正确的位置缺失。