[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Updated: (XMLBEANS-335) org.apache.xmlbeans.XmlException:
From: "Johan Gilliusson (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2007-06-25 13:55:29
Message-ID: 33209065.1182779729659.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Johan Gilliusson updated XMLBEANS-335:
--------------------------------------
Description: There is a bug in the class org.apache.xmlbeans.impl.store.Saver and \
its inner class TextSaver. The error occurs rarely and is hard to reproduce but in \
certain circumstances it gives an org.apache.xmlbeans.XmlException: error: Unexpected \
end of file in CDATA section when saving an xml document. The problem is in the \
private method resize that calculates the number of free bytes wrong when resize is \
done on an empty buffer. The number of free bytes is set to "_free += newBuf.length" \
but since the buffer was empty _free will take the value of previous buffers length + \
new buffers length. It should instead be _free = newBuf.length. (was: There is a bug \
in the class org.apache.xmlbeans.impl.store.Saver and its inner class TextSaver. The \
error occurs rarely and is hard to reproduce but in certain circumstances it gives an \
ArrayIndexOutOfBoundException when saving an xml document. The problem is in the \
private method resize that calculates the number of free bytes wrong when resize is \
done on an empty buffer. The number of free bytes is set to "_free += newBuf.length" \
but since the buffer was empty _free will take the value of previous buffers length + \
new buffers length. It should instead be _free = newBuf.length.) Summary: \
org.apache.xmlbeans.XmlException: error: Unexpected end of file in CDATA section when \
saving large documents (was: ArrayIndexOutOfBoundsException when saving large \
documents)
> org.apache.xmlbeans.XmlException: error: Unexpected end of file in CDATA section \
> when saving large documents
> ------------------------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-335
> URL: https://issues.apache.org/jira/browse/XMLBEANS-335
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2.1, Version 2.3
> Reporter: Johan Gilliusson
>
> There is a bug in the class org.apache.xmlbeans.impl.store.Saver and its inner \
> class TextSaver. The error occurs rarely and is hard to reproduce but in certain \
> circumstances it gives an org.apache.xmlbeans.XmlException: error: Unexpected end \
> of file in CDATA section when saving an xml document. The problem is in the private \
> method resize that calculates the number of free bytes wrong when resize is done on \
> an empty buffer. The number of free bytes is set to "_free += newBuf.length" but \
> since the buffer was empty _free will take the value of previous buffers length + \
> new buffers length. It should instead be _free = newBuf.length.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic