[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Resolved: (XMLBEANS-64) ArrayIndexOutOfBoundsException during validation
From:       "Jacob Danner (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2004-11-17 21:46:32
Message-ID: 1150344016.1100727992899.JavaMail.apache () nagoya
[Download RAW message or body]

     [ 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic