<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Connection reset error when MLE response is enabled in create payment Call in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Connection-reset-error-when-MLE-response-is-enabled-in-create/m-p/95048#M4153</link>
    <description>&lt;H3&gt;Description&lt;/H3&gt;&lt;P&gt;While verifying&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Message Level Encryption (MLE)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;integration using this SDK together with the official sample repo&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cybersource-rest-samples-java&lt;/STRONG&gt;, I encountered a Connection reset exception&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;only when MLE response encryption is enabled&lt;/STRONG&gt;.&lt;BR /&gt;The same sample works fine when:&lt;/P&gt;&lt;P&gt;MLE is enabled for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;request only&lt;/STRONG&gt;, or&lt;BR /&gt;MLE is disabled entirely.&lt;/P&gt;&lt;P&gt;Enabling&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;both request and response MLE&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;consistently results in a socket connection reset during the payment API (pts/v2/payments) call.&lt;/P&gt;&lt;H3&gt;Environment&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;SDK&lt;/STRONG&gt;: This repository (latest which is version 0.087 at this moment)&lt;BR /&gt;&lt;STRONG&gt;Samples repo&lt;/STRONG&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-java" target="_blank" rel="noopener"&gt;https://github.com/CyberSource/cybersource-rest-samples-java&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(latest that uses this SDK ver 0.087)&lt;BR /&gt;&lt;STRONG&gt;Sample used&lt;/STRONG&gt;: samples/MLEFeature/PaymentsWithMLE.java&lt;BR /&gt;&lt;STRONG&gt;Java version&lt;/STRONG&gt;: Java 8&lt;BR /&gt;&lt;STRONG&gt;OS&lt;/STRONG&gt;: Linux&lt;/P&gt;&lt;H3&gt;Steps to Reproduce&lt;/H3&gt;&lt;P&gt;Clone the sample repository:&lt;BR /&gt;git clone&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-java" target="_blank" rel="noopener"&gt;https://github.com/CyberSource/cybersource-rest-samples-java&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Open the sample:&lt;BR /&gt;samples/MLEFeature/PaymentsWithMLE.java&lt;/P&gt;&lt;P&gt;Modify the merchant configuration to enable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;request and response MLE&lt;/STRONG&gt;:&lt;BR /&gt;&lt;STRONG&gt;Change (around line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://github.com/CyberSource/cybersource-rest-client-java/pull/84" target="_blank" rel="noopener"&gt;#84&lt;/A&gt;)&lt;/STRONG&gt;:&lt;BR /&gt;merchantProp = ConfigurationWithMLE.getMerchantDetailsWithMLE1();&lt;BR /&gt;To:&lt;BR /&gt;merchantProp = ConfigurationWithMLE.getMerchantDetailsWithRequestAndResponseMLE1();&lt;/P&gt;&lt;P&gt;Run:&lt;BR /&gt;PaymentsWithMLE.java&lt;/P&gt;&lt;H3&gt;Expected Behavior&lt;/H3&gt;&lt;P&gt;The payment request should complete successfully when&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;MLE response encryption is enabled&lt;/STRONG&gt;, just as it does when only request MLE is enabled.&lt;/P&gt;&lt;H3&gt;Actual Behavior&lt;/H3&gt;&lt;P&gt;The request fails with a Connection reset error:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;Invokers.ApiException: java.net.SocketException: Connection reset
	at Invokers.ApiClient.execute(ApiClient.java:1117)
	at Api.PaymentsApi.createPaymentWithHttpInfo(PaymentsApi.java:348)
	at Api.PaymentsApi.createPayment(PaymentsApi.java:331)
	at samples.MLEFeature.PaymentsWithMLE.run(PaymentsWithMLE.java:90)
	at samples.MLEFeature.PaymentsWithMLE.main(PaymentsWithMLE.java:34)
