如何解决运行 Java 示例代码时出现 java.lang.NullPointerException
我想运行位于 here 的 Java 代码示例。我已经设置了一个包含代码的注释,默认解释器设置为 Java。不幸的是,每次我尝试运行程序时都会遇到 NullPointerException,请参见下文:
java.lang.NullPointerException
at org.apache.zeppelin.interpreter.InterpreterOutput.write(InterpreterOutput.java:321)
at org.apache.zeppelin.interpreter.InterpreterResult.add(InterpreterResult.java:90)
at org.apache.zeppelin.interpreter.InterpreterResult.<init>(InterpreterResult.java:75)
at org.apache.zeppelin.java.JavaInterpreter.interpret(JavaInterpreter.java:69)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:110)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:852)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:744)
at org.apache.zeppelin.scheduler.Job.run(Job.java:172)
at org.apache.zeppelin.scheduler.AbstractScheduler.runJob(AbstractScheduler.java:132)
at org.apache.zeppelin.scheduler.FIFOScheduler.lambda$runJobInScheduler$0(FIFOScheduler.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。