我正在使用JAXB 2.2.6和Java 7更新76将对象序列化到本地磁盘上的文件(大小为80MB)。 XML输出格式为UTF-8。我的操作系统是CentOS 6.3。我不时会看到一些XML元素部分关闭,请参阅下面的第三项(元素column1部分关闭):
这通常发生在大约20小时的密集型JAXB使用之后,没有任何相关的例外。
<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>
我试图寻找任何相关的错误,例如错误的缓冲区处理,但没有成功。有没有人熟悉这种现象?