Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # dev >> circular problem during reading from jar on hdfs


Copy link to this message
-
circular problem during reading from jar on hdfs
can be FileSystem.loadFileSystems() turned into static init to avoid
infinite loop?

Exception in thread "main" java.lang.StackOverflowError
         at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:127)
         at sun.net.www.protocol.file.Handler.parseURL(Handler.java:67)
         at java.net.URL.<init>(URL.java:614)
         at java.net.URL.<init>(URL.java:482)
         at
sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1034)
         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)
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB