Fraunhofer-AISEC / ids-clearing-house-service

This is an implementation of the IDS Clearing House
Apache License 2.0
0 stars 11 forks source link

Error connecting the CH with a local DAPS (Error whilst retrieving DAT) #25

Closed AnaCarolinaChaves closed 2 years ago

AnaCarolinaChaves commented 2 years ago

Hello. I'm trying to connect the Clearing House with the DSC and a local DAPS. However, when trying to connect these components, the Trusted Connector container of the CH is unable to retrieve the token. The Logging system is working as intended.

The other components (i.e. DSC and Broker) are able to receive the DAT. Could there be a missing part of the setup that causes that?

I show the logs from the Connector and Trusted-connector container below. The logging system says it was able to retrieve the token.

These are the obtained logs of the DSC:

INFO - Sending request to https://vcese19.inesctec.pt:8443/messages/log/c5d8e6c1-17e0-49c2-b608-47c807dd64f7 ...
2022-06-20T15:26:57,860 [https-jsse-nio-8080-exec-6] WARN - Received response but response-code not in 200-299. [code=(IMSMEW0046), response-code=(500)]
2022-06-20T15:26:57,861 [https-jsse-nio-8080-exec-6] DEBUG - Received invalid ids message. [exception=(Could not parse Multipart! No parts found!)]
de.fraunhofer.ids.messaging.protocol.multipart.parser.MultipartParseException: Could not parse Multipart! No parts found!
        at de.fraunhofer.ids.messaging.protocol.multipart.parser.MultipartParser.stringToMultipart(MultipartParser.java:90) ~[messaging-6.1.0.jar:?]
        at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.checkDatFromResponse(IdsHttpService.java:107) ~[messaging-6.1.0.jar:?]
        at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.sendAndCheckDat(IdsHttpService.java:509) ~[messaging-6.1.0.jar:?]
        at io.dataspaceconnector.service.message.builder.type.base.AbstractMessageService.send(AbstractMessageService.java:126) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.message.builder.type.LogMessageService.sendMessage(LogMessageService.java:91) ~[classes/:7.1.0]
        at io.dataspaceconnector.common.ids.message.ClearingHouseService.logIdsMessage(ClearingHouseService.java:106) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.message.builder.type.ArtifactRequestService.sendMessage(ArtifactRequestService.java:173) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.MultipartArtifactRetriever.retrieve(MultipartArtifactRetriever.java:82) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.resource.type.ArtifactService.downloadAndUpdateData(ArtifactService.java:385) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.resource.type.ArtifactService.getData(ArtifactService.java:356) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.resource.type.ArtifactService.tryToAccessDataByUsingAnyAgreement(ArtifactService.java:288) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.resource.type.ArtifactService.getData(ArtifactService.java:261) ~[classes/:7.1.0]
        at io.dataspaceconnector.controller.resource.type.ArtifactController.getData(ArtifactController.java:189) ~[classes/:7.1.0]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) ~[tomcat-embed-core-9.0.60.jar:4.0.FR]
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[tomcat-embed-core-9.0.60.jar:4.0.FR]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:122) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:116) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:109) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:181) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96) ~[spring-boot-actuator-2.6.6.jar:2.6.6]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at io.opentracing.contrib.web.servlet.filter.TracingFilter.doFilter(TracingFilter.java:189) ~[opentracing-web-servlet-filter-0.4.0.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at java.lang.Thread.run(Unknown Source) ~[?:?]
2022-06-20T15:26:57,861 [https-jsse-nio-8080-exec-6] WARN - Failed to send log message. [exception=(Received invalid ids message.)]
io.dataspaceconnector.common.exception.MessageResponseException: Received invalid ids message.
        at io.dataspaceconnector.service.message.builder.type.base.AbstractMessageService.send(AbstractMessageService.java:138) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.message.builder.type.LogMessageService.sendMessage(LogMessageService.java:91) ~[classes/:7.1.0]
        at io.dataspaceconnector.common.ids.message.ClearingHouseService.logIdsMessage(ClearingHouseService.java:106) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.message.builder.type.ArtifactRequestService.sendMessage(ArtifactRequestService.java:173) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.MultipartArtifactRetriever.retrieve(MultipartArtifactRetriever.java:82) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.resource.type.ArtifactService.downloadAndUpdateData(ArtifactService.java:385) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.resource.type.ArtifactService.getData(ArtifactService.java:356) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.resource.type.ArtifactService.tryToAccessDataByUsingAnyAgreement(ArtifactService.java:288) ~[classes/:7.1.0]
        at io.dataspaceconnector.service.resource.type.ArtifactService.getData(ArtifactService.java:261) ~[classes/:7.1.0]
        at io.dataspaceconnector.controller.resource.type.ArtifactController.getData(ArtifactController.java:189) ~[classes/:7.1.0]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) ~[tomcat-embed-core-9.0.60.jar:4.0.FR]
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.18.jar:5.3.18]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[tomcat-embed-core-9.0.60.jar:4.0.FR]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:122) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:116) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:109) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:181) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183) ~[spring-security-web-5.6.2.jar:5.6.2]
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96) ~[spring-boot-actuator-2.6.6.jar:2.6.6]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.18.jar:5.3.18]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at io.opentracing.contrib.web.servlet.filter.TracingFilter.doFilter(TracingFilter.java:189) ~[opentracing-web-servlet-filter-0.4.0.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
        at java.lang.Thread.run(Unknown Source) ~[?:?]
Caused by: de.fraunhofer.ids.messaging.protocol.multipart.parser.MultipartParseException: Could not parse Multipart! No parts found!
        at de.fraunhofer.ids.messaging.protocol.multipart.parser.MultipartParser.stringToMultipart(MultipartParser.java:90) ~[messaging-6.1.0.jar:?]
        at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.checkDatFromResponse(IdsHttpService.java:107) ~[messaging-6.1.0.jar:?]
        at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.sendAndCheckDat(IdsHttpService.java:509) ~[messaging-6.1.0.jar:?]
        at io.dataspaceconnector.service.message.builder.type.base.AbstractMessageService.send(AbstractMessageService.java:126) ~[classes/:7.1.0]
        ... 104 more
2022-06-20T15:26:57,862 [https-jsse-nio-8080-exec-6] WARN - Failed to log message to clearing house. [exception=(Log message could not be sent.)]

These are the logs from the Trusted Connector

...
2022-06-20 15:23:13.596  INFO 1 --- [           main] de.fhg.aisec.ids.rm.XmlDeployWatcher     : XML file deploy/clearing-house-routes.xml detected, creating XmlApplicationContext...
2022-06-20 15:23:15.418  INFO 1 --- [       Thread-1] .a.c.c.x.AbstractCamelContextFactoryBean : Using custom TypeConverterRegistry: org.apache.camel.impl.converter.DefaultTypeConverter@57c17066
2022-06-20 15:23:15.427  INFO 1 --- [       Thread-1] .a.c.c.x.AbstractCamelContextFactoryBean : Using custom InterceptStrategy with id: idsCamelInterceptor and implementation: de.fhg.aisec.ids.dataflowcontrol.CamelInterceptor@74c23525
2022-06-20 15:23:15.474  INFO 1 --- [       Thread-1] o.a.c.management.JmxManagementStrategy   : JMX is enabled
2022-06-20 15:23:15.718 DEBUG 1 --- [       Thread-1] d.f.a.i.i.i.r.RaProverDriverRegistry     : Register 'Dummy' driver to RA prover registry
2022-06-20 15:23:15.719 DEBUG 1 --- [       Thread-1] d.f.a.i.i.i.r.RaProverDriverRegistry     : Register 'Dummy2' driver to RA prover registry
2022-06-20 15:23:15.720 DEBUG 1 --- [       Thread-1] d.f.a.i.i.i.r.RaVerifierDriverRegistry   : Register 'Dummy' driver to RA verifier registry
2022-06-20 15:23:15.721 DEBUG 1 --- [       Thread-1] d.f.a.i.i.i.r.RaVerifierDriverRegistry   : Register 'Dummy2' driver to RA verifier registry
2022-06-20 15:23:15.825  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.16.0 (camel-2) is starting
2022-06-20 15:23:16.036 DEBUG 1 --- [       Thread-1] d.f.a.i.c.i.server.Idscp2ServerEndpoint  : Starting IDSCP2 server endpoint idscp2server://0.0.0.0:29292?copyHeadersRegex=%28ch-ids-%5Ba-z%5D*%7CContent-Type%29&sslContextParameters=%23ChSslContext&useIdsMessages=true
2022-06-20 15:23:16.045  INFO 1 --- [       Thread-1] de.fhg.aisec.ids.TrustedConnector        : Found DAPS_URL env var, DAPS URL is overridden with http://vcese19.inesctec.pt:4567
2022-06-20 15:23:16.278 DEBUG 1 --- [       Thread-1] d.f.a.i.i.d.d.a.AisecDapsDriver          : AKI: C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC:
2022-06-20 15:23:16.280 DEBUG 1 --- [       Thread-1] d.f.a.i.i.d.d.a.AisecDapsDriver          : SKI: C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC:
2022-06-20 15:23:16.614  INFO 1 --- [       Thread-1] d.f.a.i.i.i.a.i.Idscp2ServerFactory      : Starting new IDSCP2 server
2022-06-20 15:23:16.910  INFO 1 --- [       Thread-1] org.eclipse.jetty.util.log               : Logging initialized @18740ms to org.eclipse.jetty.util.log.Slf4jLog
2022-06-20 15:23:16.925  INFO 1 --- [       Thread-1] o.a.c.support.jsse.SSLContextParameters  : Available providers: SUN version 17.
2022-06-20 15:23:17.099  INFO 1 --- [       Thread-1] o.a.c.c.jetty9.JettyHttpComponent9       : Connector on port: 9999 is using includeCipherSuites: [] excludeCipherSuites: [^.*_(MD5|SHA|SHA1)$, ^TLS_RSA_.*$, ^SSL_.*$, ^.*_NULL_.*$, ^.*_anon_.*$] includeProtocols: [] excludeProtocols: [SSL, SSLv2, SSLv2Hello, SSLv3]
2022-06-20 15:23:17.130  INFO 1 --- [       Thread-1] org.eclipse.jetty.server.Server          : jetty-9.4.45.v20220203; built: 2022-02-03T09:14:34.105Z; git: 4a0c91c0be53805e3fcffdcdcc9587d5301863db; jvm 17.0.2+8-Debian-1deb11u1
2022-06-20 15:23:17.201  INFO 1 --- [       Thread-1] o.e.jetty.server.handler.ContextHandler  : Started o.e.j.s.ServletContextHandler@2ab2b989{/,null,AVAILABLE}
2022-06-20 15:23:17.220  INFO 1 --- [       Thread-1] o.e.jetty.server.AbstractConnector       : Started ServerConnector@60e174d4{ssl, (ssl, http/1.1)}{0.0.0.0:9999}
2022-06-20 15:23:17.221  INFO 1 --- [       Thread-1] org.eclipse.jetty.server.Server          : Started @19052ms
2022-06-20 15:23:17.226  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   : Routes startup (total:6 started:6)
2022-06-20 15:23:17.227  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   :     Started CH_MULTIPART_ROUTE (direct://multipart)
2022-06-20 15:23:17.227  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   :     Started CH_IDSCP2_ROUTE (idscp2server://0.0.0.0:29292)
2022-06-20 15:23:17.228  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   :     Started CH_QUERY_PID (rest://post:/messages/query/%7Bpid%7D)
2022-06-20 15:23:17.229  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   :     Started CH_QUERY_PID_ID (rest://post:/messages/query/%7Bpid%7D/%7Bid%7D)
2022-06-20 15:23:17.229  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   :     Started CH_LOG_PID (rest://post:/messages/log/%7Bpid%7D)
2022-06-20 15:23:17.229  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   :     Started CH_CREATE_PID (rest://post:/process/%7Bpid%7D)
2022-06-20 15:23:17.230  INFO 1 --- [       Thread-1] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.16.0 (camel-2) started in 1s769ms (build:5ms init:360ms start:1s404ms)
2022-06-20 15:26:37.316 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('From[rest://post:/process/%7Bpid%7D?consumerComponentName=jetty&routeId=CH_CREATE_PID]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:37.569 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.lucon.LuconEngine              : Prolog library loaded de.fhg.aisec.ids.dataflowcontrol.lucon.LuconLibrary
2022-06-20 15:26:37.655 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@844c8cd
2022-06-20 15:26:37.698 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('To[direct:multipart]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:37.734 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@7fa942cb
2022-06-20 15:26:37.835 DEBUG 1 --- [qtp643001118-39] d.f.a.i.c.m.MultiPartStringParser        : Found header:
{
  "@context" : {
    "ids" : "https://w3id.org/idsa/core/",
    "idsc" : "https://w3id.org/idsa/code/"
  },
  "@type" : "ids:RequestMessage",
  "@id" : "https://w3id.org/idsa/autogen/requestMessage/50358895-c12b-485f-9570-dcc050c18998",
  "ids:modelVersion" : "4.2.7",
  "ids:issued" : {
    "@value" : "2022-06-20T15:26:36.825Z",
    "@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
  },
  "ids:issuerConnector" : {
    "@id" : "https://vcese12.inesctec.pt:8080/stvgodigital/subcontracted-01"
  },
  "ids:recipientConnector" : [ {
    "@id" : "https://vcese19.inesctec.pt:8443/process/2d94d01c-15f1-4795-8041-4abb95436ad3"
  } ],
  "ids:senderAgent" : {
    "@id" : "https://vcese12.inesctec.pt:8080/stvgodigital/subcontracted-01"
  },
  "ids:securityToken" : {
    "@type" : "ids:DynamicAttributeToken",
    "@id" : "https://w3id.org/idsa/autogen/dynamicAttributeToken/ce1f34cd-49f7-4065-afa6-acaae3d3fd8f",
    "ids:tokenValue" : "eyJ0eXAiOiJhdCtqd3QiLCJraWQiOiI2MGJlZmYxYWQ2NjJlMzhmZDg5OTY2MzkyODZlM2MyNGUyYjM2NmU1MmY4N2Q4ODI1MWI4NTQwOTZlZjc4YzM5IiwiYWxnIjoiUlMyNTYifQ.eyJzY29wZSI6Imlkc2M6SURTX0NPTk5FQ1RPUl9BVFRSSUJVVEVTX0FMTCIsImF1ZCI6WyJpZHNjOklEU19DT05ORUNUT1JTX0FMTCJdLCJpc3MiOiJodHRwOi8vdmNlc2UxOS5pbmVzY3RlYy5wdDo0NTY3L2F1dGgiLCJzdWIiOiJENjpDNjpBMDpCMzo4QTpGODo4QzowNDpCMjo2OTo1MDo2QjozRDo1MDo4RjozQTo2MjpGNzo0MDpFMTprZXlpZDpENjpDNjpBMDpCMzo4QTpGODo4QzowNDpCMjo2OTo1MDo2QjozRDo1MDo4RjozQTo2MjpGNzo0MDpFMSIsIm5iZiI6MTY1NTczODc4MSwiaWF0IjoxNjU1NzM4NzgxLCJqdGkiOiIwZjhjMjg0MC04ZWMyLTRjMmMtODJmMC0yNzc3YzQ1NGE3ZDIiLCJleHAiOjE2NTU3NDIzODEsImNsaWVudF9pZCI6IkQ2OkM2OkEwOkIzOjhBOkY4OjhDOjA0OkIyOjY5OjUwOjZCOjNEOjUwOjhGOjNBOjYyOkY3OjQwOkUxOmtleWlkOkQ2OkM2OkEwOkIzOjhBOkY4OjhDOjA0OkIyOjY5OjUwOjZCOjNEOjUwOjhGOjNBOjYyOkY3OjQwOkUxIiwic2VjdXJpdHlQcm9maWxlIjoiaWRzYzpCQVNFX1NFQ1VSSVRZX1BST0ZJTEUiLCJyZWZlcnJpbmdDb25uZWN0b3IiOiJodHRwOi8vdmNlc2UxMi5kZW1vIiwiQHR5cGUiOiJpZHM6RGF0UGF5bG9hZCIsIkBjb250ZXh0IjoiaHR0cHM6Ly93M2lkLm9yZy9pZHNhL2NvbnRleHRzL2NvbnRleHQuanNvbmxkIiwidHJhbnNwb3J0Q2VydHNTaGEyNTYiOiI5M2ZkODAxZjY1YTdkYzQwNDY4ZWU5NzdhNWExMmRmMjcxYjhhNWZjOGQxYjExNzY5M2UyMWJhZmEwZWIxOWVlIn0.VzS_2li1rB8uD8ZUViylYnQhgWGNQ7-qW1htQLCic7CAldoQA26UOVdPRctE1Di_HUT8jYVB0miAJ8E8d2S8o5fAjA_AxTRQU-_yIjcPepS_M1jeleEm-e5b1-oxyxCfZ49Rhe_qLymBJYzJTNtm2_8FATtSXF02Sv4jwYP9Dg7hr56InO_VD_tuKEVTkjk_DuZGIWYbOuB9emKOX-LkjUMxWlBpxYQQeQ5rVOlriRpSjWdtMymacjhXg8gbjHgCQ92Qc3QxuZRnhgwKg_MgLyZ5WnitSD8OLh2N3AGm2uaOpKTvskMLqfC4PxAb6-XLWIfdJ7nM-jCVRoehVCK53g",
    "ids:tokenFormat" : {
      "@id" : "https://w3id.org/idsa/code/JWT"
    }
  }
}
2022-06-20 15:26:37.835 DEBUG 1 --- [qtp643001118-39] d.f.a.i.c.m.MultiPartStringParser        : Found body with Content-Type "application/json; charset=utf-8"
2022-06-20 15:26:37.839 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('process[ref:MultipartInputProcessor]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:37.859 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@4fdb09ac
2022-06-20 15:26:38.562 DEBUG 1 --- [qtp643001118-39] c.ClearingHouseInfomodelParsingProcessor : Using Charset from Content-Type header: utf-8
2022-06-20 15:26:38.620 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('process[ref:InfoModelParsingProcessor]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:38.630 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@19b7ee63
2022-06-20 15:26:38.633 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('process[ref:TokenValidationProcessor]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:38.642 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@d25777b
2022-06-20 15:26:38.687 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('To[http://logging-service:8000/?bridgeEndpoint=true&throwExceptionOnFailure=false]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:38.695 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@325cb629
2022-06-20 15:26:38.716 DEBUG 1 --- [qtp643001118-39] d.f.a.i.i.d.d.a.AisecDapsDriver          : AKI: C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC:
2022-06-20 15:26:38.716 DEBUG 1 --- [qtp643001118-39] d.f.a.i.i.d.d.a.AisecDapsDriver          : SKI: C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC:
2022-06-20 15:26:38.790  INFO 1 --- [qtp643001118-39] d.f.a.i.i.d.d.a.AisecDapsDriver          : Retrieving Dynamic Attribute Token from DAPS ...
2022-06-20 15:26:38.791 DEBUG 1 --- [qtp643001118-39] d.f.a.i.i.d.d.a.AisecDapsDriver          : ConnectorUUID: C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC:keyid:C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC
2022-06-20 15:26:39.230 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('process[ref:CHOutputProcessor]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:39.245 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@23ee0a98
2022-06-20 15:26:39.252 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('Transform[simple{${exception.message}}]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:39.265 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@1f15c4f6
2022-06-20 15:26:39.304  INFO 1 --- [qtp643001118-39] CH_MULTIPART_ROUTE                       : ### Handle class de.fhg.aisec.ids.idscp2.idscp_core.error.DatException ###
2022-06-20 15:26:39.306 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('Log[### Handle ${exception.class} ###]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:39.319 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@27f52351
2022-06-20 15:26:39.324 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('RemoveHeader[idsMultipartHeader]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:39.337 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@5260c222
2022-06-20 15:26:39.343 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('RemoveHeader[pid]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:39.352 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@679adab9
2022-06-20 15:26:39.360 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('Choice[[When[simple{${exception.class} == ''java.lang.SecurityException'' || ${exception.class} == ''java.lang.IllegalArgumentException''} -> [SetHeader[CamelHttpResponseCode, simple{401}]]], When[simple{${exception.class} == ''java.io.IOException''} -> [SetHeader[CamelHttpResponseCode, simple{400}]]]] Otherwise[[Log[### Handle ${exception} ###], Log[### With Trace ${exception.stacktrace} ###], Log[### With Cause ${exception.cause.stacktrace} ###], SetHeader[CamelHttpResponseCode, simple{500}], Transform[constant{Internal Server Error}]]]]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:39.369 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@162565b9
2022-06-20 15:26:39.376  INFO 1 --- [qtp643001118-39] CH_MULTIPART_ROUTE                       : ### Handle de.fhg.aisec.ids.idscp2.idscp_core.error.DatException: Error whilst retrieving DAT ###
2022-06-20 15:26:39.377 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Query for uncached label transformation: once(setof(S, action_service('Log[### Handle ${exception} ###]', S), SC); SC = []),
collect_creates_labels(SC, ACraw), set_of(ACraw, Adds),
collect_removes_labels(SC, RCraw), set_of(RCraw, Removes).
2022-06-20 15:26:39.388 DEBUG 1 --- [qtp643001118-39] d.f.a.i.d.PolicyDecisionPoint            : Transformation: de.fhg.aisec.ids.api.policy.TransformationDecision@13c2d64
2022-06-20 15:26:39.393  INFO 1 --- [qtp643001118-39] CH_MULTIPART_ROUTE                       : ### With Trace de.fhg.aisec.ids.idscp2.idscp_core.error.DatException: Error whilst retrieving DAT
        at de.fhg.aisec.ids.idscp2.default_drivers.daps.aisec_daps.AisecDapsDriver.getToken(AisecDapsDriver.kt:342)
        at de.fhg.aisec.ids.clearinghouse.ClearingHouseOutputProcessor$Companion.processClearingHouseOutput(ClearingHouseOutputProcessor.kt:65)
        at de.fhg.aisec.ids.clearinghouse.ClearingHouseOutputProcessor.process(ClearingHouseOutputProcessor.kt:40)
        at org.apache.camel.support.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:65)
        at org.apache.camel.support.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:104)
        at de.fhg.aisec.ids.dataflowcontrol.PolicyEnforcementPoint.process(PolicyEnforcementPoint.kt:201)
        at org.apache.camel.support.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:104)
        at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.doRun(RedeliveryErrorHandler.java:812)
        at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.run(RedeliveryErrorHandler.java:720)
        at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:193)
        at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:184)
        at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:399)
        at org.apache.camel.component.jetty.CamelContinuationServlet.doService(CamelContinuationServlet.java:245)
        at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:130)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:584)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at org.eclipse.jetty.server.Server.handle(Server.java:516)
        at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
        at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.net.ConnectException
        at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1047)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:198)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:230)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1(PlainHttpConnection.java:206)
        at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934)
        at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        ... 1 more
Caused by: java.nio.channels.ClosedChannelException
        at java.base/sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:195)
        at java.base/sun.nio.ch.SocketChannelImpl.beginConnect(SocketChannelImpl.java:760)
        at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:848)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:183)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:185)
        ... 9 more
 ###

I'm using the stack trace on the routes file.

tmberthold commented 2 years ago

(DSC: The DSC receives an HTTP Error 500 from the CH as a response to the sent request response-code=(500))

AnaCarolinaChaves commented 2 years ago

The response from the DAPS is a code 200. Is on the CH trusted connector that the error is thrown.

kragall commented 2 years ago

So far this issue seems very similar to #18. Just for background info: the CH uses parts of the Trusted Connector to connect to the DAPS and the Exception you encountered is thrown there by AisecDapsDriver.getToken(). As the cause of the error is a connection exception, it would be great to know what caused the java.net.ConnectException in the first place.

Could you try to add <log message="### With Cause ${exception.cause.stacktrace} ###"/> to the routes.xml and see if we can get more information about the ConnectException?

AnaCarolinaChaves commented 2 years ago

The logs presented already had the line. I read the issue and used the lines for the stack trace shown there.

AnaCarolinaChaves commented 2 years ago

I'll send the rest of the logs. It says that the reason is a null value.

2022-06-21 13:06:04.106 DEBUG 1 --- [qtp753549713-39] d.f.a.i.c.m.MultiPartStringParser        : Found body with Content-Type "application/ld+json; charset=utf-8"
2022-06-21 13:06:04.168 DEBUG 1 --- [qtp753549713-39] c.ClearingHouseInfomodelParsingProcessor : Using Charset from Content-Type header: utf-8
2022-06-21 13:06:04.324 DEBUG 1 --- [qtp753549713-39] d.f.a.i.i.d.d.a.AisecDapsDriver          : AKI: C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC:
2022-06-21 13:06:04.327 DEBUG 1 --- [qtp753549713-39] d.f.a.i.i.d.d.a.AisecDapsDriver          : SKI: C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC:
2022-06-21 13:06:04.473  INFO 1 --- [qtp753549713-39] d.f.a.i.i.d.d.a.AisecDapsDriver          : Retrieving Dynamic Attribute Token from DAPS ...
2022-06-21 13:06:04.474 DEBUG 1 --- [qtp753549713-39] d.f.a.i.i.d.d.a.AisecDapsDriver          : ConnectorUUID: C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC:keyid:C4:10:D7:AB:4B:F0:81:45:96:06:97:AD:2A:01:47:D0:C5:F0:45:AC
2022-06-21 13:06:04.496  INFO 1 --- [qtp753549713-39] CH_MULTIPART_ROUTE                       : ### Handle class de.fhg.aisec.ids.idscp2.idscp_core.error.DatException ###
2022-06-21 13:06:04.506  INFO 1 --- [qtp753549713-39] CH_MULTIPART_ROUTE                       : ### Handle de.fhg.aisec.ids.idscp2.idscp_core.error.DatException: Error whilst retrieving DAT ###
2022-06-21 13:06:04.508  INFO 1 --- [qtp753549713-39] CH_MULTIPART_ROUTE                       : ### With Trace de.fhg.aisec.ids.idscp2.idscp_core.error.DatException: Error whilst retrieving DAT
        at de.fhg.aisec.ids.idscp2.default_drivers.daps.aisec_daps.AisecDapsDriver.getToken(AisecDapsDriver.kt:342)
        at de.fhg.aisec.ids.clearinghouse.ClearingHouseOutputProcessor$Companion.processClearingHouseOutput(ClearingHouseOutputProcessor.kt:65)
        at de.fhg.aisec.ids.clearinghouse.ClearingHouseOutputProcessor.process(ClearingHouseOutputProcessor.kt:40)
        at org.apache.camel.support.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:65)
        at org.apache.camel.support.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:104)
        at de.fhg.aisec.ids.dataflowcontrol.PolicyEnforcementPoint.process(PolicyEnforcementPoint.kt:201)
        at org.apache.camel.support.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:104)
        at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.doRun(RedeliveryErrorHandler.java:812)
        at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.run(RedeliveryErrorHandler.java:720)
        at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:193)
        at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:184)
        at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:399)
        at org.apache.camel.component.jetty.CamelContinuationServlet.doService(CamelContinuationServlet.java:245)
        at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:130)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:584)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at org.eclipse.jetty.server.Server.handle(Server.java:516)
        at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
        at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.net.ConnectException
        at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1047)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:198)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:230)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1(PlainHttpConnection.java:206)
        at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934)
        at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911)
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        ... 1 more
Caused by: java.nio.channels.ClosedChannelException
        at java.base/sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:195)
        at java.base/sun.nio.ch.SocketChannelImpl.beginConnect(SocketChannelImpl.java:760)
        at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:848)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:183)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:185)
        ... 9 more
 ###
2022-06-21 13:06:04.512 ERROR 1 --- [qtp753549713-39] o.a.c.p.FatalFallbackErrorHandler        : Exception occurred while trying to handle previously thrown exception on exchangeId: 9E36EB4ABFF6EE3-0000000000000013 using: [null]. The previous and the new exception will be logged in the following.
2022-06-21 13:06:04.513 ERROR 1 --- [qtp753549713-39] o.a.c.p.FatalFallbackErrorHandler        : \--> Previous exception on exchangeId: 9E36EB4ABFF6EE3-0000000000000013

de.fhg.aisec.ids.idscp2.idscp_core.error.DatException: Error whilst retrieving DAT
        at de.fhg.aisec.ids.idscp2.default_drivers.daps.aisec_daps.AisecDapsDriver.getToken(AisecDapsDriver.kt:342) ~[idscp2-0.10.3.jar:na]
        at de.fhg.aisec.ids.clearinghouse.ClearingHouseOutputProcessor$Companion.processClearingHouseOutput(ClearingHouseOutputProcessor.kt:65) ~[clearing-house-processors.jar:na]
        at de.fhg.aisec.ids.clearinghouse.ClearingHouseOutputProcessor.process(ClearingHouseOutputProcessor.kt:40) ~[clearing-house-processors.jar:na]
        at org.apache.camel.support.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:65) ~[camel-support-3.16.0.jar:3.16.0]
        at org.apache.camel.support.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:104) ~[camel-support-3.16.0.jar:3.16.0]
        at de.fhg.aisec.ids.dataflowcontrol.PolicyEnforcementPoint.process(PolicyEnforcementPoint.kt:201) ~[ids-dataflow-control-6.3.0.jar:na]
        at org.apache.camel.support.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:104) ~[camel-support-3.16.0.jar:3.16.0]
        at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.doRun(RedeliveryErrorHandler.java:812) ~[camel-core-processor-3.16.0.jar:3.16.0]
        at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.run(RedeliveryErrorHandler.java:720) ~[camel-core-processor-3.16.0.jar:3.16.0]
        at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:193) ~[camel-base-engine-3.16.0.jar:3.16.0]
        at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64) ~[camel-base-engine-3.16.0.jar:3.16.0]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:184) ~[camel-core-processor-3.16.0.jar:3.16.0]
        at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:399) ~[camel-base-engine-3.16.0.jar:3.16.0]
        at org.apache.camel.component.jetty.CamelContinuationServlet.doService(CamelContinuationServlet.java:245) ~[camel-jetty-common-3.16.0.jar:3.16.0]
        at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:130) ~[camel-http-common-3.16.0.jar:3.16.0]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:584) ~[jakarta.servlet-api-4.0.4.jar:4.0.4]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[jetty-servlet-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550) ~[jetty-servlet-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) ~[jetty-servlet-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
Caused by: java.net.ConnectException: null
        at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1047) ~[java.net.http:na]
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:198) ~[java.net.http:na]
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:230) ~[java.net.http:na]
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1(PlainHttpConnection.java:206) ~[java.net.http:na]
        at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) ~[na:na]
        at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) ~[na:na]
        at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[na:na]
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
        ... 1 common frames omitted
