java.lang.NoClassDefFoundError: org/xwalk/core/internal/XWalkPresentationHost

JIRA | Iskandar Setiadi | 10 months ago
  1. 0

    Impacted Cases ============== Android application which utilizes Crosswalk 18 (18.48.477.*) in Android 4.0.3, specifically Arrow Z ISW13F, cannot be started. Reproduce Test Steps ==================== 1. Use `compile 'org.xwalk:xwalk_core_library_beta:18.48.477.1'` in gradle configuration and call `XWalkPreferences.setValue` in the Java class. 2. Open the application in the device Expected Outcome ================ The application should start properly. Actual Outcome ============== Link of class XWalkPresentationHost failed. The error log is as specified below: {code} 02-12 12:09:16.769 9849-9849/jp.co.hde.shobodroid D/dalvikvm: Trying to load lib /data/data/jp.co.hde.shobodroid/lib/libxwalkcore.so 0x417fb680 02-12 12:09:16.792 9849-9849/jp.co.hde.shobodroid D/dalvikvm: Added shared lib /data/data/jp.co.hde.shobodroid/lib/libxwalkcore.so 0x417fb680 02-12 12:09:16.809 9849-9849/jp.co.hde.shobodroid I/dalvikvm: Failed resolving Lorg/xwalk/core/internal/XWalkPresentationHost; interface 213 'Landroid/hardware/display/DisplayManager$DisplayListener;' 02-12 12:09:16.809 9849-9849/jp.co.hde.shobodroid W/dalvikvm: Link of class 'Lorg/xwalk/core/internal/XWalkPresentationHost;' failed 02-12 12:09:16.809 9849-9849/jp.co.hde.shobodroid W/System.err: java.lang.NoClassDefFoundError: org/xwalk/core/internal/XWalkPresentationHost 02-12 12:09:16.810 9849-9849/jp.co.hde.shobodroid W/System.err: at java.lang.Runtime.nativeLoad(Native Method) 02-12 12:09:16.810 9849-9849/jp.co.hde.shobodroid W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:368) 02-12 12:09:16.811 9849-9849/jp.co.hde.shobodroid W/System.err: at java.lang.System.loadLibrary(System.java:538) 02-12 12:09:16.811 9849-9849/jp.co.hde.shobodroid W/System.err: at org.xwalk.core.internal.XWalkViewDelegate.loadXWalkLibrary(XWalkViewDelegate.java:132) 02-12 12:09:16.811 9849-9849/jp.co.hde.shobodroid W/System.err: at java.lang.reflect.Method.invokeNative(Native Method) 02-12 12:09:16.811 9849-9849/jp.co.hde.shobodroid W/System.err: at java.lang.reflect.Method.invoke(Method.java:511) 02-12 12:09:16.812 9849-9849/jp.co.hde.shobodroid W/System.err: at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) 02-12 12:09:16.812 9849-9849/jp.co.hde.shobodroid W/System.err: at org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:373) 02-12 12:09:16.812 9849-9849/jp.co.hde.shobodroid W/System.err: at org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:233) 02-12 12:09:16.812 9849-9849/jp.co.hde.shobodroid W/System.err: at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:199) 02-12 12:09:16.813 9849-9849/jp.co.hde.shobodroid W/System.err: at org.xwalk.core.XWalkPreferences.reflectionInit(XWalkPreferences.java:213) 02-12 12:09:16.813 9849-9849/jp.co.hde.shobodroid W/System.err: at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:103) . . . [truncated] 02-12 12:09:16.816 9849-9849/jp.co.hde.shobodroid W/System.err: Caused by: java.lang.ClassNotFoundException: org.xwalk.core.internal.XWalkPresentationHost 02-12 12:09:16.817 9849-9849/jp.co.hde.shobodroid W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) 02-12 12:09:16.817 9849-9849/jp.co.hde.shobodroid W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:501) 02-12 12:09:16.818 9849-9849/jp.co.hde.shobodroid W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:461) 02-12 12:09:16.818 9849-9849/jp.co.hde.shobodroid W/System.err: ... 25 more 02-12 12:09:16.825 9849-9849/jp.co.hde.shobodroid A/chromium: [0212/120916:FATAL:jni_android.cc(138)] Check failed: !ClearException(env) && clazz. Failed to find class org/xwalk/core/internal/XWalkPresentationHost 02-12 12:09:16.826 9849-9849/jp.co.hde.shobodroid A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1) {code} Issue Analysis ============== Crosswalk 18 can be started properly in Android 6.0 (Nexus 5 device). I've tried to use Crosswalk 16.45.421.19, Crosswalk 17.46.448.8, and Crosswalk 18.48.477.* at both devices. It can be summarized as the following: ||Crosswalk Version||Device||Android Version||Status| |16.45.421.19|Arrow Z ISW13F|4.0.3|{color:green}Pass{color}| |16.45.421.19|Nexus 5|6.0.1|{color:green}Pass{color}| |17.46.448.8|Arrow Z ISW13F|4.0.3|{color:green}Pass{color}| |17.46.448.8|Nexus 5|6.0.1|{color:green}Pass{color}| |18.48.477.*|Arrow Z ISW13F|4.0.3|{color:red}Fail{color}| |18.48.477.*|Nexus 5|6.0.1|{color:green}Pass{color}| I've tried to remove all cached data (.idea, .gradle, bin directory) and rebuilt my application, but the problem still persists. Any suggestion or idea? Thank you.

    JIRA | 10 months ago | Iskandar Setiadi
    java.lang.NoClassDefFoundError: org/xwalk/core/internal/XWalkPresentationHost
  2. 0

    Android - Package defined but error shown for ClassNotFoundException

    Stack Overflow | 4 years ago | user2405222
    java.lang.NoClassDefFoundError: com.motorolasolutions.adc.decoder.BarCodeReader
  3. 0

    Java cryptography library sporadically fails to start

    Stack Overflow | 7 years ago | Jonoabroad
    java.lang.NoClassDefFoundError: Could not initialize class com.apple.crypto.provider.HmacMD5
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Using Qt/C++ to call Java code through JNI. FindClass does not find class

    Stack Overflow | 3 years ago | Phataas
    java.lang.NoClassDefFoundError: org/app/test/JniMath
  6. 0

    Android app not being able to find an external library and R file

    Stack Overflow | 2 years ago | user3258723
    java.lang.NoClassDefFoundError: org/xwalk/core/AndroidProto colHandler

    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.NoClassDefFoundError

      org/xwalk/core/internal/XWalkPresentationHost

      at java.lang.Runtime.nativeLoad()
    2. Java RT
      System.loadLibrary
      1. java.lang.Runtime.nativeLoad(Native Method)
      2. java.lang.Runtime.loadLibrary(Runtime.java:368)
      3. java.lang.System.loadLibrary(System.java:538)
      3 frames
    3. org.xwalk.core
      XWalkViewDelegate.loadXWalkLibrary
      1. org.xwalk.core.internal.XWalkViewDelegate.loadXWalkLibrary(XWalkViewDelegate.java:132)
      1 frame
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    5. org.xwalk.core
      XWalkPreferences.setValue
      1. org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
      2. org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:373)
      3. org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:233)
      4. org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:199)
      5. org.xwalk.core.XWalkPreferences.reflectionInit(XWalkPreferences.java:213)
      6. org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:103)
      6 frames