Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsupportedOperationException on Android 5.1 after changes between v29.0.0 and v29.1.0 #1403

Open
ibartj opened this issue Dec 3, 2024 · 0 comments

Comments

@ibartj
Copy link

ibartj commented Dec 3, 2024

Describe the bug
An UnsupportedOperationException occurs on Android 5.1 after upgrading from version v29.0.0 to v29.1.0 of the library when processing payments through the terminal. The issue appears to be caused by the update of org.apache.httpcomponents.client5 from version 5.3.1 to 5.4.

How to reproduce

  • Use an Android 5.1 device (we are testing on Android 5.1.1).
  • Attempt to complete a payment transaction.
  • Observe that the payment fails, throwing the exception.

Expected behavior
The payment transaction should complete without any errors.

Stacktrace

java.lang.UnsupportedOperationException
	at javax.net.ssl.SSLSocket.shutdownOutput(SSLSocket.java:843)
	at org.apache.hc.core5.http.impl.io.BHttpConnectionBase.close(BHttpConnectionBase.java:252)
	at org.apache.hc.core5.http.impl.io.DefaultBHttpClientConnection.close(DefaultBHttpClientConnection.java:71)
	at org.apache.hc.client5.http.impl.io.DefaultManagedHttpClientConnection.close(DefaultManagedHttpClientConnection.java:176)
	at org.apache.hc.core5.pool.PoolEntry.discardConnection(PoolEntry.java:180)
	at org.apache.hc.core5.pool.StrictConnPool$PerRoutePool.shutdown(StrictConnPool.java:839)
	at org.apache.hc.core5.pool.StrictConnPool.close(StrictConnPool.java:142)
	at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.close(PoolingHttpClientConnectionManager.java:277)
	at org.apache.hc.client5.http.impl.classic.InternalHttpClient.close(InternalHttpClient.java:198)
	at org.apache.hc.client5.http.impl.classic.InternalHttpClient.close(InternalHttpClient.java:188)
	at com.adyen.httpclient.AdyenHttpClient.request(AdyenHttpClient.java:111)
	at com.adyen.service.resource.Resource.request(Resource.java:112)
	at com.adyen.service.resource.Resource.request(Resource.java:92)
	at com.adyen.service.resource.Resource.request(Resource.java:72)
	at com.adyen.service.TerminalLocalAPI.request(TerminalLocalAPI.java:67)
	at com.storyous.terminal.adyen.AdyenTerminal.paymentTransaction(AdyenTerminal.kt:66)

Additional context
Release with breaking changes
Diff of changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant