scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

uncaught exception during compilation: java.lang.StackOverflowError #9876

Closed scabug closed 8 years ago

scabug commented 8 years ago

[ERROR] error: [INFO] while compiling: /Users/sg0226503/Documents/AnkurData/simplesparkavroapp-specifics/src/main/scala/com/1/sparkavro/schema/BuildSchema.scala [INFO] during phase: erasure [INFO] library version: version 2.10.4 [INFO] compiler version: version 2.10.4 [INFO] reconstructed args: -classpath /Users/sg0226503/Documents/AnkurData/simplesparkavroapp-specifics/target/classes:/Users/sg0226503/.m2/repository/org/apache/avro/avro-mapred/1.8.1/avro-mapred-1.8.1-hadoop2.jar:/Users/sg0226503/.m2/repository/org/apache/avro/avro-ipc/1.8.1/avro-ipc-1.8.1.jar:/Users/sg0226503/.m2/repository/io/netty/netty/3.5.13.Final/netty-3.5.13.Final.jar:/Users/sg0226503/.m2/repository/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar:/Users/sg0226503/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/sg0226503/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/sg0226503/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/Users/sg0226503/.m2/repository/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar:/Users/sg0226503/.m2/repository/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.jar:/Users/sg0226503/.m2/repository/org/apache/spark/spark-core_2.10/1.0.0-cdh5.1.0/spark-core_2.10-1.0.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-client/2.3.0-cdh5.1.0/hadoop-client-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-common/2.3.0-cdh5.1.0/hadoop-common-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/Users/sg0226503/.m2/repository/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-auth/2.3.0-cdh5.1.0/hadoop-auth-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/Users/sg0226503/.m2/repository/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/Users/sg0226503/.m2/repository/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/Users/sg0226503/.m2/repository/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-hdfs/2.3.0-cdh5.1.0/hadoop-hdfs-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-app/2.3.0-cdh5.1.0/hadoop-mapreduce-client-app-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-common/2.3.0-cdh5.1.0/hadoop-mapreduce-client-common-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-yarn-client/2.3.0-cdh5.1.0/hadoop-yarn-client-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-yarn-server-common/2.3.0-cdh5.1.0/hadoop-yarn-server-common-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-shuffle/2.3.0-cdh5.1.0/hadoop-mapreduce-client-shuffle-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-yarn-api/2.3.0-cdh5.1.0/hadoop-yarn-api-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-core/2.3.0-cdh5.1.0/hadoop-mapreduce-client-core-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-yarn-common/2.3.0-cdh5.1.0/hadoop-yarn-common-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-jobclient/2.3.0-cdh5.1.0/hadoop-mapreduce-client-jobclient-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-annotations/2.3.0-cdh5.1.0/hadoop-annotations-2.3.0-cdh5.1.0.jar:/Users/sg0226503/.m2/repository/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/Users/sg0226503/.m2/repository/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar:/Users/sg0226503/.m2/repository/org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar:/Users/sg0226503/.m2/repository/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/Users/sg0226503/.m2/repository/org/apache/curator/curator-recipes/2.4.0/curator-recipes-2.4.0.jar:/Users/sg0226503/.m2/repository/org/apache/curator/curator-framework/2.4.0/curator-framework-2.4.0.jar:/Users/sg0226503/.m2/repository/org/apache/curator/curator-client/2.4.0/curator-client-2.4.0.jar:/Users/sg0226503/.m2/repository/org/apache/zookeeper/zookeeper/3.4.5/zookeeper-3.4.5.jar:/Users/sg0226503/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-plus/8.1.14.v20131031/jetty-plus-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/orbit/javax.transaction/1.1.1.v201105210645/javax.transaction-1.1.1.v201105210645.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-webapp/8.1.14.v20131031/jetty-webapp-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-xml/8.1.14.v20131031/jetty-xml-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-servlet/8.1.14.v20131031/jetty-servlet-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-jndi/8.1.14.v20131031/jetty-jndi-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/orbit/javax.mail.glassfish/1.4.1.v201005082020/javax.mail.glassfish-1.4.1.v201005082020.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/orbit/javax.activation/1.1.0.v201105071233/javax.activation-1.1.0.v201105071233.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-security/8.1.14.v20131031/jetty-security-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-util/8.1.14.v20131031/jetty-util-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-server/8.1.14.v20131031/jetty-server-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-continuation/8.1.14.v20131031/jetty-continuation-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-http/8.1.14.v20131031/jetty-http-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/org/eclipse/jetty/jetty-io/8.1.14.v20131031/jetty-io-8.1.14.v20131031.jar:/Users/sg0226503/.m2/repository/com/google/guava/guava/14.0.1/guava-14.0.1.jar:/Users/sg0226503/.m2/repository/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:/Users/sg0226503/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/sg0226503/.m2/repository/org/slf4j/jul-to-slf4j/1.7.5/jul-to-slf4j-1.7.5.jar:/Users/sg0226503/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.5/jcl-over-slf4j-1.7.5.jar:/Users/sg0226503/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/sg0226503/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar:/Users/sg0226503/.m2/repository/com/ning/compress-lzf/1.0.0/compress-lzf-1.0.0.jar:/Users/sg0226503/.m2/repository/org/xerial/snappy/snappy-java/1.0.5/snappy-java-1.0.5.jar:/Users/sg0226503/.m2/repository/com/twitter/chill_2.10/0.3.6/chill_2.10-0.3.6.jar:/Users/sg0226503/.m2/repository/com/esotericsoftware/kryo/kryo/2.21/kryo-2.21.jar:/Users/sg0226503/.m2/repository/com/esotericsoftware/reflectasm/reflectasm/1.07/reflectasm-1.07-shaded.jar:/Users/sg0226503/.m2/repository/com/esotericsoftware/minlog/minlog/1.2/minlog-1.2.jar:/Users/sg0226503/.m2/repository/org/objenesis/objenesis/1.2/objenesis-1.2.jar:/Users/sg0226503/.m2/repository/com/twitter/chill-java/0.3.6/chill-java-0.3.6.jar:/Users/sg0226503/.m2/repository/commons-net/commons-net/2.2/commons-net-2.2.jar:/Users/sg0226503/.m2/repository/org/spark-project/akka/akka-remote_2.10/2.2.3-shaded-protobuf/akka-remote_2.10-2.2.3-shaded-protobuf.jar:/Users/sg0226503/.m2/repository/org/spark-project/akka/akka-actor_2.10/2.2.3-shaded-protobuf/akka-actor_2.10-2.2.3-shaded-protobuf.jar:/Users/sg0226503/.m2/repository/com/typesafe/config/1.0.2/config-1.0.2.jar:/Users/sg0226503/.m2/repository/org/spark-project/protobuf/protobuf-java/2.4.1-shaded/protobuf-java-2.4.1-shaded.jar:/Users/sg0226503/.m2/repository/org/uncommons/maths/uncommons-maths/1.2.2a/uncommons-maths-1.2.2a.jar:/Users/sg0226503/.m2/repository/org/spark-project/akka/akka-slf4j_2.10/2.2.3-shaded-protobuf/akka-slf4j_2.10-2.2.3-shaded-protobuf.jar:/Users/sg0226503/.m2/repository/org/json4s/json4s-jackson_2.10/3.2.6/json4s-jackson_2.10-3.2.6.jar:/Users/sg0226503/.m2/repository/org/json4s/json4s-core_2.10/3.2.6/json4s-core_2.10-3.2.6.jar:/Users/sg0226503/.m2/repository/org/json4s/json4s-ast_2.10/3.2.6/json4s-ast_2.10-3.2.6.jar:/Users/sg0226503/.m2/repository/org/scala-lang/scalap/2.10.0/scalap-2.10.0.jar:/Users/sg0226503/.m2/repository/colt/colt/1.2.0/colt-1.2.0.jar:/Users/sg0226503/.m2/repository/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar:/Users/sg0226503/.m2/repository/org/apache/mesos/mesos/0.18.1/mesos-0.18.1-shaded-protobuf.jar:/Users/sg0226503/.m2/repository/io/netty/netty-all/4.0.17.Final/netty-all-4.0.17.Final.jar:/Users/sg0226503/.m2/repository/com/clearspring/analytics/stream/2.5.1/stream-2.5.1.jar:/Users/sg0226503/.m2/repository/com/codahale/metrics/metrics-core/3.0.0/metrics-core-3.0.0.jar:/Users/sg0226503/.m2/repository/com/codahale/metrics/metrics-jvm/3.0.0/metrics-jvm-3.0.0.jar:/Users/sg0226503/.m2/repository/com/codahale/metrics/metrics-json/3.0.0/metrics-json-3.0.0.jar:/Users/sg0226503/.m2/repository/com/codahale/metrics/metrics-graphite/3.0.0/metrics-graphite-3.0.0.jar:/Users/sg0226503/.m2/repository/org/tachyonproject/tachyon/0.4.1-thrift/tachyon-0.4.1-thrift.jar:/Users/sg0226503/.m2/repository/org/apache/ant/ant/1.9.0/ant-1.9.0.jar:/Users/sg0226503/.m2/repository/org/apache/ant/ant-launcher/1.9.0/ant-launcher-1.9.0.jar:/Users/sg0226503/.m2/repository/org/spark-project/pyrolite/2.0.1/pyrolite-2.0.1.jar:/Users/sg0226503/.m2/repository/net/sf/py4j/py4j/0.8.1/py4j-0.8.1.jar:/Users/sg0226503/.m2/repository/com/twitter/parquet-avro/1.6.0rc4/parquet-avro-1.6.0rc4.jar:/Users/sg0226503/.m2/repository/com/twitter/parquet-column/1.6.0rc4/parquet-column-1.6.0rc4.jar:/Users/sg0226503/.m2/repository/com/twitter/parquet-common/1.6.0rc4/parquet-common-1.6.0rc4.jar:/Users/sg0226503/.m2/repository/com/twitter/parquet-encoding/1.6.0rc4/parquet-encoding-1.6.0rc4.jar:/Users/sg0226503/.m2/repository/com/twitter/parquet-generator/1.6.0rc4/parquet-generator-1.6.0rc4.jar:/Users/sg0226503/.m2/repository/com/twitter/parquet-hadoop/1.6.0rc4/parquet-hadoop-1.6.0rc4.jar:/Users/sg0226503/.m2/repository/com/twitter/parquet-jackson/1.6.0rc4/parquet-jackson-1.6.0rc4.jar:/Users/sg0226503/.m2/repository/com/twitter/parquet-format/2.2.0-rc1/parquet-format-2.2.0-rc1.jar:/Users/sg0226503/.m2/repository/org/apache/avro/avro/1.7.6/avro-1.7.6.jar:/Users/sg0226503/.m2/repository/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/Users/sg0226503/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/Users/sg0226503/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar:/Users/sg0226503/.m2/repository/org/apache/spark/spark-sql_2.10/1.6.2/spark-sql_2.10-1.6.2.jar:/Users/sg0226503/.m2/repository/org/apache/spark/spark-catalyst_2.10/1.6.2/spark-catalyst_2.10-1.6.2.jar:/Users/sg0226503/.m2/repository/org/apache/spark/spark-unsafe_2.10/1.6.2/spark-unsafe_2.10-1.6.2.jar:/Users/sg0226503/.m2/repository/org/codehaus/janino/janino/2.7.8/janino-2.7.8.jar:/Users/sg0226503/.m2/repository/org/codehaus/janino/commons-compiler/2.7.8/commons-compiler-2.7.8.jar:/Users/sg0226503/.m2/repository/org/apache/parquet/parquet-column/1.7.0/parquet-column-1.7.0.jar:/Users/sg0226503/.m2/repository/org/apache/parquet/parquet-common/1.7.0/parquet-common-1.7.0.jar:/Users/sg0226503/.m2/repository/org/apache/parquet/parquet-encoding/1.7.0/parquet-encoding-1.7.0.jar:/Users/sg0226503/.m2/repository/org/apache/parquet/parquet-generator/1.7.0/parquet-generator-1.7.0.jar:/Users/sg0226503/.m2/repository/org/apache/parquet/parquet-hadoop/1.7.0/parquet-hadoop-1.7.0.jar:/Users/sg0226503/.m2/repository/org/apache/parquet/parquet-format/2.3.0-incubating/parquet-format-2.3.0-incubating.jar:/Users/sg0226503/.m2/repository/org/apache/parquet/parquet-jackson/1.7.0/parquet-jackson-1.7.0.jar:/Users/sg0226503/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.4.4/jackson-databind-2.4.4.jar:/Users/sg0226503/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.4.0/jackson-annotations-2.4.0.jar:/Users/sg0226503/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.4.4/jackson-core-2.4.4.jar:/Users/sg0226503/.m2/repository/org/spark-project/spark/unused/1.0.0/unused-1.0.0.jar:/Users/sg0226503/.m2/repository/org/apache/avro/avro-compiler/1.5.0/avro-compiler-1.5.0.jar:/Users/sg0226503/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar:/Users/sg0226503/.m2/repository/org/apache/velocity/velocity/1.6.4/velocity-1.6.4.jar:/Users/sg0226503/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/sg0226503/.m2/repository/org/apache/hadoop/hadoop-core/1.2.1/hadoop-core-1.2.1.jar:/Users/sg0226503/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/sg0226503/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/sg0226503/.m2/repository/com/sun/jersey/jersey-core/1.8/jersey-core-1.8.jar:/Users/sg0226503/.m2/repository/com/sun/jersey/jersey-json/1.8/jersey-json-1.8.jar:/Users/sg0226503/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/Users/sg0226503/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/sg0226503/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/sg0226503/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/Users/sg0226503/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/Users/sg0226503/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/sg0226503/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.7.1/jackson-jaxrs-1.7.1.jar:/Users/sg0226503/.m2/repository/org/codehaus/jackson/jackson-xc/1.7.1/jackson-xc-1.7.1.jar:/Users/sg0226503/.m2/repository/com/sun/jersey/jersey-server/1.8/jersey-server-1.8.jar:/Users/sg0226503/.m2/repository/asm/asm/3.1/asm-3.1.jar:/Users/sg0226503/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/Users/sg0226503/.m2/repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar:/Users/sg0226503/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/sg0226503/.m2/repository/org/apache/commons/commons-math/2.1/commons-math-2.1.jar:/Users/sg0226503/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/Users/sg0226503/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/sg0226503/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/sg0226503/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/Users/sg0226503/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/Users/sg0226503/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/Users/sg0226503/.m2/repository/tomcat/jasper-runtime/5.5.12/jasper-runtime-5.5.12.jar:/Users/sg0226503/.m2/repository/tomcat/jasper-compiler/5.5.12/jasper-compiler-5.5.12.jar:/Users/sg0226503/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.14/jsp-api-2.1-6.1.14.jar:/Users/sg0226503/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.14/servlet-api-2.5-6.1.14.jar:/Users/sg0226503/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.14/jsp-2.1-6.1.14.jar:/Users/sg0226503/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar:/Users/sg0226503/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar:/Users/sg0226503/.m2/repository/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.jar:/Users/sg0226503/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/Users/sg0226503/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar:/Users/sg0226503/.m2/repository/it/unimi/dsi/fastutil/6.5.15/fastutil-6.5.15.jar:/Users/sg0226503/.m2/repository/org/apache/pig/piggybank/0.12.0/piggybank-0.12.0.jar:/Users/sg0226503/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/sg0226503/.m2/repository/joda-time/joda-time/2.1/joda-time-2.1.jar:/Users/sg0226503/.m2/repository/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar:/Users/sg0226503/.m2/repository/org/apache/pig/pig/0.12.0/pig-0.12.0.jar:/Users/sg0226503/.m2/repository/net/sf/kosmosfs/kfs/0.3/kfs-0.3.jar:/Users/sg0226503/.m2/repository/org/antlr/antlr-runtime/3.4/antlr-runtime-3.4.jar:/Users/sg0226503/.m2/repository/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1.jar:/Users/sg0226503/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/Users/sg0226503/.m2/repository/org/antlr/ST4/4.0.4/ST4-4.0.4.jar:/Users/sg0226503/.m2/repository/org/scala-lang/scala-compiler/2.10.4/scala-compiler-2.10.4.jar:/Users/sg0226503/.m2/repository/org/scala-lang/scala-reflect/2.10.4/scala-reflect-2.10.4.jar -d /Users/sg0226503/Documents/AnkurData/simplesparkavroapp-specifics/target/classes [INFO] [INFO] last tree to typer: TypeTree(class Schema) [INFO] symbol: class Schema in package avro (flags: abstract ) [INFO] symbol definition: abstract class Schema extends JsonProperties [INFO] tpe: org.apache.avro.Schema [INFO] symbol owners: class Schema -> package avro [INFO] context owners: value fieldsAssembler -> method convertStructToAvro3 -> object BuildSchema -> package schema [INFO] [INFO] == Enclosing template or block == [INFO] [INFO] Block( [INFO] ValDef( // val fieldsAssembler: org.apache.avro.SchemaBuilder.FieldAssembler[org.apache.avro.Schema] [INFO] [INFO] "fieldsAssembler" [INFO] // tree.tpe=org.apache.avro.SchemaBuilder.FieldAssembler [INFO] Apply( // final def noDefault(): org.apache.avro.SchemaBuilder.FieldAssembler[R] in class FieldDefault [INFO] org.apache.avro.SchemaBuilder.record("com.sabre.bigsky.avro.shoprecord.ShopRecord").namespace("shoprecord").fields().name("OrigDest").type().nullable().array().items().record("OrigDestRecords").fields().name("RPH").type().stringType().noDefault().name("OrigAirportCode").type().stringType().noDefault().name("DestAirportCode").type().stringType().noDefault().name("DepartureDateTime").type().stringType().noDefault().name("DepartureWindow").type().stringType().noDefault().name("ArrivalWindow").type().stringType().noDefault().name("SegmentType").type().stringType().noDefault().name("AltTime").type().stringType().noDefault().name("AltDate").type().stringType().noDefault().name("AltLocOrig").type().stringType().noDefault().name("AltLocDest").type().stringType().noDefault().name("PrefConnCities").type().nullable().array().items().record("PrefConnCitiesRecords").fields().endRecord().noDefault().name("DesignRouting").type().nullable().array().items().record("PrefConnCitiesRecords").fields().endRecord().noDefault().name("VendorPref").type().nullable().array().items().record("VendorPrefRecords").fields().name("Code").type().stringType().noDefault().name("VendorPrefLevel").type().stringType().noDefault().endRecord().noDefault().endRecord().noDefault().name("Passenger").type().nullable().array().items().record("PassengerRecords").fields().name("PAXCode").type().stringType().noDefault().name("PAXQuantity").type().stringType().noDefault().endRecord()."noDefault" // final def noDefault(): org.apache.avro.SchemaBuilder.FieldAssembler[R] in class FieldDefault [INFO] Nil [INFO] ) [INFO] ) [INFO] Apply( // def endRecord(): R in class FieldAssembler [INFO] "fieldsAssembler"."endRecord" // def endRecord(): R in class FieldAssembler [INFO] Nil [INFO] ) [INFO] ) [INFO] [INFO] == Expanded type of tree == [INFO] [INFO] TypeRef(TypeSymbol(abstract class Schema extends JsonProperties)) [INFO] [ERROR] uncaught exception during compilation: java.lang.StackOverflowError [ERROR] error: java.lang.StackOverflowError [INFO] at scala.reflect.internal.Symbols$TermSymbol.isStable(Symbols.scala:2480) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4577) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4659) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5564) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5735) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:781) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4659) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5564) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5735) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:781) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4659) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5564) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5735) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:781) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4659) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5564) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5735) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:781) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4659) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5564) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5735) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:781) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4659) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5564) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5727) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5735) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:781) [INFO] at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:835) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$93.apply(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:727)

[INFO] at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4608) [INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4659)

scabug commented 8 years ago

Imported From: https://issues.scala-lang.org/browse/SI-9876?orig=1 Reporter: Ankur Nayyar (anayyar82-at-gmail.com)

scabug commented 8 years ago

Ankur Nayyar (anayyar82-at-gmail.com) said: This is the function which i am trying to write.... Work perfect with couple of elements .. but as soon as we add more getting above error...

Please look into it asap this is very urgent requirement.

def convertStructToAvro(): Schema = {

val fieldsAssembler: FieldAssembler[org.apache.avro.Schema] = SchemaBuilder.record("com.sabre.bigsky.avro.shoprecord.ShopRecord").namespace("shoprecord")
  .fields()
  .name("1").`type`().nullable().stringType().noDefault()
  .name("2").`type`().nullable().stringType().noDefault()
  .name("3").`type`().nullable().stringType().noDefault()
  .name("4").`type`().nullable().stringType().noDefault()

.name("5").type().nullable().stringType().noDefault()

fieldsAssembler.endRecord()

}

scabug commented 8 years ago

@SethTisue said: Can you supply a short, self-contained code example which produces the error, so that compiler developers can reproduce the problem on their own computers? Without that, it's very hard for us to do anything.

Does the problem exist in current versions of Scala such as 2.11.8 and 2.12.0-M5, or does it only occur with Scala 2.10?