You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by xm...@xml.apache.org on 2004/09/26 17:04:34 UTC

[jira] Created: (XMLBEANS-64) ArrayIndexOutOfBoundsException during validation

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-64

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-64
    Summary: ArrayIndexOutOfBoundsException during validation
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans
 Components: 
             Validator
   Versions:
             Version 2

   Assignee: 
   Reporter: Eddie O'Neil

    Created: Sun, 26 Sep 2004 8:04 AM
    Updated: Sun, 26 Sep 2004 8:04 AM
Environment: Win XPsp1
JDK 1.5.0 b63

Description:
This is an exception occurring during validation of an XML document.  The attached repro compiles an XSD, loads an XML document through the XMLBean's Factory, and then attempts to validate the document.  The result is an ArrayIndexOutOfBoundsException.  The XML document was created through the Document.save(...).

Apache Beehive has a 10 week old snapshot of xbean.jar, and on that version, the parse / validate is successful.

A repro will be attached.

The stack trace:

     [java] java.lang.ArrayIndexOutOfBoundsException: 65
     [java]     at org.apache.xmlbeans.impl.newstore2.CharUtil$CharIterator.init(CharUtil.java:702)
     [java]     at org.apache.xmlbeans.impl.newstore2.CharUtil.isWhiteSpace(CharUtil.java:132)
     [java]     at org.apache.xmlbeans.impl.newstore2.Validate.textIsWhitespace(Validate.java:215)
     [java]     at org.apache.xmlbeans.impl.validator.Validator.handleText(Validator.java:831)
     [java]     at org.apache.xmlbeans.impl.validator.Validator.textEvent(Validator.java:802)
     [java]     at org.apache.xmlbeans.impl.validator.Validator.nextEvent(Validator.java:246)
     [java]     at org.apache.xmlbeans.impl.newstore2.Validate.emitEvent(Validate.java:168)
     [java]     at org.apache.xmlbeans.impl.newstore2.Validate.process(Validate.java:84)
     [java]     at org.apache.xmlbeans.impl.newstore2.Validate.<init>(Validate.java:39)
     [java]     at org.apache.xmlbeans.impl.newstore2.Xobj.validate(Xobj.java:1673)
     [java]     at org.apache.xmlbeans.impl.values.XmlObjectBase.validate(XmlObjectBase.java:343)
     [java]     at XBeanCharUtilRepro.main(Unknown Source)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Closed: (XMLBEANS-64) ArrayIndexOutOfBoundsException during validation

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-64?page=all ]
     
Jacob Danner closed XMLBEANS-64:
--------------------------------

    Assign To:     (was: Cezar Andrei)

Fix is in, Regession case has been automated, closing this issue.

> ArrayIndexOutOfBoundsException during validation
> ------------------------------------------------
>
>          Key: XMLBEANS-64
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-64
>      Project: XMLBeans
>         Type: Bug
>   Components: Validator
>     Versions: Version 2
>  Environment: Win XPsp1
> JDK 1.5.0 b63
>     Reporter: Eddie O'Neil
>      Fix For: Version 2 Beta 1, Version 2
>  Attachments: xbean-charutuilrepro.zip
>
> This is an exception occurring during validation of an XML document.  The attached repro compiles an XSD, loads an XML document through the XMLBean's Factory, and then attempts to validate the document.  The result is an ArrayIndexOutOfBoundsException.  The XML document was created through the Document.save(...).
> Apache Beehive has a 10 week old snapshot of xbean.jar, and on that version, the parse / validate is successful.
> A repro will be attached.
> The stack trace:
>      [java] java.lang.ArrayIndexOutOfBoundsException: 65
>      [java]     at org.apache.xmlbeans.impl.newstore2.CharUtil$CharIterator.init(CharUtil.java:702)
>      [java]     at org.apache.xmlbeans.impl.newstore2.CharUtil.isWhiteSpace(CharUtil.java:132)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Validate.textIsWhitespace(Validate.java:215)
>      [java]     at org.apache.xmlbeans.impl.validator.Validator.handleText(Validator.java:831)
>      [java]     at org.apache.xmlbeans.impl.validator.Validator.textEvent(Validator.java:802)
>      [java]     at org.apache.xmlbeans.impl.validator.Validator.nextEvent(Validator.java:246)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Validate.emitEvent(Validate.java:168)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Validate.process(Validate.java:84)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Validate.<init>(Validate.java:39)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Xobj.validate(Xobj.java:1673)
>      [java]     at org.apache.xmlbeans.impl.values.XmlObjectBase.validate(XmlObjectBase.java:343)
>      [java]     at XBeanCharUtilRepro.main(Unknown Source)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
> :25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
>      [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
>      [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
>      [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
>      [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
>      [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>      [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
>      [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
>      [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
>      [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>      [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
>      [java]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
>      [java]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
>      [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>      [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-64) ArrayIndexOutOfBoundsException during validation

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XMLBEANS-64?page=history ]
     
Jacob Danner resolved XMLBEANS-64:
----------------------------------

      Assign To: Cezar Andrei  (was: Eric Vasilik)
     Resolution: Fixed
    Fix Version: Version 2 Beta 1
                 Version 2

Looks like its been fixed. Possibly with some of the new store updates EricVas made.
I've got a test case to add as a regression case for this.

> ArrayIndexOutOfBoundsException during validation
> ------------------------------------------------
>
>          Key: XMLBEANS-64
>          URL: http://nagoya.apache.org/jira/browse/XMLBEANS-64
>      Project: XMLBeans
>         Type: Bug
>   Components: Validator
>     Versions: Version 2
>  Environment: Win XPsp1
> JDK 1.5.0 b63
>     Reporter: Eddie O'Neil
>     Assignee: Cezar Andrei
>      Fix For: Version 2, Version 2 Beta 1
>  Attachments: xbean-charutuilrepro.zip
>
> This is an exception occurring during validation of an XML document.  The attached repro compiles an XSD, loads an XML document through the XMLBean's Factory, and then attempts to validate the document.  The result is an ArrayIndexOutOfBoundsException.  The XML document was created through the Document.save(...).
> Apache Beehive has a 10 week old snapshot of xbean.jar, and on that version, the parse / validate is successful.
> A repro will be attached.
> The stack trace:
>      [java] java.lang.ArrayIndexOutOfBoundsException: 65
>      [java]     at org.apache.xmlbeans.impl.newstore2.CharUtil$CharIterator.init(CharUtil.java:702)
>      [java]     at org.apache.xmlbeans.impl.newstore2.CharUtil.isWhiteSpace(CharUtil.java:132)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Validate.textIsWhitespace(Validate.java:215)
>      [java]     at org.apache.xmlbeans.impl.validator.Validator.handleText(Validator.java:831)
>      [java]     at org.apache.xmlbeans.impl.validator.Validator.textEvent(Validator.java:802)
>      [java]     at org.apache.xmlbeans.impl.validator.Validator.nextEvent(Validator.java:246)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Validate.emitEvent(Validate.java:168)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Validate.process(Validate.java:84)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Validate.<init>(Validate.java:39)
>      [java]     at org.apache.xmlbeans.impl.newstore2.Xobj.validate(Xobj.java:1673)
>      [java]     at org.apache.xmlbeans.impl.values.XmlObjectBase.validate(XmlObjectBase.java:343)
>      [java]     at XBeanCharUtilRepro.main(Unknown Source)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
> :25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
>      [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
>      [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
>      [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
>      [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
>      [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>      [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
>      [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
>      [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
>      [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>      [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
>      [java]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
>      [java]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
>      [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>      [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-64) ArrayIndexOutOfBoundsException during validation

Posted by xm...@xml.apache.org.
The following issue has been updated:

    Updater: Eddie O'Neil (mailto:ekoneil@apache.org)
       Date: Sun, 26 Sep 2004 8:05 AM
    Comment:
Attached is the repro.

To run:
1) unzip the attachment
2) cd xbean-charutilrepro
3) change build.xml to set the "xbean.dir" to the root of the "xml-xmlbeans" local pull from CVS
4) run "ant"
    Changes:
             Attachment changed to xbean-charutuilrepro.zip
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XMLBEANS-64?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-64

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-64
    Summary: ArrayIndexOutOfBoundsException during validation
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans
 Components: 
             Validator
   Versions:
             Version 2

   Assignee: 
   Reporter: Eddie O'Neil

    Created: Sun, 26 Sep 2004 8:04 AM
    Updated: Sun, 26 Sep 2004 8:05 AM
Environment: Win XPsp1
JDK 1.5.0 b63

Description:
This is an exception occurring during validation of an XML document.  The attached repro compiles an XSD, loads an XML document through the XMLBean's Factory, and then attempts to validate the document.  The result is an ArrayIndexOutOfBoundsException.  The XML document was created through the Document.save(...).

Apache Beehive has a 10 week old snapshot of xbean.jar, and on that version, the parse / validate is successful.

A repro will be attached.

The stack trace:

     [java] java.lang.ArrayIndexOutOfBoundsException: 65
     [java]     at org.apache.xmlbeans.impl.newstore2.CharUtil$CharIterator.init(CharUtil.java:702)
     [java]     at org.apache.xmlbeans.impl.newstore2.CharUtil.isWhiteSpace(CharUtil.java:132)
     [java]     at org.apache.xmlbeans.impl.newstore2.Validate.textIsWhitespace(Validate.java:215)
     [java]     at org.apache.xmlbeans.impl.validator.Validator.handleText(Validator.java:831)
     [java]     at org.apache.xmlbeans.impl.validator.Validator.textEvent(Validator.java:802)
     [java]     at org.apache.xmlbeans.impl.validator.Validator.nextEvent(Validator.java:246)
     [java]     at org.apache.xmlbeans.impl.newstore2.Validate.emitEvent(Validate.java:168)
     [java]     at org.apache.xmlbeans.impl.newstore2.Validate.process(Validate.java:84)
     [java]     at org.apache.xmlbeans.impl.newstore2.Validate.<init>(Validate.java:39)
     [java]     at org.apache.xmlbeans.impl.newstore2.Xobj.validate(Xobj.java:1673)
     [java]     at org.apache.xmlbeans.impl.values.XmlObjectBase.validate(XmlObjectBase.java:343)
     [java]     at XBeanCharUtilRepro.main(Unknown Source)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org