[jboss-jira] [JBoss JIRA] (WFLY-9657) NullPointerException when trying to get all job executions

Cheng Fang (JIRA) issues at jboss.org
Tue Jan 9 11:22:01 EST 2018


    [ https://issues.jboss.org/browse/WFLY-9657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13512008#comment-13512008 ] 

Cheng Fang commented on WFLY-9657:
----------------------------------

For the above page, jberet-rest-api calls {{JobOperator.getJobExecutions(JobInstance = null)}}, to get all job executions known to the batch runtime and deployment.

In {{JobOperatorService.getJobExecutions(JobInstance)}} method, we'll need to check for null job instance.

> NullPointerException when trying to get all job executions
> ----------------------------------------------------------
>
>                 Key: WFLY-9657
>                 URL: https://issues.jboss.org/browse/WFLY-9657
>             Project: WildFly
>          Issue Type: Bug
>          Components: Batch
>    Affects Versions: 11.0.0.Final
>            Reporter: Cheng Fang
>            Assignee: Cheng Fang
>
> In jberet-ui, the job executions page by default displays all known job executions in the batch runtime. When running in WildFly 11, clicking the jberet-ui job executions page shows no job execution, and in server.log, there is the NPE:
> {code:text}
> Caused by: java.lang.NullPointerException
> 	at org.wildfly.extension.batch.jberet.deployment.JobOperatorService.getJobExecutions(JobOperatorService.java:295)
> 	at org.jberet.operations.DelegatingJobOperator.getJobExecutions(DelegatingJobOperator.java:92)
> 	at org.jberet.rest.service.JobService.getJobExecutions(JobService.java:113)
> 	at org.jberet.rest.resource.JobExecutionResource.getJobExecutions(JobExecutionResource.java:64)
> 	at org.jberet.rest.resource.JobExecutionResource$Proxy$_$$_WeldClientProxy.getJobExecutions(Unknown Source)
> 	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.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
> 	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)
> 	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)
> 	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:236)
> 	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:406)
> 	... 43 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list