Caused by: java.nio.channels.ClosedChannelException: null
        at java.base/sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:195) ~[na:na]
        at java.base/sun.nio.ch.SocketChannelImpl.beginConnect(SocketChannelImpl.java:760) ~[na:na]
        at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:848) ~[na:na]
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:183) ~[java.net.http:na]
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) ~[na:na]
        at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:185) ~[java.net.http:na]
        ... 9 common frames omitted

2022-06-21 13:06:04.514 ERROR 1 --- [qtp753549713-39] o.a.c.p.FatalFallbackErrorHandler        : \--> New exception on exchangeId: 9E36EB4ABFF6EE3-0000000000000013

org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: stacktrace on null due to: org.apache.camel.component.bean.MethodNotFoundException: Method with name: stacktrace not found on bean: java.net.ConnectException of type: java.net.ConnectException on the exchange: Exchange[9E36EB4ABFF6EE3-0000000000000013]
        at org.apache.camel.language.bean.BeanExpression.invokeOgnlMethod(BeanExpression.java:453) ~[camel-bean-3.16.0.jar:3.16.0]
        at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:199) ~[camel-bean-3.16.0.jar:3.16.0]
        at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:214) ~[camel-bean-3.16.0.jar:3.16.0]
        at org.apache.camel.language.simple.SimpleExpressionBuilder$31.evaluate(SimpleExpressionBuilder.java:912) ~[camel-core-languages-3.16.0.jar:3.16.0]
        at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:45) ~[camel-support-3.16.0.jar:3.16.0]
        at org.apache.camel.support.builder.ExpressionBuilder$51.evaluate(ExpressionBuilder.java:1560) ~[camel-support-3.16.0.jar:3.16.0]
        at org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:45) ~[camel-support-3.16.0.jar:3.16.0]
        at org.apache.camel.processor.LogProcessor.process(LogProcessor.java:71) ~[camel-core-processor-3.16.0.jar:3.16.0]
        at org.apache.camel.support.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:104) ~[camel-support-3.16.0.jar:3.16.0]
        at de.fhg.aisec.ids.dataflowcontrol.PolicyEnforcementPoint.process(PolicyEnforcementPoint.kt:201) ~[ids-dataflow-control-6.3.0.jar:na]
        at org.apache.camel.support.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:104) ~[camel-support-3.16.0.jar:3.16.0]
        at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:399) ~[camel-base-engine-3.16.0.jar:3.16.0]
        at org.apache.camel.processor.Pipeline$PipelineTask.run(Pipeline.java:109) ~[camel-core-processor-3.16.0.jar:3.16.0]
        at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:193) ~[camel-base-engine-3.16.0.jar:3.16.0]
        at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64) ~[camel-base-engine-3.16.0.jar:3.16.0]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:184) ~[camel-core-processor-3.16.0.jar:3.16.0]
        at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:399) ~[camel-base-engine-3.16.0.jar:3.16.0]
        at org.apache.camel.component.jetty.CamelContinuationServlet.doService(CamelContinuationServlet.java:245) ~[camel-jetty-common-3.16.0.jar:3.16.0]
        at org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:130) ~[camel-http-common-3.16.0.jar:3.16.0]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:584) ~[jakarta.servlet-api-4.0.4.jar:4.0.4]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[jetty-servlet-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550) ~[jetty-servlet-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) ~[jetty-servlet-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) ~[jetty-server-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) ~[jetty-io-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) ~[jetty-util-9.4.45.v20220203.jar:9.4.45.v20220203]
        at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
