Scala compiler crash

320 views
Skip to first unread message

Meredith Gregory

unread,
Aug 20, 2013, 2:45:35 AM8/20/13
to scala-user
Dear Scalararians,

We're seeing a compiler crash. If we include this file anywhere in our project -- even in a separate package -- the compiler crashes. If i make a separate project with just this file, that project compiles.

i've spent about as much time as i've got to make a minimal repro. i've put it in the scalaCompilerErrorRepro branch of SpecialK. Since i don't have a more self-contained repro case i haven't opened a ticket.

Any help would be greatly appreciated.

Love,

--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
7329 39th Ave SW

Meredith Gregory

unread,
Aug 20, 2013, 2:53:12 AM8/20/13
to scala-user
P.S. The contents of the crash-inducing file are simply

package com.biosimilarity.lift.model.store.scribble
import scala.util.continuations._

trait Scribble[Resource] {
  def wrapWithCatch(
    sk : Option[Resource] => Unit @suspendable
  ) : Option[Resource] => Unit @suspendable = {
    ( optRsrc ) => {
      try {
sk( optRsrc )
      }
      catch {
        case t : Throwable => {
          val errors : java.io.StringWriter = new java.io.StringWriter()
          t.printStackTrace( new java.io.PrintWriter( errors ) )
          println( "unhandled exception : " + errors.toString( ) );
        }
      }
    }
  }
}

and the crash is

