[
https://issues.apache.org/jira/browse/ZEPPELIN-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14392677#comment-14392677
]
ASF GitHub Bot commented on ZEPPELIN-19:
----------------------------------------
Github user Leemoonsoo commented on a diff in the pull request:
https://github.com/apache/incubator-zeppelin/pull/22#discussion_r27655027
--- Diff:
zeppelin-zengine/src/main/java/com/nflabs/zeppelin/notebook/Note.java ---
@@ -231,6 +232,9 @@ public void run(String paragraphId) {
p.setNoteReplLoader(replLoader);
p.setListener(jobListenerFactory.getParagraphJobListener(this));
Interpreter intp = replLoader.get(p.getRequiredReplName());
+ if (intp == null) {
--- End diff --
When user try to use non-exists interpreter, for example run `%nonexist
statment`, it raise null pointer exception at previous line and this
conditional block won't be executed.
In this case, there's an exception in log file
```
ERROR [2015-04-02 22:01:36,584] ({WebSocketWorker-8}
NotebookServer.java[runParagraph]:431) - Exception from run
java.lang.NullPointerException
at
com.nflabs.zeppelin.notebook.NoteInterpreterLoader.get(NoteInterpreterLoader.java:70)
at com.nflabs.zeppelin.notebook.Note.run(Note.java:234)
at
com.nflabs.zeppelin.socket.NotebookServer.runParagraph(NotebookServer.java:428)
at
com.nflabs.zeppelin.socket.NotebookServer.onMessage(NotebookServer.java:96)
at
org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:469)
at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:368)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:157)
at
org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:657)
```
but gui does not display it.

Could you handle this case, too?
> Failures from disabled interpreters not reported
> ------------------------------------------------
>
> Key: ZEPPELIN-19
> URL: https://issues.apache.org/jira/browse/ZEPPELIN-19
> Project: Zeppelin
> Issue Type: Bug
> Reporter: Ram Venkatesh
>
> On a note, if an interpreter is disabled for any reason, errors from
> paragraph execution not surfaced to the user. This can also happen on
> interpreter startup failures.
> The logs do have an NPE in them, but it would be good to give the user some
> feedback on the failure.
> Pull request to follow shortly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)