[jira] [Updated] (XMLBEANS-487) Entity replacement in wrong place when expansion coincides with buffer growth
[ https://issues.apache.org/jira/browse/XMLBEANS-487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesper Steen Møller updated XMLBEANS-487: - Attachment: patch.txt I found the bug. When resizing the buffer, and the buffer is split (i.e. with the hole in the middle), and the 'i' position was in the newest part of the buffer (i.e. before the hole), the, i was adjusted incorrectly. Patch containing a fix and a test case. I added some comments about the adjustments which were not immediately obvious (to me, anyway). > Entity replacement in wrong place when expansion coincides with buffer growth > - > > Key: XMLBEANS-487 > URL: https://issues.apache.org/jira/browse/XMLBEANS-487 > Project: XMLBeans > Issue Type: Bug > Components: XmlObject >Affects Versions: Version 2.6 >Reporter: Jesper Steen Møller > Attachments: patch.txt, TestEntityNearBufferGrowth.java > > > When serializing an object to XML using newReader(), some of the entity > replacements for '&' appear in the wrong places, giving invalid XML. > Example: > Hall & Oates > could be serialized as: > Hall & Oates > The bug depends on the sequence of the read()-calls, the size of the > requested buffer, and the content. We're using the newReader to feed a Xalan > transformation, and in some tens of millions different transformations, this > has happened just a few times -- but this time, we've isolated the problem, > which is attached as a stand-alone test case. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: dev-h...@xmlbeans.apache.org
[GUMP@vmgump]: Project xml-xmlbeans-v1 (in module xml-xmlbeans) failed
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project xml-xmlbeans-v1 has an issue affecting its community integration. This issue affects 4 projects, and has been outstanding for 66 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - jmeter-svn : Pure Java load testing and performance measurement tool. ... - jmeter-test : Pure Java load testing and performance measurement tool. ... - rhino : JavaScript for Java - xml-xmlbeans-v1 : XML Beans Object <-> Java Binding Tool Full details are available at: http://vmgump.apache.org/gump/public/xml-xmlbeans/xml-xmlbeans-v1/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -INFO- Failed with reason build failed -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://vmgump.apache.org/gump/public/xml-xmlbeans/xml-xmlbeans-v1/gump_work/build_xml-xmlbeans_xml-xmlbeans-v1.html Work Name: build_xml-xmlbeans_xml-xmlbeans-v1 (Type: Build) Work ended in a state of : Failed Elapsed: 1 min 30 secs Command Line: /usr/lib/jvm/java-7-oracle/bin/java -Djava.awt.headless=true -Dbuild.sysclasspath=only -Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml -f build.xml bootstrap [Working Directory: /srv/gump/public/workspace/xml-xmlbeans] CLASSPATH: /usr/lib/jvm/java-7-oracle/lib/tools.jar:/srv/gump/public/workspace/xml-xmlbeans/build/classes/common:/srv/gump/public/workspace/xml-xmlbeans/build/classes/xmlinputstream:/srv/gump/public/workspace/xml-xmlbeans/build/classes/xmlpublic:/srv/gump/public/workspace/xml-xmlbeans/external/lib/oldxbean.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/classes/zipcompare:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/easypo.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/schemas.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/enumtest.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/drt.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/xstypes.jar:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swin g.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/packages/jaxen-1.1-beta-6/jaxen-1.1-beta-6.jar:/srv/gump/public/workspace/junit/dist/junit-08092012.jar:/srv/gump/public/workspace/junit/dist/junit-dep-08092012.jar - xbean: [copy] Copying 1 file to /srv/gump/public/workspace/xml-xmlbeans/build/ar zipcompare.classes: [mkdir] Created dir: /srv/gump/public/workspace/xml-xmlbeans/build/private/classes/zipcompare [javac] Compiling 1 source file to /srv/gump/public/workspace/xml-xmlbeans/build/private/classes/zipcompare [javac] Note: /srv/gump/public/workspace/xml-xmlbeans/src/zipcompare/zipcompare/ZipCompare.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [java] Comparing build/ar/xbean.jar with build/private/lib/oldxbean.jar: [java] schema/system/sXMLCONFIG/configf467elemtype.xsb does not match [java] schema/system/sXMLCONFIG/extensionconfig2ac2type.xsb does not match [java] schema/system/sXMLCONFIG/nsconfigaebatype.xsb does not match [java] schema/system/sXMLTOOLS/definitions05ddelemtype.xsb does not match [java] schema/system/sXMLSCHEMA/annotation5abfelemtype.xsb does not match [java] schema/system/sXMLSCHEMA/attributegroupe530type.xsb does not match [java] schema/system/sXMLSCHEMA/complexcontentaa7felemtype.xsb does not match [java] schema/system/sXMLSCHEMA/complexrestrictiontype1b7dtype.xsb does not match [java] schema/system/sXMLSCHEMA/complextype5dbbtype.xsb does not match [java] schema/system/sXMLSCHEMA/elementd189type.xsb does not match [java] schema/system/sXMLSCHEMA/elementinall3f33type.xsb does not match [java] schema/system/sXMLSCHEMA/explicitgroup4efatype.xsb does not match [java] schema/system/sXMLSCHEMA/extensiontypeed4ctype.xsb does not match [java] schema/system/sXMLSCHEMA/group7ca6type.xsb does not match