[jdom-interest] ArrayIndexOutOfBoundsException every time

Steven Haines lygado at yahoo.com
Tue Apr 17 10:14:27 PDT 2001


There is code in Xerces that looks something like
this:

for( int i=0; i<somebigvalue; i++ ) {
  try {
   array[ i ] = somevalue;
  }
  catch( ArrayIndexOutOfBoundsException e ) {
   //Resize the array
  }
}

So the exception is being caught, but your debugger is
automatically stopping when the exception is thrown
and before it can be caught - you need to turn off
checking in your debugger for
ArrayIndexOutOfBoundsException and that will take care
of it..

Steve




--- "Armin.Zeltner" <Armin.Zeltner at t-online.de> wrote:
> Hi
> 
> every time when I do this calls:
> 
>         try{
>             SAXBuilder builder=new
> SAXBuilder(validation);
>             jdomDocument=builder.build(new
> java.io.File(fileName));
>         }
>         catch(Exception e){
>             System.out.println("XMLDocument.load():
> Can not load
> document '"+fileName+"'!");
>         }
> 
> I get this exception:
> 
> XMLTree.class successfully loaded
> XMLTree.openItem_actionPerformed_Interaction1():
> Opening
> 'F:\java\jdom-b6\samples\web.xml'.
> Exception raised: 
> "java.lang.ArrayIndexOutOfBoundsException: 8"
> You may press F5 to continue with default exception
> handling)
> 
> If I step over, I get a large amount of these
> exceptions.
> 
> Do u have any ideas?
> 
> 
> 
> 
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



More information about the jdom-interest mailing list