Caused by: org.apache.camel.component.bean.MethodNotFoundException: Method with name: stacktrace not found on bean: java.net.ConnectException of type: java.net.ConnectException on the exchange: Exchange[9E36EB4ABFF6EE3-0000000000000013]
        at org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:263) ~[camel-bean-3.16.0.jar:3.16.0]
        at org.apache.camel.component.bean.AbstractBeanProcessor.process(AbstractBeanProcessor.java:126) ~[camel-bean-3.16.0.jar:3.16.0]
        at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83) ~[camel-base-engine-3.16.0.jar:3.16.0]
        at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:41) ~[camel-support-3.16.0.jar:3.16.0]
        at org.apache.camel.language.bean.BeanExpression.invokeBean(BeanExpression.java:347) ~[camel-bean-3.16.0.jar:3.16.0]
        at org.apache.camel.language.bean.BeanExpression.invokeOgnlMethod(BeanExpression.java:449) ~[camel-bean-3.16.0.jar:3.16.0]
        ... 49 common frames omitted
AnaCarolinaChaves commented 2 years ago

I'm using the DAPS on port 4567 instead of 80. Do you think that can be the reason for the error? I saw that an older version of the trusted connector could only use port 80.

kragall commented 2 years ago

I saw in the other issue that you are using http instead of https in the DAPS_URL environment variable. Could you try using https instead?

