[jdom-interest] ArrayIndexOutOfBoundsException every time

philip.nelson at omniresources.com philip.nelson at omniresources.com
Tue Apr 17 10:07:20 PDT 2001

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

It looks to me like the exception is NOT coming from this code since there
is no "XMLDocument.load(): Can not load document '"+fileName+"'!" in the
message.  So look upstream and you will probably find some model problem in
your swing code.

More information about the jdom-interest mailing list