[jira] [Created] (XMLBEANS-487) Entity replacement in wrong place when expansion coincides with buffer growth

2012-09-06 Thread JIRA
Jesper Steen Møller created XMLBEANS-487:


 Summary: 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


When serializing an object to XML using newReader(), some of the entity 
replacements for '' appear in the wrong places, giving invalid XML.

Example:
a q='a'tHall amp; Oates/t/a
could be serialized as:
a q='amp;'tHall  Oates/t/a

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



[jira] [Updated] (XMLBEANS-487) Entity replacement in wrong place when expansion coincides with buffer growth

2012-09-06 Thread JIRA

 [ 
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: TestEntityNearBufferGrowth.java

This is a test case which triggers the error. The error is quite rare and 
depends on both the XML and the sequence of the reads.
The newReader() is read in two parts, first 28 characters (INITIAL_READ), then 
the rest. If the value of INITIAL_READ is changed to e.g. 2, or if the second 
read is smaller that apprx 4 k, then the error doesn't occur.

The bad substituition appears to happen when a call to replace (to deal with  
- amp;) has triggered allocation of a larger buffer.

 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: 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:
 a q='a'tHall amp; Oates/t/a
 could be serialized as:
 a q='amp;'tHall  Oates/t/a
 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



[jira] [Created] (XMLBEANS-488) Fix build by moving to Xerces xmlresolver 1.2

2012-09-06 Thread JIRA
Jesper Steen Møller created XMLBEANS-488:


 Summary: Fix build by moving to Xerces xmlresolver 1.2
 Key: XMLBEANS-488
 URL: https://issues.apache.org/jira/browse/XMLBEANS-488
 Project: XMLBeans
  Issue Type: Bug
  Components: Tools
Affects Versions: Version 2.6
Reporter: Jesper Steen Møller


Since XML Commons Resolver moved to Xerces and is only available in version 
1.2, perhaps it's time to move to that version, since the current build does 
not work.

Suggested diff:


Index: build.xml
===
--- build.xml   (revision 1381753)
+++ build.xml   (working copy)
@@ -170,7 +170,7 @@
 
 target name=xcresolver.zip depends=check.xcresolver.zip, dirs 
unless=xcresolver.zip.exists
 get dest=external/lib/xcresolver.zip
-
src=http://www.apache.org/dist/xml/commons/binaries/xml-commons-resolver-1.1.zip;
+
src=http://www.apache.org/dist/xerces/xml-commons/xml-commons-resolver-1.2.zip;
 verbose=true usetimestamp=true ignoreerrors=true/
 /target
 
@@ -186,8 +186,8 @@
 include name=*/resolver.jar/
 /patternset
 /unzip
-copy file=external/lib/xml-commons-resolver-1.1/resolver.jar 
tofile=build/lib/resolver.jar/
-delete dir=external/lib/xml-commons-resolver-1.1/
+copy file=external/lib/xml-commons-resolver-1.2/resolver.jar 
tofile=build/lib/resolver.jar/
+delete dir=external/lib/xml-commons-resolver-1.2/
 /target


--
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

2012-09-06 Thread Robert Burrell Donkin
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 64 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-07092012.jar:/srv/gump/public/workspace/junit/dist/junit-dep-07092012.jar
-
  [jar] Building jar: 
/srv/gump/public/workspace/xml-xmlbeans/build/lib/xbean.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/sXMLTOOLS/definitions05ddelemtype.xsb does not match
 [java] schema/system/sXMLTOOLS/downloadedschemaentry5f6ftype.xsb does not 
match
 [java] schema/system/sXMLSCHEMA/all3c04type.xsb does not match
 [java] schema/system/sXMLSCHEMA/all82daelemtype.xsb does not match
 [java] schema/system/sXMLSCHEMA/annotation5abfelemtype.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