AnaCarolinaChaves commented 2 years ago

I was using http because I was running the DAPS without TLS certificates.

I changed everything to https with the default port and the previous error disappear. I think it was because the trusted connector could not handle defining a port (currently I'm using the 443, meaning I don't define one on the URL)

AnaCarolinaChaves commented 2 years ago

However, using https makes the logging system return an unable to get local issuer certificate. Do you think that this is because the certificates are not trusted (I used the multistage dockerfiles to insert the new certificate into the ca-certificatesdirectory)?

kragall commented 2 years ago

Did you also mount the certificate as a volume in the docker containers of logging-service, document-api and keyring-api?

AnaCarolinaChaves commented 2 years ago

Yes. My logging service container is instantiated like this:

logging-service:
        container_name: "logging-service"
        build: 
            context: ../ids-clearing-house-service
            dockerfile: docker/logging-service-multistage.Dockerfile
        depends_on:
            - document-api
            - keyring-api
            - logging-service-mongo
        environment:
            # Allowed levels: Off, Error, Warn, Info, Debug, Trace
            - API_LOG_LEVEL=Debug
        volumes:
            - ./data/Rocket.toml:/server/Rocket.toml
            - ./data/keys:/server/keys
            - ./data/certs:/server/certs
#            - ./data/certificates-daps:/usr/local/share/ca-certificates
kragall commented 2 years ago

