java.lang.StackOverflowError

Spring JIRA | Radim Kolar | 4 years ago
  1. 0

    code: /* create hadoop configuration with default parameters */ ConfigurationFactoryBean cfactory; cfactory = new ConfigurationFactoryBean(); cfactory.setRegisterUrlHandler(true); cfactory.afterPropertiesSet(); LOG.trace("cfactory configured"); /* create hdfs resource loader */ loader = new HdfsResourceLoader(cfactory.getObject(), null, null); /** --- here it hangs -- */ LOG.trace("hdfs resource loader created"); stacktrace 12/11/12 03:32:58 TRACE spring.SpringHadoopRunner: cfactory configured Exception in thread "main" java.lang.StackOverflowError at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242) at java.io.File.exists(File.java:772) at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1057) at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:1024) at sun.misc.URLClassPath$1.next(URLClassPath.java:222) at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:232) at java.net.URLClassLoader$3$1.run(URLClassLoader.java:583) at java.net.URLClassLoader$3$1.run(URLClassLoader.java:581) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader$3.next(URLClassLoader.java:580) at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:605) at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45) at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54) at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45) at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:346) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244) at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67) at java.net.URL.getURLStreamHandler(URL.java:1150) at java.net.URL.<init>(URL.java:590) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179) at java.net.JarURLConnection.<init>(JarURLConnection.java:162) at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) at java.net.URL.openConnection(URL.java:971) at java.net.URL.openStream(URL.java:1037) at java.util.ServiceLoader.parse(ServiceLoader.java:296) at java.util.ServiceLoader.access$200(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244) at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67) at java.net.URL.getURLStreamHandler(URL.java:1150) at java.net.URL.<init>(URL.java:590) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179) at java.net.JarURLConnection.<init>(JarURLConnection.java:162) at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) at java.net.URL.openConnection(URL.java:971) at java.net.URL.openStream(URL.java:1037) at java.util.ServiceLoader.parse(ServiceLoader.java:296) at java.util.ServiceLoader.access$200(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244) at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67) at java.net.URL.getURLStreamHandler(URL.java:1150) at java.net.URL.<init>(URL.java:590) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179) at java.net.JarURLConnection.<init>(JarURLConnection.java:162) at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) at java.net.URL.openConnection(URL.java:971) at java.net.URL.openStream(URL.java:1037) at java.util.ServiceLoader.parse(ServiceLoader.java:296) at java.util.ServiceLoader.access$200(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244) at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)

    Spring JIRA | 4 years ago | Radim Kolar
    java.lang.StackOverflowError
  2. 0

    code: /* create hadoop configuration with default parameters */ ConfigurationFactoryBean cfactory; cfactory = new ConfigurationFactoryBean(); cfactory.setRegisterUrlHandler(true); cfactory.afterPropertiesSet(); LOG.trace("cfactory configured"); /* create hdfs resource loader */ loader = new HdfsResourceLoader(cfactory.getObject(), null, null); /** --- here it hangs -- */ LOG.trace("hdfs resource loader created"); stacktrace 12/11/12 03:32:58 TRACE spring.SpringHadoopRunner: cfactory configured Exception in thread "main" java.lang.StackOverflowError at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242) at java.io.File.exists(File.java:772) at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1057) at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:1024) at sun.misc.URLClassPath$1.next(URLClassPath.java:222) at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:232) at java.net.URLClassLoader$3$1.run(URLClassLoader.java:583) at java.net.URLClassLoader$3$1.run(URLClassLoader.java:581) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader$3.next(URLClassLoader.java:580) at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:605) at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45) at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54) at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45) at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:346) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244) at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67) at java.net.URL.getURLStreamHandler(URL.java:1150) at java.net.URL.<init>(URL.java:590) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179) at java.net.JarURLConnection.<init>(JarURLConnection.java:162) at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) at java.net.URL.openConnection(URL.java:971) at java.net.URL.openStream(URL.java:1037) at java.util.ServiceLoader.parse(ServiceLoader.java:296) at java.util.ServiceLoader.access$200(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244) at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67) at java.net.URL.getURLStreamHandler(URL.java:1150) at java.net.URL.<init>(URL.java:590) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179) at java.net.JarURLConnection.<init>(JarURLConnection.java:162) at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) at java.net.URL.openConnection(URL.java:971) at java.net.URL.openStream(URL.java:1037) at java.util.ServiceLoader.parse(ServiceLoader.java:296) at java.util.ServiceLoader.access$200(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244) at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67) at java.net.URL.getURLStreamHandler(URL.java:1150) at java.net.URL.<init>(URL.java:590) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179) at java.net.JarURLConnection.<init>(JarURLConnection.java:162) at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) at java.net.URL.openConnection(URL.java:971) at java.net.URL.openStream(URL.java:1037) at java.util.ServiceLoader.parse(ServiceLoader.java:296) at java.util.ServiceLoader.access$200(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244) at org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)

    Spring JIRA | 4 years ago | Radim Kolar
    java.lang.StackOverflowError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Unable to trace the source of a stack overflow error

    Stack Overflow | 5 years ago | David
    java.lang.StackOverflowError

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.StackOverflowError

      No message provided

      at java.io.UnixFileSystem.getBooleanAttributes0()
    2. Java RT
      ServiceLoader$1.hasNext
      1. java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
      2. java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
      3. java.io.File.exists(File.java:772)
      4. sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1057)
      5. sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:1024)
      6. sun.misc.URLClassPath$1.next(URLClassPath.java:222)
      7. sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:232)
      8. java.net.URLClassLoader$3$1.run(URLClassLoader.java:583)
      9. java.net.URLClassLoader$3$1.run(URLClassLoader.java:581)
      10. java.security.AccessController.doPrivileged(Native Method)
      11. java.net.URLClassLoader$3.next(URLClassLoader.java:580)
      12. java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:605)
      13. sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
      14. sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
      15. sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
      16. sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
      17. java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:346)
      18. java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)
      18 frames
    3. Hadoop
      FsUrlStreamHandlerFactory.createURLStreamHandler
      1. org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233)
      2. org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244)
      3. org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)
      3 frames
    4. Java RT
      ServiceLoader$1.hasNext
      1. java.net.URL.getURLStreamHandler(URL.java:1150)
      2. java.net.URL.<init>(URL.java:590)
      3. java.net.URL.<init>(URL.java:482)
      4. java.net.URL.<init>(URL.java:431)
      5. java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179)
      6. java.net.JarURLConnection.<init>(JarURLConnection.java:162)
      7. sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81)
      8. sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41)
      9. java.net.URL.openConnection(URL.java:971)
      10. java.net.URL.openStream(URL.java:1037)
      11. java.util.ServiceLoader.parse(ServiceLoader.java:296)
      12. java.util.ServiceLoader.access$200(ServiceLoader.java:181)
      13. java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349)
      14. java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)
      14 frames
    5. Hadoop
      FsUrlStreamHandlerFactory.createURLStreamHandler
      1. org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233)
      2. org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244)
      3. org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)
      3 frames
    6. Java RT
      ServiceLoader$1.hasNext
      1. java.net.URL.getURLStreamHandler(URL.java:1150)
      2. java.net.URL.<init>(URL.java:590)
      3. java.net.URL.<init>(URL.java:482)
      4. java.net.URL.<init>(URL.java:431)
      5. java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179)
      6. java.net.JarURLConnection.<init>(JarURLConnection.java:162)
      7. sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81)
      8. sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41)
      9. java.net.URL.openConnection(URL.java:971)
      10. java.net.URL.openStream(URL.java:1037)
      11. java.util.ServiceLoader.parse(ServiceLoader.java:296)
      12. java.util.ServiceLoader.access$200(ServiceLoader.java:181)
      13. java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349)
      14. java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)
      14 frames
    7. Hadoop
      FsUrlStreamHandlerFactory.createURLStreamHandler
      1. org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233)
      2. org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244)
      3. org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)
      3 frames
    8. Java RT
      ServiceLoader$1.hasNext
      1. java.net.URL.getURLStreamHandler(URL.java:1150)
      2. java.net.URL.<init>(URL.java:590)
      3. java.net.URL.<init>(URL.java:482)
      4. java.net.URL.<init>(URL.java:431)
      5. java.net.JarURLConnection.parseSpecs(JarURLConnection.java:179)
      6. java.net.JarURLConnection.<init>(JarURLConnection.java:162)
      7. sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81)
      8. sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41)
      9. java.net.URL.openConnection(URL.java:971)
      10. java.net.URL.openStream(URL.java:1037)
      11. java.util.ServiceLoader.parse(ServiceLoader.java:296)
      12. java.util.ServiceLoader.access$200(ServiceLoader.java:181)
      13. java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:349)
      14. java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)
      14 frames
    9. Hadoop
      FsUrlStreamHandlerFactory.createURLStreamHandler
      1. org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2233)
      2. org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2244)
      3. org.apache.hadoop.fs.FsUrlStreamHandlerFactory.createURLStreamHandler(FsUrlStreamHandlerFactory.java:67)
      3 frames