You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Kaithakottil, Manoj (GST)" <MK...@gstoyota.com> on 2020/02/26 20:57:55 UTC
Issue accessing cert file in camel
We are facing the following error from camel trying to access the cacerts file we have defined in our camel-routes.xml file.
Section of code in camel-routes.xml:
<camel:sslContextParameters id="sslContextParameters">
<camel:keyManagers keyPassword="boomicamel">
<camel:keyStore resource="/etc/pki/ca-trust/extracted/java/cacerts" password="changeit" />
</camel:keyManagers>
</camel:sslContextParameters>
Error receiving from camel container:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: https4://boomi.gstoyota.com/ws/simple/executeReceivekafkamsg?bridgeEndpoint=true&sslContextParameters=%23sslContextParameters&throwExceptionOnFailure=false due to: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:562)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:523)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:239)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1300)
... 35 more
Caused by: java.io.IOException: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.util.jsse.JsseParameters.resolveResource(JsseParameters.java:188)
at org.apache.camel.util.jsse.KeyStoreParameters.createKeyStore(KeyStoreParameters.java:174)
at org.apache.camel.util.jsse.KeyManagersParameters.createKeyManagers(KeyManagersParameters.java:108)
at org.apache.camel.util.jsse.SSLContextParameters.createSSLContext(SSLContextParameters.java:296)
at org.apache.camel.component.http4.HttpComponent.createConnectionRegistry(HttpComponent.java:373)
at org.apache.camel.component.http4.HttpComponent.createConnectionManager(HttpComponent.java:343)
at org.apache.camel.component.http4.HttpComponent.createEndpoint(HttpComponent.java:273)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:711)
... 45 more
2020-02-26 20:55:19 INFO MainSupport$HangupInterceptor:87 - Received hang up - stopping the main instance.
Please let us know if this issue has been seen by anyone else and what the resolution was.
Thanks,
Manoj Kaithakottil
Platform Architect
[cid:image001.png@01D5A153.8DA58490]
1375 Enclave Parkway
Houston, TX 77077
Work: 713.580.7124
Cell: 281-948-4138
RE: Issue accessing cert file in camel
Posted by Vikas Jaiswal <vi...@saksoft.com>.
Hi Manoj,
I am using embedded jetty and have configured it using .jks. I have read write permission on the file. For you, I guess you are trying to connect to https endpoint and you need certificates configured for it. i saw few examples on internet for the same but don't see any in the camel examples provided.
Regards,
Vikas
-----Original Message-----
From: Kaithakottil, Manoj (GST) [mailto:MKaithakottil@gstoyota.com]
Sent: 27 February 2020 22:08
To: users@camel.apache.org
Subject: RE: Issue accessing cert file in camel
CAUTION: DO NOT click links, open attachments, or provide sensitive information if the sender is unknown
Hi Vikas,
Maybe it's related to the version I am using. What file permissions do you have on that jks file you are using? I had thought about that as well and tried using a jks file but was still getting the same error trying to access that file.
Are you doing the same configuration in your camel-routes.xml that I am doing or are you doing it differently trying to use https?
Thanks,
Manoj
-----Original Message-----
From: Vikas Jaiswal <vi...@saksoft.com>
Sent: Thursday, February 27, 2020 9:27 AM
To: users@camel.apache.org
Subject: Re: Issue accessing cert file in camel
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I am using 2.24.3 and using .jks file for self signed certificate.it worked for me.
Regards,
Vikas
On 27-Feb-2020 2:28 am, "Kaithakottil, Manoj (GST)" <MK...@gstoyota.com> wrote:
CAUTION: DO NOT click links, open attachments, or provide sensitive information if the sender is unknown We are facing the following error from camel trying to access the cacerts file we have defined in our camel-routes.xml file.
Section of code in camel-routes.xml:
<camel:sslContextParameters id="sslContextParameters">
<camel:keyManagers keyPassword="boomicamel">
<camel:keyStore resource="/etc/pki/ca-trust/extracted/java/cacerts" password="changeit" />
</camel:keyManagers>
</camel:sslContextParameters>
Error receiving from camel container:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: https4://boomi.gstoyota.com/ws/simple/executeReceivekafkamsg?bridgeEndpoint=true&sslContextParameters=%23sslContextParameters&throwExceptionOnFailure=false due to: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:562)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:523)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:239)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1300)
... 35 more
Caused by: java.io.IOException: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.util.jsse.JsseParameters.resolveResource(JsseParameters.java:188)
at org.apache.camel.util.jsse.KeyStoreParameters.createKeyStore(KeyStoreParameters.java:174)
at org.apache.camel.util.jsse.KeyManagersParameters.createKeyManagers(KeyManagersParameters.java:108)
at org.apache.camel.util.jsse.SSLContextParameters.createSSLContext(SSLContextParameters.java:296)
at org.apache.camel.component.http4.HttpComponent.createConnectionRegistry(HttpComponent.java:373)
at org.apache.camel.component.http4.HttpComponent.createConnectionManager(HttpComponent.java:343)
at org.apache.camel.component.http4.HttpComponent.createEndpoint(HttpComponent.java:273)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:711)
... 45 more
2020-02-26 20:55:19 INFO MainSupport$HangupInterceptor:87 - Received hang up - stopping the main instance.
Please let us know if this issue has been seen by anyone else and what the resolution was.
Thanks,
Manoj Kaithakottil
Platform Architect
[cid:image001.png@01D5A153.8DA58490]
1375 Enclave Parkway
Houston, TX 77077
Work: 713.580.7124
Cell: 281-948-4138
Help reduce your carbon footprint | Think before you print. This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Saksoft Group is personal to the sender and is not given or endorsed by the Saksoft Group. Any data that you provide within the context of your email you will have done so with your own consent and GDPR controls will be applied whilst the data is controlled or processed within the Saksoft Group.
Help reduce your carbon footprint | Think before you print. This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Saksoft Group is personal to the sender and is not given or endorsed by the Saksoft Group. Any data that you provide within the context of your email you will have done so with your own consent and GDPR controls will be applied whilst the data is controlled or processed within the Saksoft Group.
RE: Issue accessing cert file in camel
Posted by "Kaithakottil, Manoj (GST)" <MK...@gstoyota.com>.
Hi Vikas,
Maybe it's related to the version I am using. What file permissions do you have on that jks file you are using? I had thought about that as well and tried using a jks file but was still getting the same error trying to access that file.
Are you doing the same configuration in your camel-routes.xml that I am doing or are you doing it differently trying to use https?
Thanks,
Manoj
-----Original Message-----
From: Vikas Jaiswal <vi...@saksoft.com>
Sent: Thursday, February 27, 2020 9:27 AM
To: users@camel.apache.org
Subject: Re: Issue accessing cert file in camel
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I am using 2.24.3 and using .jks file for self signed certificate.it worked for me.
Regards,
Vikas
On 27-Feb-2020 2:28 am, "Kaithakottil, Manoj (GST)" <MK...@gstoyota.com> wrote:
CAUTION: DO NOT click links, open attachments, or provide sensitive information if the sender is unknown We are facing the following error from camel trying to access the cacerts file we have defined in our camel-routes.xml file.
Section of code in camel-routes.xml:
<camel:sslContextParameters id="sslContextParameters">
<camel:keyManagers keyPassword="boomicamel">
<camel:keyStore resource="/etc/pki/ca-trust/extracted/java/cacerts" password="changeit" />
</camel:keyManagers>
</camel:sslContextParameters>
Error receiving from camel container:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: https4://boomi.gstoyota.com/ws/simple/executeReceivekafkamsg?bridgeEndpoint=true&sslContextParameters=%23sslContextParameters&throwExceptionOnFailure=false due to: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:562)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:523)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:239)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1300)
... 35 more
Caused by: java.io.IOException: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.util.jsse.JsseParameters.resolveResource(JsseParameters.java:188)
at org.apache.camel.util.jsse.KeyStoreParameters.createKeyStore(KeyStoreParameters.java:174)
at org.apache.camel.util.jsse.KeyManagersParameters.createKeyManagers(KeyManagersParameters.java:108)
at org.apache.camel.util.jsse.SSLContextParameters.createSSLContext(SSLContextParameters.java:296)
at org.apache.camel.component.http4.HttpComponent.createConnectionRegistry(HttpComponent.java:373)
at org.apache.camel.component.http4.HttpComponent.createConnectionManager(HttpComponent.java:343)
at org.apache.camel.component.http4.HttpComponent.createEndpoint(HttpComponent.java:273)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:711)
... 45 more
2020-02-26 20:55:19 INFO MainSupport$HangupInterceptor:87 - Received hang up - stopping the main instance.
Please let us know if this issue has been seen by anyone else and what the resolution was.
Thanks,
Manoj Kaithakottil
Platform Architect
[cid:image001.png@01D5A153.8DA58490]
1375 Enclave Parkway
Houston, TX 77077
Work: 713.580.7124
Cell: 281-948-4138
Help reduce your carbon footprint | Think before you print. This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Saksoft Group is personal to the sender and is not given or endorsed by the Saksoft Group. Any data that you provide within the context of your email you will have done so with your own consent and GDPR controls will be applied whilst the data is controlled or processed within the Saksoft Group.
Re: Issue accessing cert file in camel
Posted by Vikas Jaiswal <vi...@saksoft.com>.
I am using 2.24.3 and using .jks file for self signed certificate.it worked for me.
Regards,
Vikas
On 27-Feb-2020 2:28 am, "Kaithakottil, Manoj (GST)" <MK...@gstoyota.com> wrote:
CAUTION: DO NOT click links, open attachments, or provide sensitive information if the sender is unknown
We are facing the following error from camel trying to access the cacerts file we have defined in our camel-routes.xml file.
Section of code in camel-routes.xml:
<camel:sslContextParameters id="sslContextParameters">
<camel:keyManagers keyPassword="boomicamel">
<camel:keyStore resource="/etc/pki/ca-trust/extracted/java/cacerts" password="changeit" />
</camel:keyManagers>
</camel:sslContextParameters>
Error receiving from camel container:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: https4://boomi.gstoyota.com/ws/simple/executeReceivekafkamsg?bridgeEndpoint=true&sslContextParameters=%23sslContextParameters&throwExceptionOnFailure=false due to: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:562)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:523)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:239)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1300)
... 35 more
Caused by: java.io.IOException: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.util.jsse.JsseParameters.resolveResource(JsseParameters.java:188)
at org.apache.camel.util.jsse.KeyStoreParameters.createKeyStore(KeyStoreParameters.java:174)
at org.apache.camel.util.jsse.KeyManagersParameters.createKeyManagers(KeyManagersParameters.java:108)
at org.apache.camel.util.jsse.SSLContextParameters.createSSLContext(SSLContextParameters.java:296)
at org.apache.camel.component.http4.HttpComponent.createConnectionRegistry(HttpComponent.java:373)
at org.apache.camel.component.http4.HttpComponent.createConnectionManager(HttpComponent.java:343)
at org.apache.camel.component.http4.HttpComponent.createEndpoint(HttpComponent.java:273)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:711)
... 45 more
2020-02-26 20:55:19 INFO MainSupport$HangupInterceptor:87 - Received hang up - stopping the main instance.
Please let us know if this issue has been seen by anyone else and what the resolution was.
Thanks,
Manoj Kaithakottil
Platform Architect
[cid:image001.png@01D5A153.8DA58490]
1375 Enclave Parkway
Houston, TX 77077
Work: 713.580.7124
Cell: 281-948-4138
Help reduce your carbon footprint | Think before you print. This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Saksoft Group is personal to the sender and is not given or endorsed by the Saksoft Group. Any data that you provide within the context of your email you will have done so with your own consent and GDPR controls will be applied whilst the data is controlled or processed within the Saksoft Group.
RE: Issue accessing cert file in camel
Posted by "Kaithakottil, Manoj (GST)" <MK...@gstoyota.com>.
I am using Apache Camel 2.21.0.
-----Original Message-----
From: Andrea Cosentino <an...@yahoo.com.INVALID>
Sent: Wednesday, February 26, 2020 5:21 PM
To: users@camel.apache.org
Subject: R: Issue accessing cert file in camel
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Maybe report the version
Inviato da Yahoo Mail su Android
Il mer, 26 feb, 2020 alle 21:58, Kaithakottil, Manoj (GST)<MK...@gstoyota.com> ha scritto: <!--#yiv0642675503 _filtered {} _filtered {} _filtered {} _filtered {}#yiv0642675503 #yiv0642675503 p.yiv0642675503MsoNormal, #yiv0642675503 li.yiv0642675503MsoNormal, #yiv0642675503 div.yiv0642675503MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv0642675503 a:link, #yiv0642675503 span.yiv0642675503MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv0642675503 a:visited, #yiv0642675503 span.yiv0642675503MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv0642675503 span.yiv0642675503EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv0642675503 .yiv0642675503MsoChpDefault {font-family:"Calibri", sans-serif;} _filtered {}#yiv0642675503 div.yiv0642675503WordSection1 {}-->
We are facing the following error from camel trying to access the cacerts file we have defined in our camel-routes.xml file.
Section of code in camel-routes.xml:
<camel:sslContextParameters id="sslContextParameters">
<camel:keyManagers keyPassword="boomicamel">
<camel:keyStore resource="/etc/pki/ca-trust/extracted/java/cacerts" password="changeit" />
</camel:keyManagers>
</camel:sslContextParameters>
Error receiving from camel container:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: https4://boomi.gstoyota.com/ws/simple/executeReceivekafkamsg?bridgeEndpoint=true&sslContextParameters=%23sslContextParameters&throwExceptionOnFailure=false due to: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:562)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:523)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:239)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1300)
... 35 more
Caused by: java.io.IOException: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.util.jsse.JsseParameters.resolveResource(JsseParameters.java:188)
at org.apache.camel.util.jsse.KeyStoreParameters.createKeyStore(KeyStoreParameters.java:174)
at org.apache.camel.util.jsse.KeyManagersParameters.createKeyManagers(KeyManagersParameters.java:108)
at org.apache.camel.util.jsse.SSLContextParameters.createSSLContext(SSLContextParameters.java:296)
at org.apache.camel.component.http4.HttpComponent.createConnectionRegistry(HttpComponent.java:373)
at org.apache.camel.component.http4.HttpComponent.createConnectionManager(HttpComponent.java:343)
at org.apache.camel.component.http4.HttpComponent.createEndpoint(HttpComponent.java:273)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:711)
... 45 more
2020-02-26 20:55:19 INFO MainSupport$HangupInterceptor:87 - Received hang up - stopping the main instance.
Please let us know if this issue has been seen by anyone else and what the resolution was.
Thanks,
Manoj Kaithakottil
Platform Architect
1375 Enclave Parkway
Houston, TX 77077
Work: 713.580.7124
Cell: 281-948-4138
R: Issue accessing cert file in camel
Posted by Andrea Cosentino <an...@yahoo.com.INVALID>.
Maybe report the version
Inviato da Yahoo Mail su Android
Il mer, 26 feb, 2020 alle 21:58, Kaithakottil, Manoj (GST)<MK...@gstoyota.com> ha scritto: <!--#yiv0642675503 _filtered {} _filtered {} _filtered {} _filtered {}#yiv0642675503 #yiv0642675503 p.yiv0642675503MsoNormal, #yiv0642675503 li.yiv0642675503MsoNormal, #yiv0642675503 div.yiv0642675503MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv0642675503 a:link, #yiv0642675503 span.yiv0642675503MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv0642675503 a:visited, #yiv0642675503 span.yiv0642675503MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv0642675503 span.yiv0642675503EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv0642675503 .yiv0642675503MsoChpDefault {font-family:"Calibri", sans-serif;} _filtered {}#yiv0642675503 div.yiv0642675503WordSection1 {}-->
We are facing the following error from camel trying to access the cacerts file we have defined in our camel-routes.xml file.
Section of code in camel-routes.xml:
<camel:sslContextParameters id="sslContextParameters">
<camel:keyManagers keyPassword="boomicamel">
<camel:keyStore resource="/etc/pki/ca-trust/extracted/java/cacerts" password="changeit" />
</camel:keyManagers>
</camel:sslContextParameters>
Error receiving from camel container:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: https4://boomi.gstoyota.com/ws/simple/executeReceivekafkamsg?bridgeEndpoint=true&sslContextParameters=%23sslContextParameters&throwExceptionOnFailure=false due to: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121)
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:562)
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:523)
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:239)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1300)
... 35 more
Caused by: java.io.IOException: Could not open /etc/pki/ca-trust/extracted/java/cacerts as a file, class path resource, or URL.
at org.apache.camel.util.jsse.JsseParameters.resolveResource(JsseParameters.java:188)
at org.apache.camel.util.jsse.KeyStoreParameters.createKeyStore(KeyStoreParameters.java:174)
at org.apache.camel.util.jsse.KeyManagersParameters.createKeyManagers(KeyManagersParameters.java:108)
at org.apache.camel.util.jsse.SSLContextParameters.createSSLContext(SSLContextParameters.java:296)
at org.apache.camel.component.http4.HttpComponent.createConnectionRegistry(HttpComponent.java:373)
at org.apache.camel.component.http4.HttpComponent.createConnectionManager(HttpComponent.java:343)
at org.apache.camel.component.http4.HttpComponent.createEndpoint(HttpComponent.java:273)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:711)
... 45 more
2020-02-26 20:55:19 INFO MainSupport$HangupInterceptor:87 - Received hang up - stopping the main instance.
Please let us know if this issue has been seen by anyone else and what the resolution was.
Thanks,
Manoj Kaithakottil
Platform Architect
1375 Enclave Parkway
Houston, TX 77077
Work: 713.580.7124
Cell: 281-948-4138