ashish32678 opened a new issue, #2106:
URL: https://github.com/apache/incubator-kie-kogito-examples/issues/2106

   ### Describe the bug
   
   **Steps to reproduce**
   1. Set a non-default root path with quarkus.http.root-path=/lifewf
   2. Trigger an instance for <PROCESS_ID>
   3. Execute the request to get the SVG of the Process Instance (replace 
<PROCESS_INSTANCE_ID> with the id returned from the previous request in step 2):
   curl -X 'GET' \
     
'http://localhost:8080/lifewf/svg/processes/NewBusinessProcess/instances/13fd1e60-5a2e-45ea-89e8-3e1463380065'
 \
     -H 'accept: */*'
   
   
   
   Environment
   
   ### Expected behavior
   
   SVG of <PROCESS_INSTANCE_ID>
   
   ### Actual behavior
   
   {"message":"Cannot invoke \"java.util.List.stream()\" because \"nodes\" is 
null"}
   
   Error on Console - 
   2025-05-22 14:54:57,145 in-5cd01078sh WARN  
[org.jboss.resteasy.client.jaxrs.i18n:77] (Cleaner-0) RESTEASY004687: Closing a 
class 
org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine$CleanupAction
 instance for you. Please close clients yourself.
   2025-05-22 14:54:57,268 in-5cd01078sh INFO  
[org.kie.kogito.jobs.service.job.DelegateJob:79] (vert.x-eventloop-thread-9) 
Job execution response processing has finished: 
JobExecutionResponse[message='Embedded job executed', code='200', 
timestamp=2025-05-22T14:54:57.215415+05:30[Asia/Calcutta], 
jobId='19bfeaf9-5d23-4a37-924a-14096eb305d2']
   2025-05-22 14:55:16,523 in-5cd01078sh ERROR 
[org.kie.kogito.jobs.service.resource.error.DefaultExceptionMapper:60] 
(executor-thread-2) Handling HTTP Error: java.lang.NullPointerException: Cannot 
invoke "java.util.List.stream()" because "nodes" is null
           at 
org.kie.kogito.svg.AbstractProcessSvgService.getProcessInstanceSvg(AbstractProcessSvgService.java:121)
           at 
org.kie.kogito.svg.service.QuarkusProcessSvgService_ClientProxy.getProcessInstanceSvg(Unknown
 Source)
           at 
org.kie.kogito.svg.rest.ProcessSvgResource.getExecutionPathByProcessInstanceId(ProcessSvgResource.java:66)
           at 
org.kie.kogito.svg.rest.ProcessSvgResource_ClientProxy.getExecutionPathByProcessInstanceId(Unknown
 Source)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:568)
           at 
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:154)
           at 
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:118)
           at 
org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:560)
           at 
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:452)
           at 
org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:413)
           at 
org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:321)
           at 
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:415)
           at 
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:378)
           at 
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:356)
           at 
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:70)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:429)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:240)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:154)
           at 
org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:321)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:157)
           at 
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:229)
           at 
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:222)
           at 
io.quarkus.resteasy.runtime.ResteasyFilter$ResteasyResponseWrapper.service(ResteasyFilter.java:70)
           at 
io.quarkus.resteasy.runtime.ResteasyFilter$ResteasyResponseWrapper.sendError(ResteasyFilter.java:76)
           at 
io.undertow.servlet.handlers.DefaultServlet.doGet(DefaultServlet.java:172)
           at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:527)
           at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
           at 
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
           at 
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
   
   ### How to Reproduce?
   
   _No response_
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   _No response_
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using 
Kogito via Quarkus platform BOM)
   
   _No response_
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   _No response_
   
   ### Additional information
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to