Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25845

Android: Non-production app builds with modules crash on startup if TLS 1.1 or higher is required for Internet access

    Details

    • Story Points:
      13
    • Sprint:
      2018 Sprint 09 SDK, 2018 Sprint 10 SDK, 2018 Sprint 11 SDK, 2018 Sprint 12 SDK, 2018 Sprint 13 SDK, 2018 Sprint 14 SDK, 2018 Sprint 15 SDK, 2018 Sprint 16 SDK, 2016 Sprint 17 SDK, 2018 Sprint 18 SDK, 2018 Sprint 19 SDK, 2018 Sprint 20 SDK, 2018 Sprint 21, 2018 Sprint 22

      Description

      Related to https://jira.appcelerator.org/browse/TIMOB-20579

      When being connected to a hotspot network, without being logged in into the hotspot (and without having internet connection), I'm not able to open the app, I get following error log:

      It's just a normal Appcelerator Titanium app, containing the ti.brightness module. That's might not be the issue, as the error stack shows that it goes wrong when performing network calls.

      Android 7 on Samsung Galaxy S8

      [WARN]  TiVerify: (Timer-0) [4934,4998] Verifying module licenses...
      [INFO]  I/System.out: Thread-360(ApacheHTTPLog):Reading from variable values from setDefaultValuesToVariables
      [INFO]  I/System.out: Thread-360(ApacheHTTPLog):isSBSettingEnabled false
      [INFO]  I/System.out: Thread-360(ApacheHTTPLog):isShipBuild true
      [INFO]  I/System.out: Thread-360(ApacheHTTPLog):getDebugLevel 0x4f4c
      [INFO]  I/System.out: Thread-360(ApacheHTTPLog):Smart Bonding Setting is false
      [INFO]  I/System.out: Thread-360(ApacheHTTPLog):SmartBonding Setting is false, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1
      [INFO]  I/System.out: Timer-0 calls detatch()
      [INFO]  I/InputDispatcher( 3740): Delivering touch to : action: 0x1, toolType: 1
      [ERROR] TiApplication: (Timer-0) [106,5104] Sending event: exception on thread: Timer-0 msg:java.lang.IncompatibleClassChangeError: Class 'ti.modules.titanium.network.NonValidatingSSLSocketFactory' does not implement interface 'org.apache.http.conn.scheme.SocketFactory' in call to 'java.net.Socket org.apache.http.conn.scheme.SocketFactory.createSocket()' (declaration of 'org.apache.http.impl.conn.DefaultClientConnectionOperator' appears in /system/framework/org.apache.http.legacy.boot.jar); Titanium 6.3.0,2017/10/31 18:13,undefined
      [ERROR] TiApplication: java.lang.IncompatibleClassChangeError: Class 'ti.modules.titanium.network.NonValidatingSSLSocketFactory' does not implement interface 'org.apache.http.conn.scheme.SocketFactory' in call to 'java.net.Socket org.apache.http.conn.scheme.SocketFactory.createSocket()' (declaration of 'org.apache.http.impl.conn.DefaultClientConnectionOperator' appears in /system/framework/org.apache.http.legacy.boot.jar)
      [ERROR] TiApplication: 	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:189)
      [ERROR] TiApplication: 	at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:172)
      [ERROR] TiApplication: 	at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:130)
      [ERROR] TiApplication: 	at org.apache.http.impl.client.DefaultRequestDirector.executeOriginal(DefaultRequestDirector.java:1334)
      [ERROR] TiApplication: 	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:700)
      [ERROR] TiApplication: 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)
      [ERROR] TiApplication: 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:514)
      [ERROR] TiApplication: 	at org.appcelerator.titanium.TiVerify.run(Unknown Source)
      [ERROR] TiApplication: 	at java.util.TimerThread.mainLoop(Timer.java:555)
      [ERROR] TiApplication: 	at java.util.TimerThread.run(Timer.java:505)
      [INFO]  I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
      [INFO]  I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
      [ERROR] TiHTTPClient: (TiHttpClient-1) [70,5174] HTTP Error (java.net.NoRouteToHostException): No route to host
      [ERROR] TiHTTPClient: java.net.NoRouteToHostException: No route to host
      [ERROR] TiHTTPClient: 	at java.net.PlainSocketImpl.socketConnect(Native Method)
      [ERROR] TiHTTPClient: 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334)
      [ERROR] TiHTTPClient: 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:196)
      [ERROR] TiHTTPClient: 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
      [ERROR] TiHTTPClient: 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
      [ERROR] TiHTTPClient: 	at java.net.Socket.connect(Socket.java:586)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.internal.Platform.connectSocket(Platform.java:113)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.Connection.connectSocket(Connection.java:1455)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.Connection.connect(Connection.java:1413)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:1700)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:133)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:466)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:371)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:503)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:130)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:261)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
      [ERROR] TiHTTPClient: 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
      [ERROR] TiHTTPClient: 	at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1195)
      [ERROR] TiHTTPClient: 	at java.lang.Thread.run(Thread.java:762)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jvos Joren Vos
                Reviewer:
                Gary Mathews
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6235
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code