liunaijie commented on issue #8053:
URL: https://github.com/apache/seatunnel/issues/8053#issuecomment-2475815543

   I got similar issue today. 
   My version is 2.3.5
   My error stack is 
   ```
   java.util.concurrent.CompletionException: java.lang.RuntimeException: 
java.util.concurrent.ExecutionException: java.lang.NullPointerException
   
        at 
com.hazelcast.spi.impl.AbstractInvocationFuture.returnOrThrowWithJoinConventions(AbstractInvocationFuture.java:819)
 ~[seatunnel-starter.jar:2.3.5]
   
        at 
com.hazelcast.spi.impl.AbstractInvocationFuture.resolveAndThrowWithJoinConvention(AbstractInvocationFuture.java:835)
 ~[seatunnel-starter.jar:2.3.5]
   
        at 
com.hazelcast.spi.impl.AbstractInvocationFuture.join(AbstractInvocationFuture.java:553)
 ~[seatunnel-starter.jar:2.3.5]
   
        at 
org.apache.seatunnel.engine.server.rest.RestHttpGetCommandProcessor.convertToJson(RestHttpGetCommandProcessor.java:392)
 ~[seatunnel-starter.jar:2.3.5]
   
        at 
org.apache.seatunnel.engine.server.rest.RestHttpGetCommandProcessor.lambda$handleRunningJobsInfo$2(RestHttpGetCommandProcessor.java:173)
 ~[seatunnel-starter.jar:2.3.5]
   
        at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
~[?:1.8.0_342]
   ```
   
   It's called from restapi,  `/hazelcast/rest/maps/running-jobs`.
   
   And it looks NPE is generate from here 
   
https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/master/JobHistoryService.java#L186
   
   If the job is not running and also can't find in history service. it will 
return `null`
   so when call `jobMetrics..getMetrics()` it will be `null..getMetrics()` then 
get NPE.
   
   
   
   
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to