You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "Maciej Bryński (JIRA)" <ji...@apache.org> on 2016/08/24 10:19:21 UTC

[jira] [Created] (TOREE-334) java.util.NoSuchElementException on empty magic

Maciej Bryński created TOREE-334:
------------------------------------

             Summary: java.util.NoSuchElementException on empty magic
                 Key: TOREE-334
                 URL: https://issues.apache.org/jira/browse/TOREE-334
             Project: TOREE
          Issue Type: Bug
            Reporter: Maciej Bryński
            Priority: Critical


Empty magic kills kernel. Tested on master
{code}
%
{code}
gives
{code}
java.util.NoSuchElementException: None.get
        at scala.None$.get(Option.scala:347)
        at scala.None$.get(Option.scala:345)
        at org.apache.toree.kernel.protocol.v5.magic.MagicParser$$anonfun$parseOutInvalidMagics$2.apply(MagicParser.scala:93)
        at org.apache.toree.kernel.protocol.v5.magic.MagicParser$$anonfun$parseOutInvalidMagics$2.apply(MagicParser.scala:92)
        at scala.collection.immutable.List.map(List.scala:273)
        at org.apache.toree.kernel.protocol.v5.magic.MagicParser.parseOutInvalidMagics(MagicParser.scala:92)
        at org.apache.toree.kernel.protocol.v5.magic.MagicParser.parseLines(MagicParser.scala:153)
        at org.apache.toree.kernel.protocol.v5.magic.MagicParser.parse(MagicParser.scala:174)
        at org.apache.toree.kernel.protocol.v5.relay.ExecuteRequestRelay$$anonfun$receive$1.applyOrElse(ExecuteRequestRelay.scala:109)
        at akka.actor.Actor$class.aroundReceive(Actor.scala:484)
        at org.apache.toree.kernel.protocol.v5.relay.ExecuteRequestRelay.aroundReceive(ExecuteRequestRelay.scala:36)
        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
        at akka.actor.ActorCell.invoke(ActorCell.scala:495)
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
        at akka.dispatch.Mailbox.run(Mailbox.scala:224)
        at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)