junit.framework.AssertionFailedError: Must use or extend XWalkApplication

JIRA | Hirbod | 2 years ago
  1. 0

    I've just got some crash reports at google play from users with Device: lifetab_s1034x Android: 4.4 I can't reproduce this bug nor how to fix it. It seems to be related to Xwalk. I'm using the canaray version 14.42.329.0 [Link|https://download.01.org/crosswalk/releases/crosswalk/android/canary/14.42.329.0/] (maybe this is the main problem, but I have to, cause I need that new transparency feature) Is this something known? Do you know, how to fix this? Or is this maybe fixed in some newer canaray versions? Thank you very much! junit.framework.AssertionFailedError: Must use or extend XWalkApplication at junit.framework.Assert.fail(Assert.java:50) at org.xwalk.core.XWalkCoreWrapper.findSharedCore(XWalkCoreWrapper.java:146) at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:58) at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:51) at org.xwalk.core.XWalkActivity.onStart(XWalkActivity.java:84) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171) at android.app.Activity.performStart(Activity.java:5241) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2273) at android.app.ActivityThread.access$800(ActivityThread.java:138) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1236) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:149) at android.app.ActivityThread.main(ActivityThread.java:5045) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610) at dalvik.system.NativeStart.main(Native Method)

    JIRA | 2 years ago | Hirbod
    junit.framework.AssertionFailedError: Must use or extend XWalkApplication
  2. 0

    I've just got some crash reports at google play from users with Device: lifetab_s1034x Android: 4.4 I can't reproduce this bug nor how to fix it. It seems to be related to Xwalk. I'm using the canaray version 14.42.329.0 [Link|https://download.01.org/crosswalk/releases/crosswalk/android/canary/14.42.329.0/] (maybe this is the main problem, but I have to, cause I need that new transparency feature) Is this something known? Do you know, how to fix this? Or is this maybe fixed in some newer canaray versions? Thank you very much! junit.framework.AssertionFailedError: Must use or extend XWalkApplication at junit.framework.Assert.fail(Assert.java:50) at org.xwalk.core.XWalkCoreWrapper.findSharedCore(XWalkCoreWrapper.java:146) at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:58) at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:51) at org.xwalk.core.XWalkActivity.onStart(XWalkActivity.java:84) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171) at android.app.Activity.performStart(Activity.java:5241) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2273) at android.app.ActivityThread.access$800(ActivityThread.java:138) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1236) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:149) at android.app.ActivityThread.main(ActivityThread.java:5045) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610) at dalvik.system.NativeStart.main(Native Method)

    JIRA | 2 years ago | Hirbod
    junit.framework.AssertionFailedError: Must use or extend XWalkApplication
  3. 0

    Reproduce Test Steps ========================================================================= 1. Download the 'crosswalk-cordova-14.42.328.0-arm.zip'(https://download.01.org/crosswalk/releases/crosswalk/android/canary/14.42.328.0/arm/crosswalk-cordova-14.42.328.0-arm.zip) 2. Create mobilespec app with shared mode via command: pack_cordova_sample.py -n mobilespec --cordova-version 3.6 -m shared (https://github.com/crosswalk-project/crosswalk-test-suite/tree/master/tools/build/pack_cordova_sample.py) 3. Install and launch mobilespec, check the behavior Actual Outcome ========================================================================= Mobilespec crash immediately Test Builds ========================================================================= ||Version||Test Date|| Test Device || Result || |Canary 14.42.328.0 | 2015.04.14 | Nexus 5 ARM |{color: red}Fail{color}| Log Info ========================================================================= {code} 04-14 15:31:45.865: E/AndroidRuntime(32261): FATAL EXCEPTION: main 04-14 15:31:45.865: E/AndroidRuntime(32261): Process: org.apache.mobilespec, PID: 32261 04-14 15:31:45.865: E/AndroidRuntime(32261): junit.framework.AssertionFailedError: Must use or extend XWalkApplication 04-14 15:31:45.865: E/AndroidRuntime(32261): at junit.framework.Assert.fail(Assert.java:50) 04-14 15:31:45.865: E/AndroidRuntime(32261): at org.xwalk.core.XWalkCoreWrapper.findSharedCore(XWalkCoreWrapper.java:146) 04-14 15:31:45.865: E/AndroidRuntime(32261): at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:58) 04-14 15:31:45.865: E/AndroidRuntime(32261): at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:51) 04-14 15:31:45.865: E/AndroidRuntime(32261): at org.xwalk.core.XWalkActivity.onStart(XWalkActivity.java:84) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.Activity.performStart(Activity.java:5241) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2157) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread.access$800(ActivityThread.java:135) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.os.Handler.dispatchMessage(Handler.java:102) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.os.Looper.loop(Looper.java:136) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread.main(ActivityThread.java:5001) 04-14 15:31:45.865: E/AndroidRuntime(32261): at java.lang.reflect.Method.invoke(Native Method) 04-14 15:31:45.865: E/AndroidRuntime(32261): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 04-14 15:31:45.865: E/AndroidRuntime(32261): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) {code}

    JIRA | 2 years ago | lvyunxiao
    junit.framework.AssertionFailedError: Must use or extend XWalkApplication
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Reproduce Test Steps ========================================================================= 1. Download the 'crosswalk-cordova-14.42.328.0-arm.zip'(https://download.01.org/crosswalk/releases/crosswalk/android/canary/14.42.328.0/arm/crosswalk-cordova-14.42.328.0-arm.zip) 2. Create mobilespec app with shared mode via command: pack_cordova_sample.py -n mobilespec --cordova-version 3.6 -m shared (https://github.com/crosswalk-project/crosswalk-test-suite/tree/master/tools/build/pack_cordova_sample.py) 3. Install and launch mobilespec, check the behavior Actual Outcome ========================================================================= Mobilespec crash immediately Test Builds ========================================================================= ||Version||Test Date|| Test Device || Result || |Canary 14.42.328.0 | 2015.04.14 | Nexus 5 ARM |{color: red}Fail{color}| Log Info ========================================================================= {code} 04-14 15:31:45.865: E/AndroidRuntime(32261): FATAL EXCEPTION: main 04-14 15:31:45.865: E/AndroidRuntime(32261): Process: org.apache.mobilespec, PID: 32261 04-14 15:31:45.865: E/AndroidRuntime(32261): junit.framework.AssertionFailedError: Must use or extend XWalkApplication 04-14 15:31:45.865: E/AndroidRuntime(32261): at junit.framework.Assert.fail(Assert.java:50) 04-14 15:31:45.865: E/AndroidRuntime(32261): at org.xwalk.core.XWalkCoreWrapper.findSharedCore(XWalkCoreWrapper.java:146) 04-14 15:31:45.865: E/AndroidRuntime(32261): at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:58) 04-14 15:31:45.865: E/AndroidRuntime(32261): at org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:51) 04-14 15:31:45.865: E/AndroidRuntime(32261): at org.xwalk.core.XWalkActivity.onStart(XWalkActivity.java:84) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.Activity.performStart(Activity.java:5241) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2157) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread.access$800(ActivityThread.java:135) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.os.Handler.dispatchMessage(Handler.java:102) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.os.Looper.loop(Looper.java:136) 04-14 15:31:45.865: E/AndroidRuntime(32261): at android.app.ActivityThread.main(ActivityThread.java:5001) 04-14 15:31:45.865: E/AndroidRuntime(32261): at java.lang.reflect.Method.invoke(Native Method) 04-14 15:31:45.865: E/AndroidRuntime(32261): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 04-14 15:31:45.865: E/AndroidRuntime(32261): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) {code}

    JIRA | 2 years ago | lvyunxiao
    junit.framework.AssertionFailedError: Must use or extend XWalkApplication
  6. 0

    How to verify IntentService start

    Stack Overflow | 1 year ago | Kamil Seweryn
    junit.framework.AssertionFailedError: Wanted to match 1 intents. Actually matched 0 intents. IntentMatcher: has component: has component with: class name: is "com.example.MyIntentService" package name: an instance of java.lang.String short class name: an instance of java.lang.String Matched intents:[] Recorded intents: -Intent { cmp=com.example/.SecondActivity (has extras) } handling packages:[[com.example]], extras:[Bundle[...]])

    4 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. junit.framework.AssertionFailedError

      Must use or extend XWalkApplication

      at junit.framework.Assert.fail()
    2. JUnit
      Assert.fail
      1. junit.framework.Assert.fail(Assert.java:50)
      1 frame
    3. org.xwalk.core
      XWalkActivity.onStart
      1. org.xwalk.core.XWalkCoreWrapper.findSharedCore(XWalkCoreWrapper.java:146)
      2. org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:58)
      3. org.xwalk.core.XWalkCoreWrapper.check(XWalkCoreWrapper.java:51)
      4. org.xwalk.core.XWalkActivity.onStart(XWalkActivity.java:84)
      4 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)
      2. android.app.Activity.performStart(Activity.java:5241)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2273)
      5. android.app.ActivityThread.access$800(ActivityThread.java:138)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1236)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:149)
      9. android.app.ActivityThread.main(ActivityThread.java:5045)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame