java.lang.ClassNotFoundException: ti.modules.titanium.network.NonValidatingSSLSocketFactory

Appcelerator JIRA | Lokesh Choudhary | 1 year ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
  2. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  3. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.
  6. 0

    h5.Steps to reproduce: 1. Create a defaut alloy or clasic app. Make sure you have services enabled. 2. Using the components & SDK in the description build for android device/emulator. 3. Let the app launch. h5.Actual Results: 1. The app crashes 2-3 seconds after launch with error: {code} [WARN] : TiVerify: (Timer-0) [5003,5003] Verifying module licenses... [ERROR] : TiApplication: (Timer-0) [4,5007] Sending event: exception on thread: Timer-0 msg:java.lang.NoClassDefFoundError: Failed resolution of: Lti/modules/titanium/network/NonValidatingSSLSocketFactory;; Titanium 4.0.1,2016/03/08 10:35,72e9f11 [ERROR] : TiApplication: java.lang.NoClassDefFoundError: Failed resolution of: Lti/modules/titanium/network/NonValidatingSSLSocketFactory; [ERROR] : TiApplication: at org.appcelerator.titanium.TiVerify.run(Unknown Source) [ERROR] : TiApplication: at java.util.Timer$TimerImpl.run(Timer.java:284) [ERROR] : TiApplication: Caused by: java.lang.ClassNotFoundException: Didn't find class "ti.modules.titanium.network.NonValidatingSSLSocketFactory" on path: DexPathList[[zip file "/data/app/com.app.theefivetwoclassic-2/base.apk"],nativeLibraryDirectories=[/data/app/com.app.theefivetwoclassic-2/lib/arm, /vendor/lib, /system/lib]] [ERROR] : TiApplication: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) [ERROR] : TiApplication: at java.lang.ClassLoader.loadClass(ClassLoader.java:511) [ERROR] : TiApplication: at java.lang.ClassLoader.loadClass(ClassLoader.java:469) [ERROR] : TiApplication: ... 2 more [ERROR] : TiApplication: Suppressed: java.lang.ClassNotFoundException: ti.modules.titanium.network.NonValidatingSSLSocketFactory [ERROR] : TiApplication: at java.lang.Class.classForName(Native Method) [ERROR] : TiApplication: at java.lang.BootClassLoader.findClass(ClassLoader.java:781) [ERROR] : TiApplication: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) [ERROR] : TiApplication: at java.lang.ClassLoader.loadClass(ClassLoader.java:504) [ERROR] : TiApplication: ... 3 more [ERROR] : TiApplication: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available {code} 2. This might be due to the fact that the "NonValidatingSSLSocketFactory" class is removed as a part of the google security fix. 3. When built with SDK 3.5.1.GA & 4.0.0.GA this issue is not seen. h5.Expected Results: 1. The app should not crash.

    Appcelerator JIRA | 1 year ago | Lokesh Choudhary
    java.lang.ClassNotFoundException: ti.modules.titanium.network.NonValidatingSSLSocketFactory

  1. andyglick 2 times, last 2 weeks ago
  2. rp 1 times, last 2 weeks ago
  3. Andreas Häber 3 times, last 2 weeks ago
  4. tvrmsmith 1 times, last 2 weeks ago
  5. iferca 1 times, last 3 weeks ago
68 more registered users
27 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    ti.modules.titanium.network.NonValidatingSSLSocketFactory

    at java.lang.Class.classForName()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.Class.classForName(Native Method)
    2. java.lang.BootClassLoader.findClass(ClassLoader.java:781)
    3. java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    4 frames