Can you connect to the docker container of your logging-service and check if you can connect with your DAPS using openssl?

  1. docker exec -ti logging-service bash to get into the container
  2. openssl s_client -connect <daps-url>:443 -CAfile /etc/ssl/certs/<daps-pem-file> to connect to your DAPS

You should get Verify return code: 0 (ok)

AnaCarolinaChaves commented 2 years ago

The response is Verify return code: 21 (unable to verify the first certificate).

AnaCarolinaChaves commented 2 years ago

I'm not using a local CA. I created the DAPS certificates using a script provided in the repository. Do you think that could be the reason for the error?

kragall commented 2 years ago

The response says, that it can't validate the certificate, so the truststore in the container does not yet have the required certificate. For the standard DAPS this is done by lines 13 and 14 in the multi-stage dockerfiles. Be aware that update-ca-certificates expects your certificate to have the ending .crt.

Did you build the containers with your daps-certificate, i.e. you changed line 13?

AnaCarolinaChaves commented 2 years ago

Yes. I updated my certificate's name to be daps_cachain.crt.

kragall commented 2 years ago

With openssl s_client -connect <daps-url>:443 -CAfile /etc/ssl/certs/<daps-pem-file> you should also see the certificate your daps returns. Can you check that this is the same one, you used when building the docker containers?

