Shefali Singh created ZEPPELIN-6012:
---------------------------------------
Summary: Rest API call to /api/notebook/job/{jobId} throws
NullPointerException
Key: ZEPPELIN-6012
URL: https://issues.apache.org/jira/browse/ZEPPELIN-6012
Project: Zeppelin
Issue Type: Bug
Affects Versions: 0.11.0
Reporter: Shefali Singh
Attachments: image-2024-04-12-15-18-31-283.png
A post request to /api/notebook/job/\{jobId} throws NPE when anything in
request body is passed, only works when body is empty.
Request body: {}
Response:
java.lang.NullPointerException
at java.util.HashMap.putMapEntries(HashMap.java:502)
at java.util.HashMap.putAll(HashMap.java:786)
at
org.apache.zeppelin.rest.NotebookRestApi.runNoteJobs(NotebookRestApi.java:829)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)
at
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)
at
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)
at
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)
at
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)
at
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475)
at
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:397)
at
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)
at
org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255)
Does passing a request body to this endpoint not supported in 0.11.0? Doesn't
throw any error in 0.10.1
--
This message was sent by Atlassian Jira
(v8.20.10#820010)