Describe the bug
When stopping/deleting a pipeline, following error is thrown.
2024-04-19T06:56:51.408Z ERROR 1 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path ] threw exception [Request processing failed: java.lang.NullPointerException: Cannot invoke "be.vlaanderen.informatievlaanderen.ldes.ldio.LdioLdesClientConnectorApi.shutdown()" because the return value of "be.vlaanderen.informatievlaanderen.ldes.ldio.collection.LdioLdesClientConnectorApiCollection.remove(String)" is null] with root cause
java.lang.NullPointerException: Cannot invoke "be.vlaanderen.informatievlaanderen.ldes.ldio.LdioLdesClientConnectorApi.shutdown()" because the return value of "be.vlaanderen.informatievlaanderen.ldes.ldio.collection.LdioLdesClientConnectorApiCollection.remove(String)" is null
at be.vlaanderen.informatievlaanderen.ldes.ldio.LdioLdesClientConnectorApiController.deletePipeline(LdioLdesClientConnectorApiController.java:45) ~[ldio-ldes-client-connector-jar-with-dependencies.jar:na]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na]
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:348) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11]
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:233) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11]
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:165) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:437) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11]
at be.vlaanderen.informatievlaanderen.ldes.ldio.services.PipelineStatusService.stopPipeline(PipelineStatusService.java:88) ~[!/:na]
at be.vlaanderen.informatievlaanderen.ldes.ldio.services.PipelineService.requestDeletion(PipelineService.java:57) ~[!/:na]
at be.vlaanderen.informatievlaanderen.ldes.ldio.management.PipelineController.deletePipeline(PipelineController.java:64) ~[!/:na]
Describe the bug When stopping/deleting a pipeline, following error is thrown.
2024-04-19T06:56:51.408Z ERROR 1 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path ] threw exception [Request processing failed: java.lang.NullPointerException: Cannot invoke "be.vlaanderen.informatievlaanderen.ldes.ldio.LdioLdesClientConnectorApi.shutdown()" because the return value of "be.vlaanderen.informatievlaanderen.ldes.ldio.collection.LdioLdesClientConnectorApiCollection.remove(String)" is null] with root cause java.lang.NullPointerException: Cannot invoke "be.vlaanderen.informatievlaanderen.ldes.ldio.LdioLdesClientConnectorApi.shutdown()" because the return value of "be.vlaanderen.informatievlaanderen.ldes.ldio.collection.LdioLdesClientConnectorApiCollection.remove(String)" is null at be.vlaanderen.informatievlaanderen.ldes.ldio.LdioLdesClientConnectorApiController.deletePipeline(LdioLdesClientConnectorApiController.java:45) ~[ldio-ldes-client-connector-jar-with-dependencies.jar:na] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na] at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:348) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11] at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:233) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11] at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:165) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:437) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383) ~[ldio-amqp-jar-with-dependencies.jar:6.0.11] at be.vlaanderen.informatievlaanderen.ldes.ldio.services.PipelineStatusService.stopPipeline(PipelineStatusService.java:88) ~[!/:na] at be.vlaanderen.informatievlaanderen.ldes.ldio.services.PipelineService.requestDeletion(PipelineService.java:57) ~[!/:na] at be.vlaanderen.informatievlaanderen.ldes.ldio.management.PipelineController.deletePipeline(PipelineController.java:64) ~[!/:na]