AnaCarolinaChaves commented 2 years ago

That is it. The certificate is not changing. It still uses the certificate the DAPS created.

When building I use a daps_cachain.crt file. The file used with the line openssl s_client -connect <daps-url>:443 -CA file /etc/ssl/certs/<daps-pem-file> asks for a daps_cachain.pem file. Do you know if it converts it to a pem extension?

kragall commented 2 years ago

No, it will not convert them automatically, you'll have to do that yourself

AnaCarolinaChaves commented 2 years ago

So, I updated my docker-compose to include the pem file in the bind mount.

logging-service:
        container_name: "logging-service"
        build: 
            context: ../ids-clearing-house-service
            dockerfile: docker/logging-service-multistage.Dockerfile
        depends_on:
            - document-api
            - keyring-api
            - logging-service-mongo
        environment:
            # Allowed levels: Off, Error, Warn, Info, Debug, Trace
            - API_LOG_LEVEL=Debug
        volumes:
            - ./data/Rocket.toml:/server/Rocket.toml
            - ./data/keys:/server/keys
            - ./data/certs:/server/certs
            - ./data/truststore/daps_cachain.pem:/etc/ssl/certs/daps_cachain.pem

Despite doing this, the Fraunhofer pem file is not overridden. Am I missing some extra step?