bash-3.2$ mvn clean compile [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building specialK Project 1.1.7.1 [INFO] ------------------------------------------------------------------------ [WARNING] The POM for com.ettrema:milton-api:jar:1.7.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ specialK --- [INFO] Deleting /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target [INFO] [INFO] --- maven-resources-plugin:2.4.2:resources (default-resources) @ specialK --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 13 resources [INFO] [INFO] --- maven-resources-plugin:2.4.2:copy-resources (default-copy-resources) @ specialK --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- yuicompressor-maven-plugin:0.7.1:compress (default) @ specialK --- [INFO] nb warnings: 0, nb errors: 0 [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ specialK --- [INFO] Compiling 426 source files to /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/classes [INFO] [INFO] --- maven-scala-plugin:2.15.2:compile (default) @ specialK --- [INFO] Checking for multiple versions of scala [WARNING] Invalid POM for com.ettrema:milton-api:jar:1.7.2, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] includes = [**/*.scala,**/*.java,] [INFO] excludes = [] [INFO] /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/src/main/scala:-1: info: compiling [INFO] Compiling 594 source files to /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/classes at 1376969838442 [INFO] compiler plugin: BasicArtifact(org.scala-lang.plugins,continuations,2.10.0) [INFO] cmd: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.10.0/scala-library-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.10.0/scala-compiler-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-reflect/2.10.0/scala-reflect-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.10.0/scala-library-2.10.0.jar -Xmx4096m -XX:MaxPermSize=512m -Djava.library.path=$HGDB_ROOT/native -DpackageLinkDefs=file:///Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/packageLinkDefs.properties org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/h1/4mhf4snd64bfd79zf353f4r40000gn/T/scala-maven-5055214031932627075.args
...
[ERROR] error: symbol value errors does not exist in com.biosimilarity.lift.model.store.scribble.Scribble$$anonfun$wrapWithCatch$1.apply [ERROR] error: [INFO] while compiling: /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/src/main/scala/com/biosimilarity/lift/model/store/Scribble.scala [INFO] during phase: icode [INFO] library version: version 2.10.0 [INFO] compiler version: version 2.10.0 [INFO] reconstructed args: -Xplugin:/Users/lgm/.m2/repository/org/scala-lang/plugins/continuations/2.10.0/continuations-2.10.0.jar -P:continuations:enable -classpath /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/classes:/Users/lgm/.m2/repository/com/google/zxing/core/2.0/core-2.0.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-commons_2.10/2.5.1/casbah-commons_2.10-2.5.1.jar:/Users/lgm/.m2/repository/com/github/nscala-time/nscala-time_2.10/0.2.0/nscala-time_2.10-0.2.0.jar:/Users/lgm/.m2/repository/joda-time/joda-time/2.1/joda-time-2.1.jar:/Users/lgm/.m2/repository/org/joda/joda-convert/1.2/joda-convert-1.2.jar:/Users/lgm/.m2/repository/org/mongodb/mongo-java-driver/2.10.1/mongo-java-driver-2.10.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-core_2.10/2.5.1/casbah-core_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-query_2.10/2.5.1/casbah-query_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-gridfs_2.10/2.5.1/casbah-gridfs_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/json4s/json4s-jackson_2.10/3.2.4/json4s-jackson_2.10-3.2.4.jar:/Users/lgm/.m2/repository/org/json4s/json4s-core_2.10/3.2.4/json4s-core_2.10-3.2.4.jar:/Users/lgm/.m2/repository/org/json4s/json4s-ast_2.10/3.2.4/json4s-ast_2.10-3.2.4.jar:/Users/lgm/.m2/repository/com/thoughtworks/paranamer/paranamer/2.5.2/paranamer-2.5.2.jar:/Users/lgm/.m2/repository/org/scala-lang/scalap/2.10.0/scalap-2.10.0.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.1.2/jackson-databind-2.1.2.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.1.1/jackson-annotations-2.1.1.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.1.1/jackson-core-2.1.1.jar:/Users/lgm/.m2/repository/biz/source_code/base64coder/2010-09-21/base64coder-2010-09-21.jar:/Users/lgm/.m2/repository/org/coconut/forkjoin/jsr166y/070108/jsr166y-070108.jar:/Users/lgm/.m2/repository/org/specs2/specs2_2.10/1.14/specs2_2.10-1.14.jar:/Users/lgm/.m2/repository/org/specs2/specs2-scalaz-core_2.10/7.0.0/specs2-scalaz-core_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/specs2-scalaz-concurrent_2.10/7.0.0/specs2-scalaz-concurrent_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/scalaz-effect_2.10/7.0.0/scalaz-effect_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/scalaz-core_2.10/7.0.0/scalaz-core_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/scalatest/scalatest_2.10/2.0.M5b/scalatest_2.10-2.0.M5b.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/orbit/javax.servlet.jsp/2.2.0.v201112011158/javax.servlet.jsp-2.2.0.v201112011158.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-server/8.0.4.v20111024/jetty-server-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-continuation/8.0.4.v20111024/jetty-continuation-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-http/8.0.4.v20111024/jetty-http-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-io/8.0.4.v20111024/jetty-io-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-servlets/8.0.4.v20111024/jetty-servlets-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-client/8.0.4.v20111024/jetty-client-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-util/8.0.4.v20111024/jetty-util-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-webapp/8.0.4.v20111024/jetty-webapp-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-xml/8.0.4.v20111024/jetty-xml-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-servlet/8.0.4.v20111024/jetty-servlet-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-security/8.0.4.v20111024/jetty-security-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-websocket/8.0.1.v20110908/jetty-websocket-8.0.1.v20110908.jar:/Users/lgm/.m2/repository/com/typesafe/config/1.0.0/config-1.0.0.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.10.0/scala-library-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-actors/2.10.0/scala-actors-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-lang/jline/2.10.0/jline-2.10.0.jar:/Users/lgm/.m2/repository/org/fusesource/jansi/jansi/1.4/jansi-1.4.jar:/Users/lgm/.m2/repository/org/prolog4j/prolog4j-api/0.2.1-SNAPSHOT/prolog4j-api-0.2.1-SNAPSHOT.jar:/Users/lgm/.m2/repository/asm/asm-commons/3.1/asm-commons-3.1.jar:/Users/lgm/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar:/Users/lgm/.m2/repository/asm/asm/3.1/asm-3.1.jar:/Users/lgm/.m2/repository/asm/asm-util/3.1/asm-util-3.1.jar:/Users/lgm/.m2/repository/org/prolog4j/prolog4j-tuprolog/0.2.1-SNAPSHOT/prolog4j-tuprolog-0.2.1-SNAPSHOT.jar:/Users/lgm/.m2/repository/it/unibo/alice/tuprolog/tuProlog/2.1.1/tuProlog-2.1.1.jar:/Users/lgm/.m2/repository/jlex/JLex-local/local/JLex-local-local.jar:/Users/lgm/.m2/repository/cup/java-cup-11a/local/java-cup-11a-local.jar:/Users/lgm/.m2/repository/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.jar:/Users/lgm/.m2/repository/com/rabbitmq/amqp-client/2.6.1/amqp-client-2.6.1.jar:/Users/lgm/.m2/repository/commons-cli/commons-cli/1.1/commons-cli-1.1.jar:/Users/lgm/.m2/repository/commons-io/commons-io/1.2/commons-io-1.2.jar:/Users/lgm/.m2/repository/org/codehaus/jettison/jettison/1.3/jettison-1.3.jar:/Users/lgm/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/lgm/.m2/repository/com/google/code/gson/gson/2.1/gson-2.1.jar:/Users/lgm/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar:/Users/lgm/.m2/repository/com/thoughtworks/xstream/xstream/1.4.4/xstream-1.4.4.jar:/Users/lgm/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar:/Users/lgm/.m2/repository/org/scalaxb/scalaxb/local-update/scalaxb-local-update.jar:/Users/lgm/.m2/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar:/Users/lgm/.m2/repository/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.jar:/Users/lgm/.m2/repository/org/apache/ws/commons/util/ws-commons-util/1.0.2/ws-commons-util-1.0.2.jar:/Users/lgm/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/lgm/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-client/3.1.2/xmlrpc-client-3.1.2.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1.2/xmlrpc-common-3.1.2.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-server/3.1.2/xmlrpc-server-3.1.2.jar:/Users/lgm/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.2.4/httpcore-nio-4.2.4.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpasyncclient/4.0-beta3/httpasyncclient-4.0-beta3.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar:/Users/lgm/.m2/repository/org/xmldb/xmldb-api/1.0/xmldb-api-1.0.jar:/Users/lgm/.m2/repository/javax/xml/xquery/xqj-api/1.0/xqj-api-1.0.jar:/Users/lgm/.m2/repository/org/basex/basex-api/7.6/basex-api-7.6.jar:/Users/lgm/.m2/repository/org/basex/basex/7.6/basex-7.6.jar:/Users/lgm/.m2/repository/net/xqj/basex-xqj/1.2.3/basex-xqj-1.2.3.jar:/Users/lgm/.m2/repository/com/xqj2/xqj2/0.1.0/xqj2-0.1.0.jar:/Users/lgm/.m2/repository/com/ettrema/milton-api/1.7.2/milton-api-1.7.2.jar:/Users/lgm/.m2/repository/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-nop/1.5.8/slf4j-nop-1.5.8.jar:/Users/lgm/.m2/repository/com/vividsolutions/jts/1.13/jts-1.13.jar:/Users/lgm/.m2/repository/com/sleepycat/db/local/db-local.jar:/Users/lgm/.m2/repository/org/jivesoft/smack/local/smack-local.jar:/Users/lgm/.m2/repository/org/jivesoft/smackx/local/smackx-local.jar:/Users/lgm/.m2/repository/org/hypergraphdb/hgdbfull/local/hgdbfull-local.jar:/Users/lgm/.m2/repository/net/lag/configgy/local/configgy-local.jar:/Users/lgm/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/lgm/.m2/repository/postgresql/postgresql/9.1-901.jdbc4/postgresql-9.1-901.jdbc4.jar:/Users/lgm/.m2/repository/org/scalesxml/scales-xml_2.10/0.4.5/scales-xml_2.10-0.4.5.jar:/Users/lgm/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/lgm/.m2/repository/org/scalaz/scalaz-core_2.10/6.0.4/scalaz-core_2.10-6.0.4.jar:/Users/lgm/.m2/repository/org/scalesxml/scales-jaxen_2.10/0.4.5/scales-jaxen_2.10-0.4.5.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-agent-monitoring-driver-collectd/0.7.1/sirocco-vmm-agent-monitoring-driver-collectd-0.7.1.jar:/Users/lgm/.m2/repository/org/fusesource/rrd4j/rrd4j/2.0.7/rrd4j-2.0.7.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-agent-core/0.7.1/sirocco-vmm-agent-core-0.7.1.jar:/Users/lgm/.m2/repository/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-api/1.2.1/sirocco-vmm-api-1.2.1.jar -d /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/classes -explaintypes [INFO] [INFO] last tree to typer: Literal(Constant(())) [INFO] symbol: null [INFO] symbol definition: null [INFO] tpe: Unit [INFO] symbol owners: [INFO] context owners: class StringAMQPPublisher -> package usage [INFO] [INFO] == Enclosing template or block == [INFO] [INFO] Template( // val <local StringAMQPPublisher>: <notype> in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPPublisher [INFO] "java.lang.Object" // parents [INFO] ValDef( [INFO] private [INFO] "_" [INFO] <tpt> [INFO] <empty> [INFO] ) [INFO] // 4 statements [INFO] ValDef( // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher [INFO] private <local> <triedcooking> [INFO] "amqp " [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] <empty> [INFO] ) [INFO] DefDef( // val amqp(): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher [INFO] <method> <stable> <accessor> <triedcooking> [INFO] "amqp" [INFO] [] [INFO] List(Nil) [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] StringAMQPPublisher.this."amqp " // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] ) [INFO] DefDef( // def send(value: String): Unit in class StringAMQPPublisher [INFO] <method> [INFO] "send" [INFO] [] [INFO] // 1 parameter list [INFO] ValDef( // value: String [INFO] <param> <triedcooking> [INFO] "value" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] <tpt> // tree.tpe=Unit [INFO] Apply( // override def !(msg: Object): Unit in trait InternalReplyReactor, tree.tpe=Unit [INFO] StringAMQPPublisher.this.amqp()."$bang" // override def !(msg: Object): Unit in trait InternalReplyReactor, tree.tpe=(msg: Object)Unit [INFO] Apply( // def <init>(message: Object): net.liftweb.amqp.AMQPMessage in class AMQPMessage, tree.tpe=net.liftweb.amqp.AMQPMessage [INFO] new net.liftweb.amqp.AMQPMessage."<init>" // def <init>(message: Object): net.liftweb.amqp.AMQPMessage in class AMQPMessage, tree.tpe=(message: Object)net.liftweb.amqp.AMQPMessage [INFO] "value" // value: String, tree.tpe=String [INFO] ) [INFO] ) [INFO] ) [INFO] DefDef( // def <init>(host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPPublisher in class StringAMQPPublisher [INFO] <method> [INFO] "<init>" [INFO] [] [INFO] // 1 parameter list [INFO] ValDef( // host: String [INFO] <param> <paramaccessor> [INFO] "host" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] ValDef( // port: Int [INFO] <param> <paramaccessor> [INFO] "port" [INFO] <tpt> // tree.tpe=Int [INFO] <empty> [INFO] ) [INFO] ValDef( // exchange: String [INFO] <param> <paramaccessor> [INFO] "exchange" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] ValDef( // routingKey: String [INFO] <param> <paramaccessor> [INFO] "routingKey" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPPublisher [INFO] Block( // tree.tpe=Unit [INFO] // 3 statements [INFO] Apply( // def <init>(): Object in class Object, tree.tpe=Object [INFO] StringAMQPPublisher.super."<init>" // def <init>(): Object in class Object, tree.tpe=()Object [INFO] Nil [INFO] ) [INFO] Assign( // tree.tpe=Unit [INFO] StringAMQPPublisher.this."amqp " // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] Apply( // def <init>(factory: com.rabbitmq.client.ConnectionFactory,host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPSender, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] new net.liftweb.amqp.usage.StringAMQPSender."<init>" // def <init>(factory: com.rabbitmq.client.ConnectionFactory,host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPSender, tree.tpe=(factory: com.rabbitmq.client.ConnectionFactory, host: String, port: Int, exchange: String, routingKey: String)net.liftweb.amqp.usage.StringAMQPSender [INFO] // 5 arguments [INFO] Apply( // final val guest(): com.rabbitmq.client.ConnectionFactory in object RabbitFactory, tree.tpe=com.rabbitmq.client.ConnectionFactory [INFO] "com"."biosimilarity"."lift"."lib"."amqp"."RabbitFactory"."guest" // final val guest(): com.rabbitmq.client.ConnectionFactory in object RabbitFactory, tree.tpe=()com.rabbitmq.client.ConnectionFactory [INFO] Nil [INFO] ) [INFO] "host" // host: String, tree.tpe=String [INFO] "port" // port: Int, tree.tpe=Int [INFO] "exchange" // exchange: String, tree.tpe=String [INFO] "routingKey" // routingKey: String, tree.tpe=String [INFO] ) [INFO] ) [INFO] Apply( // override def start(): actors.Actor in trait Actor, tree.tpe=actors.Actor [INFO] StringAMQPPublisher.this.amqp()."start" // override def start(): actors.Actor in trait Actor, tree.tpe=()actors.Actor [INFO] Nil [INFO] ) [INFO] () [INFO] ) [INFO] ) [INFO] ) [INFO] [INFO] == Expanded type of tree == [INFO] [INFO] TypeRef(TypeSymbol(final abstract class Unit extends )) [INFO] [ERROR] uncaught exception during compilation: scala.reflect.internal.FatalError [ERROR] error: scala.reflect.internal.FatalError: [INFO] while compiling: /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/src/main/scala/com/biosimilarity/lift/model/store/Scribble.scala [INFO] during phase: icode [INFO] library version: version 2.10.0 [INFO] compiler version: version 2.10.0 [INFO] reconstructed args: -Xplugin:/Users/lgm/.m2/repository/org/scala-lang/plugins/continuations/2.10.0/continuations-2.10.0.jar -P:continuations:enable -classpath /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/classes:/Users/lgm/.m2/repository/com/google/zxing/core/2.0/core-2.0.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-commons_2.10/2.5.1/casbah-commons_2.10-2.5.1.jar:/Users/lgm/.m2/repository/com/github/nscala-time/nscala-time_2.10/0.2.0/nscala-time_2.10-0.2.0.jar:/Users/lgm/.m2/repository/joda-time/joda-time/2.1/joda-time-2.1.jar:/Users/lgm/.m2/repository/org/joda/joda-convert/1.2/joda-convert-1.2.jar:/Users/lgm/.m2/repository/org/mongodb/mongo-java-driver/2.10.1/mongo-java-driver-2.10.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-core_2.10/2.5.1/casbah-core_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-query_2.10/2.5.1/casbah-query_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-gridfs_2.10/2.5.1/casbah-gridfs_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/json4s/json4s-jackson_2.10/3.2.4/json4s-jackson_2.10-3.2.4.jar:/Users/lgm/.m2/repository/org/json4s/json4s-core_2.10/3.2.4/json4s-core_2.10-3.2.4.jar:/Users/lgm/.m2/repository/org/json4s/json4s-ast_2.10/3.2.4/json4s-ast_2.10-3.2.4.jar:/Users/lgm/.m2/repository/com/thoughtworks/paranamer/paranamer/2.5.2/paranamer-2.5.2.jar:/Users/lgm/.m2/repository/org/scala-lang/scalap/2.10.0/scalap-2.10.0.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.1.2/jackson-databind-2.1.2.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.1.1/jackson-annotations-2.1.1.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.1.1/jackson-core-2.1.1.jar:/Users/lgm/.m2/repository/biz/source_code/base64coder/2010-09-21/base64coder-2010-09-21.jar:/Users/lgm/.m2/repository/org/coconut/forkjoin/jsr166y/070108/jsr166y-070108.jar:/Users/lgm/.m2/repository/org/specs2/specs2_2.10/1.14/specs2_2.10-1.14.jar:/Users/lgm/.m2/repository/org/specs2/specs2-scalaz-core_2.10/7.0.0/specs2-scalaz-core_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/specs2-scalaz-concurrent_2.10/7.0.0/specs2-scalaz-concurrent_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/scalaz-effect_2.10/7.0.0/scalaz-effect_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/scalaz-core_2.10/7.0.0/scalaz-core_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/scalatest/scalatest_2.10/2.0.M5b/scalatest_2.10-2.0.M5b.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/orbit/javax.servlet.jsp/2.2.0.v201112011158/javax.servlet.jsp-2.2.0.v201112011158.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-server/8.0.4.v20111024/jetty-server-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-continuation/8.0.4.v20111024/jetty-continuation-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-http/8.0.4.v20111024/jetty-http-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-io/8.0.4.v20111024/jetty-io-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-servlets/8.0.4.v20111024/jetty-servlets-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-client/8.0.4.v20111024/jetty-client-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-util/8.0.4.v20111024/jetty-util-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-webapp/8.0.4.v20111024/jetty-webapp-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-xml/8.0.4.v20111024/jetty-xml-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-servlet/8.0.4.v20111024/jetty-servlet-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-security/8.0.4.v20111024/jetty-security-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-websocket/8.0.1.v20110908/jetty-websocket-8.0.1.v20110908.jar:/Users/lgm/.m2/repository/com/typesafe/config/1.0.0/config-1.0.0.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.10.0/scala-library-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-actors/2.10.0/scala-actors-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-lang/jline/2.10.0/jline-2.10.0.jar:/Users/lgm/.m2/repository/org/fusesource/jansi/jansi/1.4/jansi-1.4.jar:/Users/lgm/.m2/repository/org/prolog4j/prolog4j-api/0.2.1-SNAPSHOT/prolog4j-api-0.2.1-SNAPSHOT.jar:/Users/lgm/.m2/repository/asm/asm-commons/3.1/asm-commons-3.1.jar:/Users/lgm/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar:/Users/lgm/.m2/repository/asm/asm/3.1/asm-3.1.jar:/Users/lgm/.m2/repository/asm/asm-util/3.1/asm-util-3.1.jar:/Users/lgm/.m2/repository/org/prolog4j/prolog4j-tuprolog/0.2.1-SNAPSHOT/prolog4j-tuprolog-0.2.1-SNAPSHOT.jar:/Users/lgm/.m2/repository/it/unibo/alice/tuprolog/tuProlog/2.1.1/tuProlog-2.1.1.jar:/Users/lgm/.m2/repository/jlex/JLex-local/local/JLex-local-local.jar:/Users/lgm/.m2/repository/cup/java-cup-11a/local/java-cup-11a-local.jar:/Users/lgm/.m2/repository/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.jar:/Users/lgm/.m2/repository/com/rabbitmq/amqp-client/2.6.1/amqp-client-2.6.1.jar:/Users/lgm/.m2/repository/commons-cli/commons-cli/1.1/commons-cli-1.1.jar:/Users/lgm/.m2/repository/commons-io/commons-io/1.2/commons-io-1.2.jar:/Users/lgm/.m2/repository/org/codehaus/jettison/jettison/1.3/jettison-1.3.jar:/Users/lgm/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/lgm/.m2/repository/com/google/code/gson/gson/2.1/gson-2.1.jar:/Users/lgm/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar:/Users/lgm/.m2/repository/com/thoughtworks/xstream/xstream/1.4.4/xstream-1.4.4.jar:/Users/lgm/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar:/Users/lgm/.m2/repository/org/scalaxb/scalaxb/local-update/scalaxb-local-update.jar:/Users/lgm/.m2/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar:/Users/lgm/.m2/repository/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.jar:/Users/lgm/.m2/repository/org/apache/ws/commons/util/ws-commons-util/1.0.2/ws-commons-util-1.0.2.jar:/Users/lgm/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/lgm/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-client/3.1.2/xmlrpc-client-3.1.2.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1.2/xmlrpc-common-3.1.2.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-server/3.1.2/xmlrpc-server-3.1.2.jar:/Users/lgm/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.2.4/httpcore-nio-4.2.4.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpasyncclient/4.0-beta3/httpasyncclient-4.0-beta3.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar:/Users/lgm/.m2/repository/org/xmldb/xmldb-api/1.0/xmldb-api-1.0.jar:/Users/lgm/.m2/repository/javax/xml/xquery/xqj-api/1.0/xqj-api-1.0.jar:/Users/lgm/.m2/repository/org/basex/basex-api/7.6/basex-api-7.6.jar:/Users/lgm/.m2/repository/org/basex/basex/7.6/basex-7.6.jar:/Users/lgm/.m2/repository/net/xqj/basex-xqj/1.2.3/basex-xqj-1.2.3.jar:/Users/lgm/.m2/repository/com/xqj2/xqj2/0.1.0/xqj2-0.1.0.jar:/Users/lgm/.m2/repository/com/ettrema/milton-api/1.7.2/milton-api-1.7.2.jar:/Users/lgm/.m2/repository/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-nop/1.5.8/slf4j-nop-1.5.8.jar:/Users/lgm/.m2/repository/com/vividsolutions/jts/1.13/jts-1.13.jar:/Users/lgm/.m2/repository/com/sleepycat/db/local/db-local.jar:/Users/lgm/.m2/repository/org/jivesoft/smack/local/smack-local.jar:/Users/lgm/.m2/repository/org/jivesoft/smackx/local/smackx-local.jar:/Users/lgm/.m2/repository/org/hypergraphdb/hgdbfull/local/hgdbfull-local.jar:/Users/lgm/.m2/repository/net/lag/configgy/local/configgy-local.jar:/Users/lgm/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/lgm/.m2/repository/postgresql/postgresql/9.1-901.jdbc4/postgresql-9.1-901.jdbc4.jar:/Users/lgm/.m2/repository/org/scalesxml/scales-xml_2.10/0.4.5/scales-xml_2.10-0.4.5.jar:/Users/lgm/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/lgm/.m2/repository/org/scalaz/scalaz-core_2.10/6.0.4/scalaz-core_2.10-6.0.4.jar:/Users/lgm/.m2/repository/org/scalesxml/scales-jaxen_2.10/0.4.5/scales-jaxen_2.10-0.4.5.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-agent-monitoring-driver-collectd/0.7.1/sirocco-vmm-agent-monitoring-driver-collectd-0.7.1.jar:/Users/lgm/.m2/repository/org/fusesource/rrd4j/rrd4j/2.0.7/rrd4j-2.0.7.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-agent-core/0.7.1/sirocco-vmm-agent-core-0.7.1.jar:/Users/lgm/.m2/repository/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-api/1.2.1/sirocco-vmm-api-1.2.1.jar -d /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/classes -explaintypes [INFO] [INFO] last tree to typer: Literal(Constant(())) [INFO] symbol: null [INFO] symbol definition: null [INFO] tpe: Unit [INFO] symbol owners: [INFO] context owners: class StringAMQPPublisher -> package usage [INFO] [INFO] == Enclosing template or block == [INFO] [INFO] Template( // val <local StringAMQPPublisher>: <notype> in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPPublisher [INFO] "java.lang.Object" // parents [INFO] ValDef( [INFO] private [INFO] "_" [INFO] <tpt> [INFO] <empty> [INFO] ) [INFO] // 4 statements [INFO] ValDef( // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher [INFO] private <local> <triedcooking> [INFO] "amqp " [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] <empty> [INFO] ) [INFO] DefDef( // val amqp(): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher [INFO] <method> <stable> <accessor> <triedcooking> [INFO] "amqp" [INFO] [] [INFO] List(Nil) [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] StringAMQPPublisher.this."amqp " // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] ) [INFO] DefDef( // def send(value: String): Unit in class StringAMQPPublisher [INFO] <method> [INFO] "send" [INFO] [] [INFO] // 1 parameter list [INFO] ValDef( // value: String [INFO] <param> <triedcooking> [INFO] "value" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] <tpt> // tree.tpe=Unit [INFO] Apply( // override def !(msg: Object): Unit in trait InternalReplyReactor, tree.tpe=Unit [INFO] StringAMQPPublisher.this.amqp()."$bang" // override def !(msg: Object): Unit in trait InternalReplyReactor, tree.tpe=(msg: Object)Unit [INFO] Apply( // def <init>(message: Object): net.liftweb.amqp.AMQPMessage in class AMQPMessage, tree.tpe=net.liftweb.amqp.AMQPMessage [INFO] new net.liftweb.amqp.AMQPMessage."<init>" // def <init>(message: Object): net.liftweb.amqp.AMQPMessage in class AMQPMessage, tree.tpe=(message: Object)net.liftweb.amqp.AMQPMessage [INFO] "value" // value: String, tree.tpe=String [INFO] ) [INFO] ) [INFO] ) [INFO] DefDef( // def <init>(host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPPublisher in class StringAMQPPublisher [INFO] <method> [INFO] "<init>" [INFO] [] [INFO] // 1 parameter list [INFO] ValDef( // host: String [INFO] <param> <paramaccessor> [INFO] "host" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] ValDef( // port: Int [INFO] <param> <paramaccessor> [INFO] "port" [INFO] <tpt> // tree.tpe=Int [INFO] <empty> [INFO] ) [INFO] ValDef( // exchange: String [INFO] <param> <paramaccessor> [INFO] "exchange" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] ValDef( // routingKey: String [INFO] <param> <paramaccessor> [INFO] "routingKey" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPPublisher [INFO] Block( // tree.tpe=Unit [INFO] // 3 statements [INFO] Apply( // def <init>(): Object in class Object, tree.tpe=Object [INFO] StringAMQPPublisher.super."<init>" // def <init>(): Object in class Object, tree.tpe=()Object [INFO] Nil [INFO] ) [INFO] Assign( // tree.tpe=Unit [INFO] StringAMQPPublisher.this."amqp " // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] Apply( // def <init>(factory: com.rabbitmq.client.ConnectionFactory,host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPSender, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] new net.liftweb.amqp.usage.StringAMQPSender."<init>" // def <init>(factory: com.rabbitmq.client.ConnectionFactory,host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPSender, tree.tpe=(factory: com.rabbitmq.client.ConnectionFactory, host: String, port: Int, exchange: String, routingKey: String)net.liftweb.amqp.usage.StringAMQPSender [INFO] // 5 arguments [INFO] Apply( // final val guest(): com.rabbitmq.client.ConnectionFactory in object RabbitFactory, tree.tpe=com.rabbitmq.client.ConnectionFactory [INFO] "com"."biosimilarity"."lift"."lib"."amqp"."RabbitFactory"."guest" // final val guest(): com.rabbitmq.client.ConnectionFactory in object RabbitFactory, tree.tpe=()com.rabbitmq.client.ConnectionFactory [INFO] Nil [INFO] ) [INFO] "host" // host: String, tree.tpe=String [INFO] "port" // port: Int, tree.tpe=Int [INFO] "exchange" // exchange: String, tree.tpe=String [INFO] "routingKey" // routingKey: String, tree.tpe=String [INFO] ) [INFO] ) [INFO] Apply( // override def start(): actors.Actor in trait Actor, tree.tpe=actors.Actor [INFO] StringAMQPPublisher.this.amqp()."start" // override def start(): actors.Actor in trait Actor, tree.tpe=()actors.Actor [INFO] Nil [INFO] ) [INFO] () [INFO] ) [INFO] ) [INFO] ) [INFO] [INFO] == Expanded type of tree == [INFO] [INFO] TypeRef(TypeSymbol(final abstract class Unit extends )) [INFO] [ERROR] symbol value errors does not exist in com.biosimilarity.lift.model.store.scribble.Scribble$$anonfun$wrapWithCatch$1.apply [INFO] at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:48) [INFO] at scala.tools.nsc.Global.abort(Global.scala:253) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.genLoadIdent$1(GenICode.scala:1037) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:1043) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$genLoadArguments$1.apply(GenICode.scala:1251) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$genLoadArguments$1.apply(GenICode.scala:1249) [INFO] at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110) [INFO] at scala.collection.immutable.List.foldLeft(List.scala:78) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.genLoadArguments(GenICode.scala:1249) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.genLoadApply3$1(GenICode.scala:837) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:794) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:1068) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:1076) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.genLoadValDef$1(GenICode.scala:654) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:662) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genStat(GenICode.scala:187) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$genStat$1.apply(GenICode.scala:156) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$genStat$1.apply(GenICode.scala:156) [INFO] at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110) [INFO] at scala.collection.immutable.List.foldLeft(List.scala:78) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:1067) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:124) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:72) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:149) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:99) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:72) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:90) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:68) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.apply(GenICode.scala:64) [INFO] at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:461) [INFO] at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:428) [INFO] at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:428) [INFO] at scala.collection.Iterator$class.foreach(Iterator.scala:727) [INFO] at scala.collection.AbstractIterator.foreach(Iterator.scala:1156) [INFO] at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:428) [INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.run(GenICode.scala:57) [INFO] at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1574) [INFO] at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1548) [INFO] at scala.tools.nsc.Global$Run.compileSources(Global.scala:1544) [INFO] at scala.tools.nsc.Global$Run.compile(Global.scala:1654) [INFO] at scala.tools.nsc.Driver.doCompile(Driver.scala:33) [INFO] at scala.tools.nsc.Main$.doCompile(Main.scala:79) [INFO] at scala.tools.nsc.Driver.process(Driver.scala:54) [INFO] at scala.tools.nsc.Driver.main(Driver.scala:67) [INFO] at scala.tools.nsc.Main.main(Main.scala) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [INFO] at java.lang.reflect.Method.invoke(Method.java:597) [INFO] at org_scala_tools_maven_executions.MainHelper.runMain(MainHelper.java:161) [INFO] at org_scala_tools_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26) [INFO] [ERROR] error: fatal error: [INFO] while compiling: /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/src/main/scala/com/biosimilarity/lift/model/store/Scribble.scala [INFO] during phase: icode [INFO] library version: version 2.10.0 [INFO] compiler version: version 2.10.0 [INFO] reconstructed args: -Xplugin:/Users/lgm/.m2/repository/org/scala-lang/plugins/continuations/2.10.0/continuations-2.10.0.jar -P:continuations:enable -classpath /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/classes:/Users/lgm/.m2/repository/com/google/zxing/core/2.0/core-2.0.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-commons_2.10/2.5.1/casbah-commons_2.10-2.5.1.jar:/Users/lgm/.m2/repository/com/github/nscala-time/nscala-time_2.10/0.2.0/nscala-time_2.10-0.2.0.jar:/Users/lgm/.m2/repository/joda-time/joda-time/2.1/joda-time-2.1.jar:/Users/lgm/.m2/repository/org/joda/joda-convert/1.2/joda-convert-1.2.jar:/Users/lgm/.m2/repository/org/mongodb/mongo-java-driver/2.10.1/mongo-java-driver-2.10.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-core_2.10/2.5.1/casbah-core_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-query_2.10/2.5.1/casbah-query_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/mongodb/casbah-gridfs_2.10/2.5.1/casbah-gridfs_2.10-2.5.1.jar:/Users/lgm/.m2/repository/org/json4s/json4s-jackson_2.10/3.2.4/json4s-jackson_2.10-3.2.4.jar:/Users/lgm/.m2/repository/org/json4s/json4s-core_2.10/3.2.4/json4s-core_2.10-3.2.4.jar:/Users/lgm/.m2/repository/org/json4s/json4s-ast_2.10/3.2.4/json4s-ast_2.10-3.2.4.jar:/Users/lgm/.m2/repository/com/thoughtworks/paranamer/paranamer/2.5.2/paranamer-2.5.2.jar:/Users/lgm/.m2/repository/org/scala-lang/scalap/2.10.0/scalap-2.10.0.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.1.2/jackson-databind-2.1.2.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.1.1/jackson-annotations-2.1.1.jar:/Users/lgm/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.1.1/jackson-core-2.1.1.jar:/Users/lgm/.m2/repository/biz/source_code/base64coder/2010-09-21/base64coder-2010-09-21.jar:/Users/lgm/.m2/repository/org/coconut/forkjoin/jsr166y/070108/jsr166y-070108.jar:/Users/lgm/.m2/repository/org/specs2/specs2_2.10/1.14/specs2_2.10-1.14.jar:/Users/lgm/.m2/repository/org/specs2/specs2-scalaz-core_2.10/7.0.0/specs2-scalaz-core_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/specs2-scalaz-concurrent_2.10/7.0.0/specs2-scalaz-concurrent_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/scalaz-effect_2.10/7.0.0/scalaz-effect_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/specs2/scalaz-core_2.10/7.0.0/scalaz-core_2.10-7.0.0.jar:/Users/lgm/.m2/repository/org/scalatest/scalatest_2.10/2.0.M5b/scalatest_2.10-2.0.M5b.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/orbit/javax.servlet.jsp/2.2.0.v201112011158/javax.servlet.jsp-2.2.0.v201112011158.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-server/8.0.4.v20111024/jetty-server-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-continuation/8.0.4.v20111024/jetty-continuation-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-http/8.0.4.v20111024/jetty-http-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-io/8.0.4.v20111024/jetty-io-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-servlets/8.0.4.v20111024/jetty-servlets-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-client/8.0.4.v20111024/jetty-client-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-util/8.0.4.v20111024/jetty-util-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-webapp/8.0.4.v20111024/jetty-webapp-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-xml/8.0.4.v20111024/jetty-xml-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-servlet/8.0.4.v20111024/jetty-servlet-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-security/8.0.4.v20111024/jetty-security-8.0.4.v20111024.jar:/Users/lgm/.m2/repository/org/eclipse/jetty/jetty-websocket/8.0.1.v20110908/jetty-websocket-8.0.1.v20110908.jar:/Users/lgm/.m2/repository/com/typesafe/config/1.0.0/config-1.0.0.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.10.0/scala-library-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-actors/2.10.0/scala-actors-2.10.0.jar:/Users/lgm/.m2/repository/org/scala-lang/jline/2.10.0/jline-2.10.0.jar:/Users/lgm/.m2/repository/org/fusesource/jansi/jansi/1.4/jansi-1.4.jar:/Users/lgm/.m2/repository/org/prolog4j/prolog4j-api/0.2.1-SNAPSHOT/prolog4j-api-0.2.1-SNAPSHOT.jar:/Users/lgm/.m2/repository/asm/asm-commons/3.1/asm-commons-3.1.jar:/Users/lgm/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar:/Users/lgm/.m2/repository/asm/asm/3.1/asm-3.1.jar:/Users/lgm/.m2/repository/asm/asm-util/3.1/asm-util-3.1.jar:/Users/lgm/.m2/repository/org/prolog4j/prolog4j-tuprolog/0.2.1-SNAPSHOT/prolog4j-tuprolog-0.2.1-SNAPSHOT.jar:/Users/lgm/.m2/repository/it/unibo/alice/tuprolog/tuProlog/2.1.1/tuProlog-2.1.1.jar:/Users/lgm/.m2/repository/jlex/JLex-local/local/JLex-local-local.jar:/Users/lgm/.m2/repository/cup/java-cup-11a/local/java-cup-11a-local.jar:/Users/lgm/.m2/repository/cup/java-cup-11a-runtime/local/java-cup-11a-runtime-local.jar:/Users/lgm/.m2/repository/com/rabbitmq/amqp-client/2.6.1/amqp-client-2.6.1.jar:/Users/lgm/.m2/repository/commons-cli/commons-cli/1.1/commons-cli-1.1.jar:/Users/lgm/.m2/repository/commons-io/commons-io/1.2/commons-io-1.2.jar:/Users/lgm/.m2/repository/org/codehaus/jettison/jettison/1.3/jettison-1.3.jar:/Users/lgm/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/lgm/.m2/repository/com/google/code/gson/gson/2.1/gson-2.1.jar:/Users/lgm/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar:/Users/lgm/.m2/repository/com/thoughtworks/xstream/xstream/1.4.4/xstream-1.4.4.jar:/Users/lgm/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar:/Users/lgm/.m2/repository/org/scalaxb/scalaxb/local-update/scalaxb-local-update.jar:/Users/lgm/.m2/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar:/Users/lgm/.m2/repository/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.jar:/Users/lgm/.m2/repository/org/apache/ws/commons/util/ws-commons-util/1.0.2/ws-commons-util-1.0.2.jar:/Users/lgm/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/lgm/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-client/3.1.2/xmlrpc-client-3.1.2.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-common/3.1.2/xmlrpc-common-3.1.2.jar:/Users/lgm/.m2/repository/org/apache/xmlrpc/xmlrpc-server/3.1.2/xmlrpc-server-3.1.2.jar:/Users/lgm/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.2.4/httpcore-nio-4.2.4.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpasyncclient/4.0-beta3/httpasyncclient-4.0-beta3.jar:/Users/lgm/.m2/repository/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar:/Users/lgm/.m2/repository/org/xmldb/xmldb-api/1.0/xmldb-api-1.0.jar:/Users/lgm/.m2/repository/javax/xml/xquery/xqj-api/1.0/xqj-api-1.0.jar:/Users/lgm/.m2/repository/org/basex/basex-api/7.6/basex-api-7.6.jar:/Users/lgm/.m2/repository/org/basex/basex/7.6/basex-7.6.jar:/Users/lgm/.m2/repository/net/xqj/basex-xqj/1.2.3/basex-xqj-1.2.3.jar:/Users/lgm/.m2/repository/com/xqj2/xqj2/0.1.0/xqj2-0.1.0.jar:/Users/lgm/.m2/repository/com/ettrema/milton-api/1.7.2/milton-api-1.7.2.jar:/Users/lgm/.m2/repository/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2.jar:/Users/lgm/.m2/repository/org/slf4j/slf4j-nop/1.5.8/slf4j-nop-1.5.8.jar:/Users/lgm/.m2/repository/com/vividsolutions/jts/1.13/jts-1.13.jar:/Users/lgm/.m2/repository/com/sleepycat/db/local/db-local.jar:/Users/lgm/.m2/repository/org/jivesoft/smack/local/smack-local.jar:/Users/lgm/.m2/repository/org/jivesoft/smackx/local/smackx-local.jar:/Users/lgm/.m2/repository/org/hypergraphdb/hgdbfull/local/hgdbfull-local.jar:/Users/lgm/.m2/repository/net/lag/configgy/local/configgy-local.jar:/Users/lgm/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/lgm/.m2/repository/postgresql/postgresql/9.1-901.jdbc4/postgresql-9.1-901.jdbc4.jar:/Users/lgm/.m2/repository/org/scalesxml/scales-xml_2.10/0.4.5/scales-xml_2.10-0.4.5.jar:/Users/lgm/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/lgm/.m2/repository/org/scalaz/scalaz-core_2.10/6.0.4/scalaz-core_2.10-6.0.4.jar:/Users/lgm/.m2/repository/org/scalesxml/scales-jaxen_2.10/0.4.5/scales-jaxen_2.10-0.4.5.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-agent-monitoring-driver-collectd/0.7.1/sirocco-vmm-agent-monitoring-driver-collectd-0.7.1.jar:/Users/lgm/.m2/repository/org/fusesource/rrd4j/rrd4j/2.0.7/rrd4j-2.0.7.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-agent-core/0.7.1/sirocco-vmm-agent-core-0.7.1.jar:/Users/lgm/.m2/repository/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.jar:/Users/lgm/.m2/repository/org/ow2/sirocco/vmm/sirocco-vmm-api/1.2.1/sirocco-vmm-api-1.2.1.jar -d /Users/lgm/work/src/projex/stellar/mdp4tw/SpecialK/target/classes -explaintypes [INFO] [INFO] last tree to typer: Literal(Constant(())) [INFO] symbol: null [INFO] symbol definition: null [INFO] tpe: Unit [INFO] symbol owners: [INFO] context owners: class StringAMQPPublisher -> package usage [INFO] [INFO] == Enclosing template or block == [INFO] [INFO] Template( // val <local StringAMQPPublisher>: <notype> in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPPublisher [INFO] "java.lang.Object" // parents [INFO] ValDef( [INFO] private [INFO] "_" [INFO] <tpt> [INFO] <empty> [INFO] ) [INFO] // 4 statements [INFO] ValDef( // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher [INFO] private <local> <triedcooking> [INFO] "amqp " [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] <empty> [INFO] ) [INFO] DefDef( // val amqp(): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher [INFO] <method> <stable> <accessor> <triedcooking> [INFO] "amqp" [INFO] [] [INFO] List(Nil) [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] StringAMQPPublisher.this."amqp " // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] ) [INFO] DefDef( // def send(value: String): Unit in class StringAMQPPublisher [INFO] <method> [INFO] "send" [INFO] [] [INFO] // 1 parameter list [INFO] ValDef( // value: String [INFO] <param> <triedcooking> [INFO] "value" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] <tpt> // tree.tpe=Unit [INFO] Apply( // override def !(msg: Object): Unit in trait InternalReplyReactor, tree.tpe=Unit [INFO] StringAMQPPublisher.this.amqp()."$bang" // override def !(msg: Object): Unit in trait InternalReplyReactor, tree.tpe=(msg: Object)Unit [INFO] Apply( // def <init>(message: Object): net.liftweb.amqp.AMQPMessage in class AMQPMessage, tree.tpe=net.liftweb.amqp.AMQPMessage [INFO] new net.liftweb.amqp.AMQPMessage."<init>" // def <init>(message: Object): net.liftweb.amqp.AMQPMessage in class AMQPMessage, tree.tpe=(message: Object)net.liftweb.amqp.AMQPMessage [INFO] "value" // value: String, tree.tpe=String [INFO] ) [INFO] ) [INFO] ) [INFO] DefDef( // def <init>(host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPPublisher in class StringAMQPPublisher [INFO] <method> [INFO] "<init>" [INFO] [] [INFO] // 1 parameter list [INFO] ValDef( // host: String [INFO] <param> <paramaccessor> [INFO] "host" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] ValDef( // port: Int [INFO] <param> <paramaccessor> [INFO] "port" [INFO] <tpt> // tree.tpe=Int [INFO] <empty> [INFO] ) [INFO] ValDef( // exchange: String [INFO] <param> <paramaccessor> [INFO] "exchange" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] ValDef( // routingKey: String [INFO] <param> <paramaccessor> [INFO] "routingKey" [INFO] <tpt> // tree.tpe=String [INFO] <empty> [INFO] ) [INFO] <tpt> // tree.tpe=net.liftweb.amqp.usage.StringAMQPPublisher [INFO] Block( // tree.tpe=Unit [INFO] // 3 statements [INFO] Apply( // def <init>(): Object in class Object, tree.tpe=Object [INFO] StringAMQPPublisher.super."<init>" // def <init>(): Object in class Object, tree.tpe=()Object [INFO] Nil [INFO] ) [INFO] Assign( // tree.tpe=Unit [INFO] StringAMQPPublisher.this."amqp " // private[this] val amqp: net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPPublisher, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] Apply( // def <init>(factory: com.rabbitmq.client.ConnectionFactory,host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPSender, tree.tpe=net.liftweb.amqp.usage.StringAMQPSender [INFO] new net.liftweb.amqp.usage.StringAMQPSender."<init>" // def <init>(factory: com.rabbitmq.client.ConnectionFactory,host: String,port: Int,exchange: String,routingKey: String): net.liftweb.amqp.usage.StringAMQPSender in class StringAMQPSender, tree.tpe=(factory: com.rabbitmq.client.ConnectionFactory, host: String, port: Int, exchange: String, routingKey: String)net.liftweb.amqp.usage.StringAMQPSender [INFO] // 5 arguments [INFO] Apply( // final val guest(): com.rabbitmq.client.ConnectionFactory in object RabbitFactory, tree.tpe=com.rabbitmq.client.ConnectionFactory [INFO] "com"."biosimilarity"."lift"."lib"."amqp"."RabbitFactory"."guest" // final val guest(): com.rabbitmq.client.ConnectionFactory in object RabbitFactory, tree.tpe=()com.rabbitmq.client.ConnectionFactory [INFO] Nil [INFO] ) [INFO] "host" // host: String, tree.tpe=String [INFO] "port" // port: Int, tree.tpe=Int [INFO] "exchange" // exchange: String, tree.tpe=String [INFO] "routingKey" // routingKey: String, tree.tpe=String [INFO] ) [INFO] ) [INFO] Apply( // override def start(): actors.Actor in trait Actor, tree.tpe=actors.Actor [INFO] StringAMQPPublisher.this.amqp()."start" // override def start(): actors.Actor in trait Actor, tree.tpe=()actors.Actor [INFO] Nil [INFO] ) [INFO] () [INFO] ) [INFO] ) [INFO] ) [INFO] [INFO] == Expanded type of tree == [INFO] [INFO] TypeRef(TypeSymbol(final abstract class Unit extends )) [INFO] [ERROR] symbol value errors does not exist in com.biosimilarity.lift.model.store.scribble.Scribble$$anonfun$wrapWithCatch$1.apply [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 58.973s [INFO] Finished at: Mon Aug 19 20:38:11 PDT 2013 [INFO] Final Memory: 21M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.2:compile (default) on project specialK: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException bash-3.2$

Meredith Gregory

unread,
Aug 20, 2013, 4:05:31 PM8/20/13
to scala-user
P.P.S. We rev'ed the compiler to 2.10.2 and still got the same error. It's much worse because the error report describes problems in completely unrelated files that have been compiling for years and ported without complaint to the 2.10 version. However, if we refactor the code as below, pulling the stack trace to string conversion to a separate method then the compiler doesn't crash.

 package com.biosimilarity.lift.model.store.scribble
import scala.util.continuations._ 

trait Scribble[Resource] {
  def stackTraceToString( t : Throwable ) : String = {
    val errors : java.io.StringWriter = new java.io.StringWriter()
    t.printStackTrace( new java.io.PrintWriter( errors ) )
    errors.toString( )
  }
  def wrapWithCatch(
    sk : Option[Resource] => Unit @suspendable
  ) : Option[Resource] => Unit @suspendable = {
    ( optRsrc ) => {
      try {
sk( optRsrc )
      }
      catch {
        case t : Throwable => {
          println( "unhandled exception : \n" + stackTraceToString( t ) )
          throw( t )
        }
      }
    }
  }
}

Jason Zaugg

unread,
Aug 20, 2013, 6:09:16 PM8/20/13
to Meredith Gregory, scala-user
On Tue, Aug 20, 2013 at 10:05 PM, Meredith Gregory <lgreg.m...@gmail.com> wrote:
P.P.S. We rev'ed the compiler to 2.10.2 and still got the same error. It's much worse because the error report describes problems in completely unrelated files that have been compiling for years and ported without complaint to the 2.10 version.

Hi Greg, 

That was the last tree through the typechecker. This crash comes much later, so it is not pertinent information. We've got a fix in the pipeline for the crash diagnostic for 2.11. 
 
However, if we refactor the code as below, pulling the stack trace to string conversion to a separate method then the compiler doesn't crash.

Glad you've found a workaround. 

First of all, a heads up regarding CPS: We don't have resources assigned for maintenance of the CPS compiler plugin. In fact, we're thinking of declaring it deprecated. It has some architectural issues (most notably: intimate relationship with typechecking under the annotation-driven pluggable subtyping logic) that means it has a long tail of hard- or impossible-to-fix bugs and limitations.

Our vision is to provide a more focussed version of CPS as scala-async, which is implemented with def-macros. It provides a DSL for working with Futures (or other Future-like APIs). Admittedly, this is far less general, but that does have the benefit of eliminating the cryptic type errors which folks often to hit with @cps.

But please do report the bug if you can tease it down a standalone test. I can't find an existing ticket that fits this. Its a regression, and while I'm assuming it is related to CPS that might not be the case.

-jason

Ian Clarke

unread,
Aug 20, 2013, 11:07:19 PM8/20/13
to scala...@googlegroups.com, Meredith Gregory
On Tuesday, August 20, 2013 5:09:16 PM UTC-5, Jason Zaugg wrote:
First of all, a heads up regarding CPS: We don't have resources assigned for maintenance of the CPS compiler plugin. In fact, we're thinking of declaring it deprecated. It has some architectural issues (most notably: intimate relationship with typechecking under the annotation-driven pluggable subtyping logic) that means it has a long tail of hard- or impossible-to-fix bugs and limitations.

I would plead that this plugin not be deprecated if at all possible, our project is entirely dependant on it, and I think Greg's is too.  Moreover, there are very few programming languages that support continuations, and even fewer that support portable continuations.  

While portable continuations might seem to be an esoteric feature, in actuality they are extremely relevant to many of the real-world challenges that programmers face today, in particular the problem of building scalable distributed and fault tolerant software.  In my humble opinion, portable continuations are our best chance of achieving the holy grail of allowing software to be written that can be scaled across tens, hundreds, or maybe even thousands of computers - just as easily as writing software to run on a single CPU.  The existence of the continuations plugin was what convinced me to base our project on Scala.

Typically, useful functionality is only deprecated in an API when there is a better alternative.  Deprecating the continuations plugin in favor of an unspecified Futures-based system may seriously screw quite a few people who made quite early bets on Scala.  I hope you take that into consideration in your decision to deprecate it.

Ian.


Jason Zaugg

unread,
Aug 21, 2013, 4:12:57 AM8/21/13
to scala...@googlegroups.com, Meredith Gregory
This thread is continuing over in [scala-internals]. https://groups.google.com/d/msg/scala-internals/9Ts3GLsXuOg/2n5z5UK9TOAJ

-jason 
Reply all
Reply to author
Forward
0 new messages