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!
Hristijan,
I tied your workflow on my Nexus 6 which is on 7.1.1. The street vector basemap displayed properly. No exception was thrown.
Generally, SSLHandshakeException is thrown when accessing a server with self-signed certificate which is not trusted by your app/device. Is the street vector basemap the only layer added to your map? What device did you use?
thanks.
I haven't used anything else, that's the code.
Used on Android 10 version on an emulator Pixel 3A provided by Android studio.
It worked the previous week, I haven't wrote a single line of code changing anything, now it doesn't work.
It fails where that print trace is.
I just tried on Pixel 3a emulator. The street vector basemap was displayed. Is there a proxy or firewall in your environment?
Just tried it at home, seems like it works, sorry.
Thanks for all your help.
It looks like you have to update your SSL certificate, using
http://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer?f=json
works fine but
https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer?f=json
It doesn't ... therefore that's why we're getting the SSL exception.