kragall commented 2 years ago

Actually, I don't think you should add this last volume and I may have understood you last question wrong. The /ssl/certs folder is created by ca-certificates and contains all your trusted certificates ready to use with openssl. It also creates one long certificate with all trusted certificates /etc/ssl/certs/ca-certificates.crt.

For the standard DAPS both calls work:

You have to check with the ca-certificates package how you can get rid of a certificate. But if you only want to add your own certificate it should be enough to copy the certificate to /usr/local/share/ca-certificates/ and run update-ca-certificates in the container

AnaCarolinaChaves commented 2 years ago

That is the problem. However, I'm not able to remove or override the older certificate.

AnaCarolinaChaves commented 2 years ago

I was checking and despite the command openssl s_client -connect <daps-url>:443 -CAfile /etc/ssl/certs/<daps-pem-file> not returning the correct certificate, if I use vi to read file ca-certificate.crt the key appears there.

Also, if I use vim to read the daps_cachain.pem it has the correct certificate inside. However, when I use the openssl s_client -connect <daps-url>:443 -CAfile /etc/ssl/certs/daps_cachain.pem it return the Fraunnofer DAPS.

kragall commented 2 years ago

Just to be clear, you fill <daps-url> with the url of your local DAPS and when you run the command your DAPS sends the Fraunhofer DAPS certificate for the TLS handshake, correct?

This means that your DAPS is not configured correctly, i.e. it doesn't use your own certificates.

Why might this be a problem? I do know that the Trusted Connector checks that the domain certificate matches the domain when opening a connection to another connector. But I don't know for sure that it does the same when communicating with a DAPS, though it does seem likely.

AnaCarolinaChaves commented 2 years ago

I'm sorry. You are saying my DAPS configuration is not correct. You mean the DAPS configuration on my trusted connector and logging system is not correct or that the DAPS itself is not correct?

Because the DSC connectors and the Metadata Broker can communicate with the DAPS without problem.

On the previous comment I also meant that when opening the file /etc/ssl/certs/daps_cachain.pem it shows the correct certificate, but when running the command it send the incorrect. Do you think this could be because of some temporary file or that the certificate tries to complete the information with one simular (they are issued for the same virtual machine)?

kragall commented 2 years ago

What openssl s_client -connect <daps-url>:443 does is that it establishes a SSL/TLS connection with the <daps-url>. The -CAfile option tells openssl where it can find a certificate that might be needed for validating the certificate that is sent by the server.

So if you run this command you will see something like this:

Certificate chain 0 s:/C=DE/O=Fraunhofer/OU=AISEC/CN=7b3df441-e8ad-4d5c-a4a8-9b29f5a330fb i:/C=DE/O=Fraunhofer/CN=IDS Test SubCA 2018

Server certificate -----BEGIN CERTIFICATE-----

This is followed by the server certificate of your DAPS running on . This should match the certificate you included into the truststore of the CH using the docker files and update-ca-certificates.

From what I understand the DAPS is still sending another certificate than the one you tried to add to the CH, correct?

AnaCarolinaChaves commented 2 years ago

Correct. It still sends the Fraunhofer DAPS certificate instead of the new one.

kragall commented 2 years ago

This means that your local DAPS is still configured to use the Fraunhofer DAPS certificate (A) instead of your new one (B).

So you have two options:

  1. Configure your DAPS to use B instead of A.
  2. Include A into the docker files of the CH and run update-ca-certificates instead of B
AnaCarolinaChaves commented 2 years ago

Thank you very much. Sorry for the confusion, I'm still new to working with certificates.

Now, the only step left is making the certificate a trusted certificate.

AnaCarolinaChaves commented 2 years ago

Solved issue. Thank you very much for the support.

To share information, the error was caused because the certificate on directory ids-clearing-house-service/docker was not the one used on DAPS to validate its own identity. This means, I was using, incorrectly, the one created for the machine and that was used on directory data/certs (in der format). The one that should be used is the TLS certificate that DAPS uses on its docker-compose.