[jdom-interest] StringIndexOutOfBoundsException
Rajan, Jeffy
jeffy_rajan at merck.com
Thu Aug 17 13:31:06 PDT 2000
Hi
I am trying to run SAXBuilderDemo and I get StringIndexOutOfBoundsException
: String index out of range :0
Document doc = builder.build(new File("contents.xml")); I am pretty sure I
am getting an exception on this code.
The complete exception is as follows:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:834)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:218)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:284)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:265)
at SAXBuilderDemo.testBuilder(SAXBuilderDemo.java:29)
at SAXBuilderDemo.main(SAXBuilderDemo.java:53)
at java.lang.reflect.Method.invoke(Native Method)
at com.borland.jbuilder.util.BootStrap.invokeMain(Unknown Source)
at com.borland.jbuilder.util.BootStrap.main(Unknown Source)
My Jbuilder lib points C:\jr\jdom\build\jdom-b4.jar
C:\jr\jdom\lib\xerces.jar;C:\jr\jdom\lib\ant.jar
More information about the jdom-interest
mailing list