You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "Luciano Resende (Jira)" <ji...@apache.org> on 2021/05/31 22:14:00 UTC

[jira] [Updated] (TOREE-461) Compile Time error for scala.Tuple3

     [ https://issues.apache.org/jira/browse/TOREE-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende updated TOREE-461:
----------------------------------
    Attachment: toree-461.png

> Compile Time error for scala.Tuple3
> -----------------------------------
>
>                 Key: TOREE-461
>                 URL: https://issues.apache.org/jira/browse/TOREE-461
>             Project: TOREE
>          Issue Type: Bug
>          Components: Kernel
>    Affects Versions: 0.2.0
>            Reporter: Randy Gelhausen
>            Priority: Major
>             Fix For: 0.5.0
>
>         Attachments: toree-461.png
>
>
> Using Toree 0.2 RC2, I am unable to execute the following Jupyter cell:
> ```
> def time[A](f: => A) = {
>   val s = System.nanoTime
>   val ret = f
>   println("time: "+(System.nanoTime-s)/1e6+"ms")
>   ret
> }
> ```
> [I 21:22:28.027 NotebookApp] Saving file at /Scala.ipynb
> 17/12/14 21:22:59 ERROR OneForOneStrategy: compile-time error
> javax.script.ScriptException: compile-time error
> 	at scala.tools.nsc.interpreter.IMain.compiled(IMain.scala:602)
> 	at scala.tools.nsc.interpreter.IMain.eval(IMain.scala:1074)
> 	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
> 	at org.apache.toree.kernel.interpreter.scala.ScalaInterpreterSpecific$class.read(ScalaInterpreterSpecific.scala:250)
> 	at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter.read(ScalaInterpreter.scala:43)
> 	at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$prepareResult$1.apply(ScalaInterpreter.scala:206)
> 	at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$prepareResult$1.apply(ScalaInterpreter.scala:205)
> 	at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
> 	at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
> 	at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter.prepareResult(ScalaInterpreter.scala:205)
> 	at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$interpretMapToResultAndOutput$1.apply(ScalaInterpreter.scala:285)
> 	at org.apache.toree.kernel.interpreter.scala.ScalaInterpreter$$anonfun$interpretMapToResultAndOutput$1.apply(ScalaInterpreter.scala:280)
> 	at scala.util.Success$$anonfun$map$1.apply(Try.scala:237)
> 	at scala.util.Try$.apply(Try.scala:192)
> 	at scala.util.Success.map(Try.scala:237)
> 	at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)
> 	at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)
> 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
> 	at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
> 	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
> 	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:1253)
> 	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1346)
> 	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
> 	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
> [I 21:23:34.640 NotebookApp] Starting buffering for 31b4d0ec-640b-4200-a75e-cc446536f939:CD995E798E5043EE89DE08C79EF9D270
> 17/12/14 21:23:35 WARN KernelOutputStream: Suppressing empty output: ''
> 17/12/14 21:23:35 ERROR InterpreterActor: Could not execute code def time[A](f: => A) = {
>   val s = System.nanoTime
>   val ret = f
>   println("time: "+(System.nanoTime-s)/1e6+"ms")
>   ret
> } because of exception: Ask timed out on [Actor[akka://spark-kernel-actor-system/user/interpreter/execute_request_task#530568081]] after [21474835000 ms]. Sender[Actor[akka://spark-kernel-actor-system/user/interpreter#-1495230403]] sent message of type "scala.Tuple3".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)