When I run scala-notebook and try to write some code like print("hello world")
I get following error:
2013-11-06 00:55:19,247 WARN pool-7-thread-1 - Unable to read initscript from ./init.scala
java.io.FileNotFoundException: File './init.scala' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:137)
at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1102)
at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1120)
at com.bwater.notebook.server.ScriptFromFile$$anonfun$script$4.apply(ScalaNotebookConfig.scala:114)
at com.bwater.notebook.server.ScriptFromFile$$anonfun$script$4.apply(ScalaNotebookConfig.scala:114)
at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:110)
at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:110)
at scala.util.control.Exception$Catch.apply(Exception.scala:88)
at scala.util.control.Exception$Catch.either(Exception.scala:110)
at com.bwater.notebook.server.ScriptFromFile.script(ScalaNotebookConfig.scala:114)
at com.bwater.notebook.server.ScalaNotebookConfig$$anonfun$kernelInitScripts$1.apply(ScalaNotebookConfig.scala:26)
at com.bwater.notebook.server.ScalaNotebookConfig$$anonfun$kernelInitScripts$1.apply(ScalaNotebookConfig.scala:26)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
at scala.collection.immutable.List.map(List.scala:76)
at com.bwater.notebook.server.ScalaNotebookConfig.kernelInitScripts(ScalaNotebookConfig.scala:26)
at com.bwater.notebook.server.Dispatcher$WebServer$.startKernel(Dispatcher.scala:206)
at com.bwater.notebook.server.Dispatcher$WebServer$$anonfun$12.apply(Dispatcher.scala:218)
at com.bwater.notebook.server.Dispatcher$WebServer$$anonfun$12.apply(Dispatcher.scala:215)
at com.bwater.notebook.server.ClientAuth$$anonfun$withCSRFKeyAsync$1.apply(Dispatcher.scala:310)
at com.bwater.notebook.server.ClientAuth$$anonfun$withCSRFKeyAsync$1.apply(Dispatcher.scala:307)
at scala.PartialFunction$$anon$3.apply(PartialFunction.scala:97)
at scala.PartialFunction$$anon$3.apply(PartialFunction.scala:96)
at unfiltered.response.Pass$PartialAttempt.attemptWithPass(pass.scala:67)
at unfiltered.response.Pass$PassingAttempt$class.attempt(pass.scala:60)
at unfiltered.response.Pass$PartialAttempt.attempt(pass.scala:62)
at unfiltered.response.Pass$OnPassAttempt.apply(pass.scala:83)
at unfiltered.netty.async.Plan$class.messageReceived(plans.scala:33)
at unfiltered.netty.async.Planify.messageReceived(plans.scala:43)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:563)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at unfiltered.netty.cycle.Plan$$anonfun$unfiltered$netty$cycle$Plan$$guardedIntent$1.apply(plans.scala:31)
at unfiltered.netty.cycle.Plan$$anonfun$unfiltered$netty$cycle$Plan$$guardedIntent$1.apply(plans.scala:30)
at unfiltered.response.Pass$$anonfun$fold$1$$anonfun$apply$2.apply(pass.scala:46)
at scala.Option.getOrElse(Option.scala:108)
at unfiltered.response.Pass$$anonfun$fold$1.apply(pass.scala:45)
at unfiltered.response.Pass$FunctionAttempt.apply(pass.scala:72)
at unfiltered.netty.cycle.Plan$$anonfun$messageReceived$1$$anonfun$apply$mcV$sp$2$$anonfun$apply$mcV$sp$3.apply$mcV$sp(plans.scala:47)
at unfiltered.netty.cycle.Plan$class.catching(plans.scala:24)
at unfiltered.netty.cycle.Planify.catching(plans.scala:63)
at unfiltered.netty.cycle.Plan$$anonfun$messageReceived$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(plans.scala:46)
at unfiltered.netty.cycle.DeferralExecutor$$anon$1.run(deferrals.scala:55)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Uncaught error from thread [NotebookServer-akka.actor.default-dispatcher-4] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[NotebookServer]
java.lang.UnsupportedClassVersionError: com/bwater/notebook/kernel/pfork/ChildProcessMain : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at com.bwater.notebook.kernel.pfork.BetterFork.execute(BetterFork.scala:88)
at com.bwater.notebook.kernel.remote.RemoteActorSystem$.spawn(RemoteActorSystem.scala:103)
at com.bwater.notebook.Kernel$ExecutionManager.preStart(Kernel.scala:36)
at akka.actor.ActorCell.create$1(ActorCell.scala:508)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:600)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:209)
at akka.dispatch.Mailbox.run(Mailbox.scala:178)
at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:516)
at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259)
at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479)
at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
2013-11-06 00:55:19,296 ERROR NotebookServer-akka.actor.default-dispatcher-6 - Uncaught error from thread [NotebookServer-akka.actor.default-dispatcher-4] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled
java.lang.UnsupportedClassVersionError: com/bwater/notebook/kernel/pfork/ChildProcessMain : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at com.bwater.notebook.kernel.pfork.BetterFork.execute(BetterFork.scala:88)
at com.bwater.notebook.kernel.remote.RemoteActorSystem$.spawn(RemoteActorSystem.scala:103)
at com.bwater.notebook.Kernel$ExecutionManager.preStart(Kernel.scala:36)
at akka.actor.ActorCell.create$1(ActorCell.scala:508)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:600)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:209)
at akka.dispatch.Mailbox.run(Mailbox.scala:178)
at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:516)
at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259)
at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479)
at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
2013-11-06 00:55:19,345 INFO New I/O worker #24 - Opening Socket iopub for 175c9dfa-50a8-4b74-938a-9410c52f7ef2 to WebSocket([id: 0x1c18af96, /127.0.0.1:58602 => /127.0.0.1:8899])
2013-11-06 00:55:19,345 INFO New I/O worker #23 - Opening Socket shell for 175c9dfa-50a8-4b74-938a-9410c52f7ef2 to WebSocket([id: 0x56357775, /127.0.0.1:58601 => /127.0.0.1:8899])
When I run scala-notebook and try to write some code like print("hello world") I get following error:
2013-11-06 00:55:19,247 WARN pool-7-thread-1 - Unable to read initscript from ./init.scala java.io.FileNotFoundException: File './init.scala' does not exist at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:137) at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1102) at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1120) at com.bwater.notebook.server.ScriptFromFile$$anonfun$script$4.apply(ScalaNotebookConfig.scala:114) at com.bwater.notebook.server.ScriptFromFile$$anonfun$script$4.apply(ScalaNotebookConfig.scala:114) at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:110) at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:110) at scala.util.control.Exception$Catch.apply(Exception.scala:88) at scala.util.control.Exception$Catch.either(Exception.scala:110) at com.bwater.notebook.server.ScriptFromFile.script(ScalaNotebookConfig.scala:114) at com.bwater.notebook.server.ScalaNotebookConfig$$anonfun$kernelInitScripts$1.apply(ScalaNotebookConfig.scala:26) at com.bwater.notebook.server.ScalaNotebookConfig$$anonfun$kernelInitScripts$1.apply(ScalaNotebookConfig.scala:26) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) at scala.collection.immutable.List.foreach(List.scala:76) at scala.collection.TraversableLike$class.map(TraversableLike.scala:233) at scala.collection.immutable.List.map(List.scala:76) at com.bwater.notebook.server.ScalaNotebookConfig.kernelInitScripts(ScalaNotebookConfig.scala:26) at com.bwater.notebook.server.Dispatcher$WebServer$.startKernel(Dispatcher.scala:206) at com.bwater.notebook.server.Dispatcher$WebServer$$anonfun$12.apply(Dispatcher.scala:218) at com.bwater.notebook.server.Dispatcher$WebServer$$anonfun$12.apply(Dispatcher.scala:215) at com.bwater.notebook.server.ClientAuth$$anonfun$withCSRFKeyAsync$1.apply(Dispatcher.scala:310) at com.bwater.notebook.server.ClientAuth$$anonfun$withCSRFKeyAsync$1.apply(Dispatcher.scala:307) at scala.PartialFunction$$anon$3.apply(PartialFunction.scala:97) at scala.PartialFunction$$anon$3.apply(PartialFunction.scala:96) at unfiltered.response.Pass$PartialAttempt.attemptWithPass(pass.scala:67) at unfiltered.response.Pass$PassingAttempt$class.attempt(pass.scala:60) at unfiltered.response.Pass$PartialAttempt.attempt(pass.scala:62) at unfiltered.response.Pass$OnPassAttempt.apply(pass.scala:83) at unfiltered.netty.async.Plan$class.messageReceived(plans.scala:33) at unfiltered.netty.async.Planify.messageReceived(plans.scala:43) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:563) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at unfiltered.netty.cycle.Plan$$anonfun$unfiltered$netty$cycle$Plan$$guardedIntent$1.apply(plans.scala:31) at unfiltered.netty.cycle.Plan$$anonfun$unfiltered$netty$cycle$Plan$$guardedIntent$1.apply(plans.scala:30) at unfiltered.response.Pass$$anonfun$fold$1$$anonfun$apply$2.apply(pass.scala:46) at scala.Option.getOrElse(Option.scala:108) at unfiltered.response.Pass$$anonfun$fold$1.apply(pass.scala:45) at unfiltered.response.Pass$FunctionAttempt.apply(pass.scala:72) at unfiltered.netty.cycle.Plan$$anonfun$messageReceived$1$$anonfun$apply$mcV$sp$2$$anonfun$apply$mcV$sp$3.apply$mcV$sp(plans.scala:47) at unfiltered.netty.cycle.Plan$class.catching(plans.scala:24) at unfiltered.netty.cycle.Planify.catching(plans.scala:63) at unfiltered.netty.cycle.Plan$$anonfun$messageReceived$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(plans.scala:46) at unfiltered.netty.cycle.DeferralExecutor$$anon$1.run(deferrals.scala:55) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Uncaught error from thread [NotebookServer-akka.actor.default-dispatcher-4] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[NotebookServer] java.lang.UnsupportedClassVersionError: com/bwater/notebook/kernel/pfork/ChildProcessMain : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at com.bwater.notebook.kernel.pfork.BetterFork.execute(BetterFork.scala:88) at com.bwater.notebook.kernel.remote.RemoteActorSystem$.spawn(RemoteActorSystem.scala:103) at com.bwater.notebook.Kernel$ExecutionManager.preStart(Kernel.scala:36) at akka.actor.ActorCell.create$1(ActorCell.scala:508) at akka.actor.ActorCell.systemInvoke(ActorCell.scala:600) at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:209) at akka.dispatch.Mailbox.run(Mailbox.scala:178) at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:516) at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259) at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975) at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) 2013-11-06 00:55:19,296 ERROR NotebookServer-akka.actor.default-dispatcher-6 - Uncaught error from thread [NotebookServer-akka.actor.default-dispatcher-4] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled java.lang.UnsupportedClassVersionError: com/bwater/notebook/kernel/pfork/ChildProcessMain : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at com.bwater.notebook.kernel.pfork.BetterFork.execute(BetterFork.scala:88) at com.bwater.notebook.kernel.remote.RemoteActorSystem$.spawn(RemoteActorSystem.scala:103) at com.bwater.notebook.Kernel$ExecutionManager.preStart(Kernel.scala:36) at akka.actor.ActorCell.create$1(ActorCell.scala:508) at akka.actor.ActorCell.systemInvoke(ActorCell.scala:600) at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:209) at akka.dispatch.Mailbox.run(Mailbox.scala:178) at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:516) at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259) at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975) at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) 2013-11-06 00:55:19,345 INFO New I/O worker #24 - Opening Socket iopub for 175c9dfa-50a8-4b74-938a-9410c52f7ef2 to WebSocket([id: 0x1c18af96, /127.0.0.1:58602 => /127.0.0.1:8899]) 2013-11-06 00:55:19,345 INFO New I/O worker #23 - Opening Socket shell for 175c9dfa-50a8-4b74-938a-9410c52f7ef2 to WebSocket([id: 0x56357775, /127.0.0.1:58601 => /127.0.0.1:8899])