You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by Andrea Santurbano <sa...@gmail.com> on 2021/02/26 09:40:29 UTC
Java Interpreter NullPointerException
Hi guys,
we're using the latest Docker image and if we use write this simple
paragraph:
```java
%java
import java.lang.System;
public class Test {
public static void main (String[] args) {
System.out.println("Test");
}
}
```
We get the following error:
```
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)
```
The is a new Docker image pushed 16 days ago that overwrite version 0.9.0
so there is no way to rollback to preview1.
Is there a quick way to fix this?
Re: Java Interpreter NullPointerException
Posted by Jeff Zhang <zj...@gmail.com>.
Here's the commit id in branch-0.9
a74365c0813b451db1bc78def7d1ad1279429224
Andrea Santurbano <sa...@gmail.com> 于2021年3月1日周一 下午6:47写道:
> Thank you Jeff can you point me to commit ID of preview1, the tag v0.9.0
> seems being updated so I don't know how to recover the correct version.
> Thank you
> Andrea
>
> Il giorno ven 26 feb 2021 alle ore 10:51 Jeff Zhang <zj...@gmail.com> ha
> scritto:
>
> > Please file a jira ticket, you can just build image by yourself if you
> want
> > to use preview1
> >
> > Andrea Santurbano <sa...@gmail.com> 于2021年2月26日周五 下午5:40写道:
> >
> > > Hi guys,
> > > we're using the latest Docker image and if we use write this simple
> > > paragraph:
> > >
> > > ```java
> > > %java
> > > import java.lang.System;
> > > public class Test {
> > > public static void main (String[] args) {
> > > System.out.println("Test");
> > > }
> > > }
> > > ```
> > >
> > > We get the following error:
> > >
> > > ```
> > > 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)
> > > ```
> > >
> > > The is a new Docker image pushed 16 days ago that overwrite version
> 0.9.0
> > > so there is no way to rollback to preview1.
> > > Is there a quick way to fix this?
> > >
> >
> >
> > --
> > Best Regards
> >
> > Jeff Zhang
> >
>
--
Best Regards
Jeff Zhang
Re: Java Interpreter NullPointerException
Posted by Andrea Santurbano <sa...@gmail.com>.
Thank you Jeff can you point me to commit ID of preview1, the tag v0.9.0
seems being updated so I don't know how to recover the correct version.
Thank you
Andrea
Il giorno ven 26 feb 2021 alle ore 10:51 Jeff Zhang <zj...@gmail.com> ha
scritto:
> Please file a jira ticket, you can just build image by yourself if you want
> to use preview1
>
> Andrea Santurbano <sa...@gmail.com> 于2021年2月26日周五 下午5:40写道:
>
> > Hi guys,
> > we're using the latest Docker image and if we use write this simple
> > paragraph:
> >
> > ```java
> > %java
> > import java.lang.System;
> > public class Test {
> > public static void main (String[] args) {
> > System.out.println("Test");
> > }
> > }
> > ```
> >
> > We get the following error:
> >
> > ```
> > 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)
> > ```
> >
> > The is a new Docker image pushed 16 days ago that overwrite version 0.9.0
> > so there is no way to rollback to preview1.
> > Is there a quick way to fix this?
> >
>
>
> --
> Best Regards
>
> Jeff Zhang
>
Re: Java Interpreter NullPointerException
Posted by Jeff Zhang <zj...@gmail.com>.
Please file a jira ticket, you can just build image by yourself if you want
to use preview1
Andrea Santurbano <sa...@gmail.com> 于2021年2月26日周五 下午5:40写道:
> Hi guys,
> we're using the latest Docker image and if we use write this simple
> paragraph:
>
> ```java
> %java
> import java.lang.System;
> public class Test {
> public static void main (String[] args) {
> System.out.println("Test");
> }
> }
> ```
>
> We get the following error:
>
> ```
> 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)
> ```
>
> The is a new Docker image pushed 16 days ago that overwrite version 0.9.0
> so there is no way to rollback to preview1.
> Is there a quick way to fix this?
>
--
Best Regards
Jeff Zhang