title: JAXB 2.2.6 generates corrupted XML with partially closed tags
body: <p>I am using, JAXB 2.2.6 with Java 7 update 76 to serialize objects to file (size 80MB) on local disk. The XML output format is UTF-8. My operation system is CentOS 6.3. From time to time I see that some XML elements partially closed, see the third item below (the element column1 is partially closed): </p>
  
  <p>This usually happens after ~20 hours of intensive JAXB usage, without any relevant exceptions. </p>
  
  <pre><code>&lt;create-item&gt;
      &lt;item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="genericGroupEntryItem"&gt;
          &lt;xmlID&gt;-5987260994489220191&lt;/xmlID&gt;
          &lt;item-id full-id="generic-group-entry[@dn='5824453118091914208']"/&gt;
          &lt;column1&gt;146.185.204.211&lt;/column1&gt;
          &lt;gateway-status&gt;
              &lt;gateway-block-reason str-value=""/&gt;
              &lt;gateway-send-reason str-value="AlwaysInGw"/&gt;
          &lt;/gateway-status&gt;
          &lt;parent&gt;4725476808104611397&lt;/parent&gt;
      &lt;/item&gt;
  &lt;/create-item&gt;
  
  &lt;create-item&gt;
      &lt;item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="genericGroupEntryItem"&gt;
          &lt;xmlID&gt;-5987175959784878857&lt;/xmlID&gt;
          &lt;item-id full-id="generic-group-entry[@dn='-2315178527002837052']"/&gt;
          &lt;column1&gt;94.181.23.248&lt;/column1&gt;
          &lt;gateway-status&gt;
              &lt;gateway-block-reason str-value=""/&gt;
              &lt;gateway-send-reason str-value="AlwaysInGw"/&gt;
          &lt;/gateway-status&gt;
          &lt;parent&gt;4725476808104611397&lt;/parent&gt;
      &lt;/item&gt;
  &lt;/create-item&gt;
  
  &lt;create-item&gt;
      &lt;item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="genericGroupEntryItem"&gt;
          &lt;xmlID&gt;-5987081327585374961&lt;/xmlID&gt;
          &lt;item-id full-id="generic-group-entry[@dn='-188747396585508342']"/&gt;
          &lt;column1&gt;108.166.108.109&lt;/colu&lt;gateway-block-reason str-value=""/&gt;
              &lt;gateway-send-reason str-value="AlwaysInGw"/&gt;
          &lt;/gateway-status&gt;
          &lt;parent&gt;-6672437912731396466&lt;/parent&gt;
      &lt;/item&gt;
  &lt;/create-item&gt;
  </code></pre>
  
  <p>I tried to look for any relevant bugs, like wrong buffer handling, but without success. Did anyone familiar with such phenomenon?</p>