AnsweredAssumed Answered

avax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl=0xd66be0c8: I/O error during system call, Connection reset by peer

Question asked by crazylegend on Jan 8, 2020
Latest reply on Jan 13, 2020 by crazylegend

2020-01-08 12:47:41.376 15539-15539/mk.com.ins.onegis D/ExploreFragment: LOAD STATUS FAILED_TO_LOAD 3 com.esri.arcgisruntime.ArcGISRuntimeException: Check getCause() for further error information.
2020-01-08 12:47:41.376 15539-15539/mk.com.ins.onegis W/System.err: javax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl=0xd66be0c8: I/O error during system call, Connection reset by peer
2020-01-08 12:47:41.377 15539-15539/mk.com.ins.onegis W/System.err: at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
2020-01-08 12:47:41.377 15539-15539/mk.com.ins.onegis W/System.err: at com.android.org.conscrypt.NativeSsl.doHandshake(NativeSsl.java:375)
2020-01-08 12:47:41.377 15539-15539/mk.com.ins.onegis W/System.err: at com.android.org.conscrypt.ConscryptFileDescriptorSocket.startHandshake(ConscryptFileDescriptorSocket.java:224)
2020-01-08 12:47:41.377 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.e.c.f.a(SourceFile:460)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.e.c.f.a(SourceFile:391)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.c.e.a(SourceFile:142)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.c.p.a(SourceFile:374)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.f.e.a(SourceFile:393)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.f.e.a(SourceFile:236)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.b.a.p.b(SourceFile:592)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.b.a.p.c(SourceFile:356)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.b.a.p.a(SourceFile:275)
2020-01-08 12:47:41.378 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.f.f.a(SourceFile:186)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.f.g.a(SourceFile:110)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.b.n.a(SourceFile:185)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.b.e.b(SourceFile:83)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.d.i.b.e.a(SourceFile:56)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.e.a.d.a(SourceFile:216)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.e.a.a.k.a(SourceFile:61)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.e.a.a.c.a(SourceFile:500)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.e.a.a.c.i(SourceFile:462)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.e.a.a.p.a(SourceFile:65)
2020-01-08 12:47:41.379 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.e.a.a.p.d(SourceFile:33)
2020-01-08 12:47:41.380 15539-15539/mk.com.ins.onegis W/System.err: at com.esri.arcgisruntime.internal.e.a.a.c$1.call(SourceFile:145)
2020-01-08 12:47:41.380 15539-15539/mk.com.ins.onegis W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2020-01-08 12:47:41.380 15539-15539/mk.com.ins.onegis W/System.err: at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
2020-01-08 12:47:41.380 15539-15539/mk.com.ins.onegis W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
2020-01-08 12:47:41.380 15539-15539/mk.com.ins.onegis W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2020-01-08 12:47:41.380 15539-15539/mk.com.ins.onegis W/System.err: at java.lang.Thread.run(Thread.java:784)

 

 

In my manifest I have 

<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<uses-permission android:name="android.permission.INTERNET" />
//arcgis
implementation 'com.esri.arcgisruntime:arcgis-android:100.7.0'
implementation 'com.esri.arcgisruntime:arcgis-android-toolkit:100.6.0'
minSdkVersion 21
targetSdkVersion 29
versionCode 1

Code where it breaks

 

val basemapType = Basemap.Type.STREETS_VECTOR
val latitude = 42.002
val longitude = 21.42
val levelOfDetail = 11
val map = ArcGISMap(basemapType, latitude, longitude, levelOfDetail)
mapView?.map = map
callout = mapView?.callout

map.addLoadStatusChangedListener {
    debug("LOAD STATUS ${it.newLoadStatus.name} ${it.newLoadStatus.ordinal} ${map.loadError}")
    map.loadError.cause?.printStackTrace()
}

It worked perfectly the previous week, now it doesn't!

Outcomes