You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/08/01 11:01:49 UTC

[GitHub] [camel] bvfalcon opened a new pull request, #8084: Errors in Unit-tests for camel-jetty component are solved

bvfalcon opened a new pull request, #8084:
URL: https://github.com/apache/camel/pull/8084

   Some of junit-tests in component camel-jetty are broken. In this PR their functionality is restored.
   Note: these unit-tests will be very helpful for some big changes like [Migration to Jakarta EE ](https://github.com/apache/camel/pull/7116).


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

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

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


[GitHub] [camel] orpiske commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1204836580

   @bvfalcon so, looking at the test results today, the Jetty tests failed in the upstream CI. Would you mind sending a PR for these, please?
   
   https://ci-builds.apache.org/job/Camel/job/Apache%20Camel/job/main/509/testReport/


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

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

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


[GitHub] [camel] orpiske merged pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
orpiske merged PR #8084:
URL: https://github.com/apache/camel/pull/8084


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

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

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


[GitHub] [camel] orpiske commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1204082949

   > @orpiske In [log](https://github.com/apache/camel/suites/7629920622/artifacts/317159214) I see an error
   > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   > 
   > This error has reason not only in test, but also in JVM keystorage settings ([problem certificates](https://github.com/apache/camel/tree/main/components/camel-jetty/src/test/resources/jsse), variant of [solving problem](https://issues.apache.org/jira/browse/CAMEL-13987)).
   > 
   > In both cases, this is the last error, that brokes unit-testing. Please merge PR manuall or say, and I mark problem test as ignored.
   
   Thanks for the clarification. 
   
   Yeah, I think that's OK to merged as is in this case (we do need to watch out for the test result in the Apache upstream CI, though). 
   
   c/c: @oscerd 


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

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

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


[GitHub] [camel] orpiske commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1206117979

   @bvfalcon thanks for investigating it. In this case, feel free to open a new PR. As this one has been merged already, it cannot be reopened.


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

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

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


[GitHub] [camel] bvfalcon commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
bvfalcon commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1205009733

   > https://ci-builds.apache.org/job/Camel/job/Apache%20Camel/job/main/509/testReport/
   
   First three tests:
   
   ```
   org.apache.camel.component.jetty.HttpsAsyncRouteTest.testEndpoint
   org.apache.camel.component.jetty.HttpsAsyncRouteTest.testHelloEndpoint
   org.apache.camel.component.jetty.SpringHttpsRouteTest.testEndpoint
   ```
   
   fail with the same error <details><summary>PKIX path building failed</summary>
   
   ```
   Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   	at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)
   	at java.base/sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306)
   	at java.base/sun.security.validator.Validator.validate(Validator.java:264)
   	at java.base/sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:313)
   	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:222)
   	at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129)
   	at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:638)
   	... 87 more
   Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   	at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
   	at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
   	at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)
   	at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)
   	... 93 more
   ```
   </details>
   
   I think, they have one ([this](https://github.com/apache/camel/pull/8084#issuecomment-1204016941)) reason. 
   It is a strange thing, but locally I have an error only in 3-rd (```org.apache.camel.component.jetty.SpringHttpsRouteTest.testEndpoint```) case, first and second are evaluated locally successfully.
   
   I want compare with execution with execution from [previous change in camel-jetty](https://github.com/apache/camel/commits/main/components/camel-jetty), from 07.07.2022, but CI/CD History [shows ony last builds](https://ci-builds.apache.org/job/Camel/job/Apache%20Camel/job/main/) and the altest is from 29.07.2022. If it possible, can you pls find build for 7 July? It will be very informative, compare these 3 test in this builds.


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

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

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


[GitHub] [camel] bvfalcon commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
bvfalcon commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1201214629

   > Finished component verification: 1 component(s) test failed out of 1 component(s) tested
   
   <details><summary>From build message</summary>
   
   ```
   Logging test to /home/runner/work/camel/camel/automated-build-log/components-camel-jetty.log
   Failed components/camel-jetty test test: 1 verified / 1 failed
   Copying test log file at target/camel-jetty-test.log to the log directory
   ```
   </details>
   
   But where is  no File camel-jetty-test.log in downloadable archive. May be exists another way to see the error?


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

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

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


[GitHub] [camel] bvfalcon commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
bvfalcon commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1206146099

   [Done](https://github.com/apache/camel/pull/8116)


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

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

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


[GitHub] [camel] github-actions[bot] commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1201047610

   :warning: This PR changes Camel components and will be tested automatically.


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

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

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


[GitHub] [camel] github-actions[bot] commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1201626738

   :x: Finished component verification: **1 component(s) test failed** out of 1 component(s) tested


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

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

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


[GitHub] [camel] github-actions[bot] commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1201110840

   :x: Finished component verification: **1 component(s) test failed** out of 1 component(s) tested


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

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

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


[GitHub] [camel] bvfalcon commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
bvfalcon commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1204016941

   @orpiske In [log](https://github.com/apache/camel/suites/7629920622/artifacts/317159214) I see an error 
   
   <details><summary>PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</summary>
   
   ```
   [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.016 s <<< FAILURE! - in org.apache.camel.component.jetty.SpringHttpsRouteTest
   [ERROR] org.apache.camel.component.jetty.SpringHttpsRouteTest.testEndpoint  Time elapsed: 10.01 s  <<< ERROR!
   org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[]
   	at org.apache.camel.CamelExecutionException.wrapCamelExecutionException(CamelExecutionException.java:45)
   	at org.apache.camel.support.ExchangeHelper.extractResultBody(ExchangeHelper.java:667)
   	at org.apache.camel.impl.engine.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:591)
   	at org.apache.camel.impl.engine.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:587)
   	at org.apache.camel.impl.engine.DefaultProducerTemplate.sendBodyAndHeader(DefaultProducerTemplate.java:221)
   	at org.apache.camel.impl.engine.DefaultProducerTemplate.sendBodyAndHeader(DefaultProducerTemplate.java:213)
   	at org.apache.camel.component.jetty.SpringHttpsRouteTest.testEndpoint(SpringHttpsRouteTest.java:104)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
   	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
   	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
   	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
   	at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:165)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:128)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
   Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
   	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:353)
   	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:296)
   	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:291)
   	at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:654)
   	at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:473)
   	at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:369)
   	at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)
   	at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443)
   	at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:421)
   	at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:183)
   	at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
   	at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
   	at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1416)
   	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:456)
   	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:427)
   	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
   	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
   	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
   	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
   	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
   	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
   	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
   	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
   	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
   	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
   	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
   	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
   	at org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:445)
   	at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:273)
   	at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66)
   	at org.apache.camel.impl.engine.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:214)
   	at org.apache.camel.impl.engine.SharedCamelInternalProcessor$1.process(SharedCamelInternalProcessor.java:111)
   	at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
   	at org.apache.camel.impl.engine.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:108)
   	at org.apache.camel.support.cache.DefaultProducerCache.send(DefaultProducerCache.java:199)
   	at org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:176)
   	at org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:172)
   	at org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:153)
   	at org.apache.camel.impl.engine.DefaultProducerTemplate.sendBodyAndHeader(DefaultProducerTemplate.java:219)
   	... 71 more
   Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   	at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)
   	at java.base/sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306)
   	at java.base/sun.security.validator.Validator.validate(Validator.java:264)
   	at java.base/sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:313)
   	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:222)
   	at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129)
   	at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:638)
   	... 106 more
   Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   	at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
   	at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
   	at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)
   	at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)
   	... 112 more
   ```
   </details>
   
   This error has reason not only in test, but also in JVM keystorage settings ([problem certificates](https://github.com/apache/camel/tree/main/components/camel-jetty/src/test/resources/jsse), variant of [solving problem](https://issues.apache.org/jira/browse/CAMEL-13987)).
   
   In both cases, this is the last error, that brokes unit-testing. Please merge test manuall or say, and I mark problem test as ignored.


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

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

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


[GitHub] [camel] orpiske commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1205228512

   @bvfalcon unfortunately the upstream CI only retain a small number of builds. The one from July 7 is not available anymore. 
   
   One alternative is to look at the builds for Camel 3.18.x: https://ci-builds.apache.org/job/Camel/job/Apache%20Camel/job/camel-3.18.x/
   
   Will those help, maybe?


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

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

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


[GitHub] [camel] orpiske commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
orpiske commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1204103961

   Thanks for your contribution @bvfalcon. I have merged this and will keep an eye on it on the Apache CI. Please do feel free to keep an eye there as well, as it's likely to be tested on the next build (number 509)
   
   https://ci-builds.apache.org/job/Camel/job/Apache%20Camel/job/main/


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

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

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


[GitHub] [camel] bvfalcon commented on pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
bvfalcon commented on PR #8084:
URL: https://github.com/apache/camel/pull/8084#issuecomment-1205440581

   > builds for Camel 3.18.x: https://ci-builds.apache.org/job/Camel/job/Apache%20Camel/job/camel-3.18.x/
   
   Not much better: earliest build from 31.08.2022.
   
   > It is a strange thing, but locally I have an error only in 3-rd (org.apache.camel.component.jetty.SpringHttpsRouteTest.testEndpoint) case, first and second are evaluated locally successfully.
   
   But I understand with this strange thing: tests 1 and 2 erroneous works as "success" for windows, instead of be "skipped". I change a little this behaviour for these and some other tests. 


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

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

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


[GitHub] [camel] orpiske commented on a diff in pull request #8084: Errors in Unit-tests for camel-jetty component are solved

Posted by GitBox <gi...@apache.org>.
orpiske commented on code in PR #8084:
URL: https://github.com/apache/camel/pull/8084#discussion_r935342244


##########
components/camel-jetty/src/test/java/org/apache/camel/component/jetty/TwoCamelContextWithJettyRouteTest.java:
##########
@@ -60,7 +61,7 @@ public void process(Exchange exchange) {
 
         Exception ex = assertThrows(Exception.class,
                 () -> template.requestBody("direct:b", "Moon", String.class));
-        assertTrue(ex.getCause() instanceof NoHttpResponseException, "Should get the ConnectException");
+        assertTrue(ex.getCause() instanceof IOException, "Should get the IOException");

Review Comment:
   Not a major thing ... but maybe you can use the opportunity to simplify this assertion and use `assertInstanceOf` instead.



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

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

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