Caused by: java.net.SocketException: Connection reset
	at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:318)
	at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)&lt;/PRE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;Additional Notes&lt;/H3&gt;&lt;P&gt;The failure happens only when response MLE is enabled.&lt;BR /&gt;The same credentials and configuration work correctly when response MLE is disabled.&lt;BR /&gt;This appears to occur before a valid HTTP response is received (connection reset at socket level).&lt;/P&gt;&lt;H3&gt;Questions / Help Requested&lt;/H3&gt;&lt;P&gt;Is response MLE currently supported for the Payments API in this SDK?&lt;BR /&gt;Are there additional configuration steps required for enabling response MLE?&lt;BR /&gt;Is this a known issue or regression?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2026 23:30:30 GMT</pubDate>
    <dc:creator>riccoon</dc:creator>
    <dc:date>2026-04-02T23:30:30Z</dc:date>
    <item>
      <title>Connection reset error when MLE response is enabled in create payment Call</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Connection-reset-error-when-MLE-response-is-enabled-in-create/m-p/95048#M4153</link>
      <description>&lt;H3&gt;Description&lt;/H3&gt;&lt;P&gt;While verifying&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Message Level Encryption (MLE)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;integration using this SDK together with the official sample repo&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cybersource-rest-samples-java&lt;/STRONG&gt;, I encountered a Connection reset exception&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;only when MLE response encryption is enabled&lt;/STRONG&gt;.&lt;BR /&gt;The same sample works fine when:&lt;/P&gt;&lt;P&gt;MLE is enabled for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;request only&lt;/STRONG&gt;, or&lt;BR /&gt;MLE is disabled entirely.&lt;/P&gt;&lt;P&gt;Enabling&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;both request and response MLE&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;consistently results in a socket connection reset during the payment API (pts/v2/payments) call.&lt;/P&gt;&lt;H3&gt;Environment&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;SDK&lt;/STRONG&gt;: This repository (latest which is version 0.087 at this moment)&lt;BR /&gt;&lt;STRONG&gt;Samples repo&lt;/STRONG&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-java" target="_blank" rel="noopener"&gt;https://github.com/CyberSource/cybersource-rest-samples-java&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(latest that uses this SDK ver 0.087)&lt;BR /&gt;&lt;STRONG&gt;Sample used&lt;/STRONG&gt;: samples/MLEFeature/PaymentsWithMLE.java&lt;BR /&gt;&lt;STRONG&gt;Java version&lt;/STRONG&gt;: Java 8&lt;BR /&gt;&lt;STRONG&gt;OS&lt;/STRONG&gt;: Linux&lt;/P&gt;&lt;H3&gt;Steps to Reproduce&lt;/H3&gt;&lt;P&gt;Clone the sample repository:&lt;BR /&gt;git clone&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-java" target="_blank" rel="noopener"&gt;https://github.com/CyberSource/cybersource-rest-samples-java&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Open the sample:&lt;BR /&gt;samples/MLEFeature/PaymentsWithMLE.java&lt;/P&gt;&lt;P&gt;Modify the merchant configuration to enable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;request and response MLE&lt;/STRONG&gt;:&lt;BR /&gt;&lt;STRONG&gt;Change (around line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://github.com/CyberSource/cybersource-rest-client-java/pull/84" target="_blank" rel="noopener"&gt;#84&lt;/A&gt;)&lt;/STRONG&gt;:&lt;BR /&gt;merchantProp = ConfigurationWithMLE.getMerchantDetailsWithMLE1();&lt;BR /&gt;To:&lt;BR /&gt;merchantProp = ConfigurationWithMLE.getMerchantDetailsWithRequestAndResponseMLE1();&lt;/P&gt;&lt;P&gt;Run:&lt;BR /&gt;PaymentsWithMLE.java&lt;/P&gt;&lt;H3&gt;Expected Behavior&lt;/H3&gt;&lt;P&gt;The payment request should complete successfully when&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;MLE response encryption is enabled&lt;/STRONG&gt;, just as it does when only request MLE is enabled.&lt;/P&gt;&lt;H3&gt;Actual Behavior&lt;/H3&gt;&lt;P&gt;The request fails with a Connection reset error:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;Invokers.ApiException: java.net.SocketException: Connection reset
	at Invokers.ApiClient.execute(ApiClient.java:1117)
	at Api.PaymentsApi.createPaymentWithHttpInfo(PaymentsApi.java:348)
	at Api.PaymentsApi.createPayment(PaymentsApi.java:331)
	at samples.MLEFeature.PaymentsWithMLE.run(PaymentsWithMLE.java:90)
	at samples.MLEFeature.PaymentsWithMLE.main(PaymentsWithMLE.java:34)
Caused by: java.net.SocketException: Connection reset
	at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:318)
	at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)&lt;/PRE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;Additional Notes&lt;/H3&gt;&lt;P&gt;The failure happens only when response MLE is enabled.&lt;BR /&gt;The same credentials and configuration work correctly when response MLE is disabled.&lt;BR /&gt;This appears to occur before a valid HTTP response is received (connection reset at socket level).&lt;/P&gt;&lt;H3&gt;Questions / Help Requested&lt;/H3&gt;&lt;P&gt;Is response MLE currently supported for the Payments API in this SDK?&lt;BR /&gt;Are there additional configuration steps required for enabling response MLE?&lt;BR /&gt;Is this a known issue or regression?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 23:30:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/Connection-reset-error-when-MLE-response-is-enabled-in-create/m-p/95048#M4153</guid>
      <dc:creator>riccoon</dc:creator>
      <dc:date>2026-04-02T23:30:30Z</dc:date>
    </item>
  </channel>
</rss>

