-
Summary:
Fix bugzilla bug 128224,137165,140103.
- Bugzilla Bug (s) Resolved:
[128224]
XML Datasource InputStream
[137165]
Stream closed exception
[140103]
SAXParserException: premature end of file when running on linux
-
Description:
The two
bugs are caused by same reason: XML driver may try to access one InputStream
from two or more different threads, and both threads will move the pointer in
the stream.Now we cache the InputStream to a file, then every threads will
create their own InputStream from file. The problem is so that fixed.
- Tests Description:
Unit Test
- Files Edited:
"/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/XMLDataInputStream.java"
"/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/SaxParserConsumer.java"
"/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/ResultSet.java"
"/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/Query.java"
"/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/Connection.java"
"/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java"
"/org.eclipse.birt.report.data.oda.xml/test/org/eclipse/birt/report/data/oda/xml/util/SaxParserTest.java"
"/org.eclipse.birt.report.data.oda.xml/test/org/eclipse/birt/report/data/oda/xml/test/util/TestConstants.java"
- Files Added:
"/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/XMLDataInputStreamCreator.java"
"/org.eclipse.birt.report.data.oda.xml/test/org/eclipse/birt/report/data/oda/xml/golden/SaxParserTest.test10.txt"
- Notes to Build Team:
N/A
- Notes to Developers:
N/A
- Notes to QA:
N/A
- Notes to Documentation:
N/A