opensubscriber
   Find in this group all groups
 
Unknown more information…

c : commons-user@jakarta.apache.org 23 July 2007 • 9:26PM -0400

java.lang.StackOverflowError exception
by Amit

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi All,

I am using Digester to parse an xml file as follows

Bundle bundle = Platform.getBundle("id");
Path path = new Path("myDir/first.xml");
URL url = FileLocator.find(bundle, path, null);
digester.parse(url);


but the problem is that everytime it throws me
java.lang.StackOverflowErrorexception

Exception in thread "Thread-2" java.lang.StackOverflowError
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)

It seems like the parsing is going in infinite loop.
Can anyone suggest what is wrong with this appraoch or do I have to call
parse method in another way..?
Thanks,

Amit

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.