commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit <amit.hanchinam...@gmail.com>
Subject java.lang.StackOverflowError exception
Date Mon, 23 Jul 2007 13:26:06 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message