---
# System prepended metadata

title: Betradar SDK Exceptions

---

Betradar SDK Exceptions
======================

1.  RabbitMQ Channel shutdown
WARN [com.sportradar.unifiedodds.sdk.impl.RecoveryManagerImpl] - Channel disconnect detected. Cause:
com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.ShutdownSignalException: connection error
at com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.impl.AMQConnection.startShutdown(AMQConnection.java:739)
at com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.impl.AMQConnection.shutdown(AMQConnection.java:729)
at com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:573)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1533)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:95)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288)
at com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.impl.Frame.readFrom(Frame.java:95)
at com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:139)
at com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:538)



2. SSLException
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1903)
at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1867)
at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1812)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:128)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.DataOutputStream.flush(DataOutputStream.java:123)
at com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.impl.SocketFrameHandler.flush(SocketFrameHandler.java:150)
at com.sportradar.unifiedodds.sdk.shaded.rabbitmq.client.impl.HeartbeatSender$HeartbeatRunnable.run(HeartbeatSender.java:140)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

3. Socket Exception
Caused by: java.net.SocketException: Connection reset
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:115)
at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)
at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)
at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:879)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:850)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)



5. Recovery error
WARN [com.sportradar.unifiedodds.sdk.impl.RecoveryManagerImpl] - An exception occurred while requesting recovery request for Producer[3 Ctrl], ex:
com.sportradar.unifiedodds.sdk.exceptions.internal.CommunicationException: Problems executing POST: https://stgapi.betradar.com/v1/pre/recovery/initiate_request?node_id=1\u0026request_id=5932
at com.sportradar.unifiedodds.sdk.impl.apireaders.HttpHelper.post(HttpHelper.java:55)
at com.sportradar.unifiedodds.sdk.impl.RecoveryManagerImpl$ProducerRecoveryRequester.run(RecoveryManagerImpl.java:778)
at com.sportradar.unifiedodds.sdk.impl.util.MdcScheduledExecutorService.lambda$setMDCContext$1(MdcScheduledExecutorService.java:470)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)


6. No Response Exception
Caused by: com.sportradar.unifiedodds.sdk.shaded.apache.http.NoHttpResponseException: stgapi.betradar.com:443 failed to respond
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at com.sportradar.unifiedodds.sdk.impl.apireaders.HttpHelper.executeRequest(HttpHelper.java:93)


7. Fail to recovery
WARN [com.sportradar.unifiedodds.sdk.impl.RecoveryManagerImpl] - Failed to request recovery for Producer[3 Ctrl], message: Exception: Problems executing POST: https://stgapi.betradar.com/v1/pre/recovery/initiate_request?node_id=1\u0026request_id=5932

8. Http 502
java.io.IOException: Server returned HTTP response code: 502 for URL: https://stgapi.betradar.com/v1/sports/zh/competitors/sr:competitor:23957/profile.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
at com.sportradar.unifiedodds.Static.GetStaticProfile.ProcessXMLGET(GetStaticProfile.java:114)
at com.sportradar.unifiedodds.Static.GetStaticProfile.ProcessPlayers(GetStaticProfile.java:218)
at com.sportradar.unifiedodds.Static.GetStaticProfile.ProcessCompetitors(GetStaticProfile.java:424)
at com.sportradar.unifiedodds.Static.GetStaticProfile.ProcessStatic(GetStaticProfile.java:167)
at com.sportradar.unifiedodds.Static.GetStaticProfile.Execute(GetStaticProfile.java:78)
at com.sportradar.unifiedodds.Static.GetStaticProfile$1.run(GetStaticProfile.java:66)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

9. Retry Excute Error
Oct 30, 2019 11:28:15 AM com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (com.sportradar.unifiedodds.sdk.shaded.apache.http.NoHttpResponseException) caught when processing request to {s}-\u003ehttps://stgapi.betradar.com:443: The target server failed to respond
Oct 30, 2019 11:28:15 AM com.sportradar.unifiedodds.sdk.shaded.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {s}-\u003ehttps://stgapi.betradar.com:443

10. process more than 1 second
WARN [com.sportradar.unifiedodds.sdk.impl.RecoveryManagerImpl] - Client took more than 1 second to process a message. (3.381 seconds)
