[jdom-interest] ArrayIndexOutOfBoundsException in SAXBuilder.build()
Steven Haines
lygado at yahoo.com
Fri Oct 6 15:32:57 PDT 2000
Little more info:
The error is occuring in the Xerces parser in the
file:
org.apache.xerces.utils.SymbolCache.java:
try {
fCacheLines[entry] = entries;
} catch (ArrayIndexOutOfBoundsException ex) {
int[][] newCache = new int[entry * 2][];
System.arraycopy(fCacheLines, 0, newCache, 0,
entry);
fCacheLines = newCache;
fCacheLines[entry] = entries;
}
This is the latest Xerces code (their binary, not
rebuilt) and JDOM beta4 code. I am using JDK1.2.2 on
WinNT.
Any ideas would be greatly appreciated!
Thanks!
Steve
--- Steven Haines <lygado at yahoo.com> wrote:
> Hi All,
>
> I have just started adoption JDOM over the
> traditional
> SAXParser and DOM, but I have a bit of a problem.
>
> Following the example in Javaworld I am receiving a
> hoard of ArrayIndexOutOfBoundsException exceptions
> in
> my call to builder.build(), here is the code:
>
> SAXBuilder builder = new SAXBuilder();
> Document doc = builder.build( new File(strXmlFile)
> );
>
> From here, debuging through Visual Cafe I can
> continue
> running the code - and it works to build the
> document
> (correctly), but I get the attached error messages.
>
> Any ideas?
>
> Thanks,
> Steve
>
>
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 8"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 13"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 16"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 32"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 25"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 64"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: -1"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: -1"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: -1"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 128"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 49"
> You may press F5 to continue with default exception
> handling)
> Exception raised:
> "java.lang.ArrayIndexOutOfBoundsException: 256"
> You may press F5 to continue with default exception
> handling)
>
>
>
> =====
> Steven Haines
> Senior Software Engineer
> IPNet Solutions
> lygado at yahoo.com
> shaines at ipnet-solutions.com
> (949)476-4463 x388
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - 35mm Quality Prints, Now Get 15
> Free!
> http://photos.yahoo.com/
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
=====
Steven Haines
Senior Software Engineer
IPNet Solutions
lygado at yahoo.com
shaines at ipnet-solutions.com
(949)476-4463 x388
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/
More information about the jdom-interest
mailing list