java.lang.RuntimeException: java.lang.UnsupportedOperationException: class org.xwalk.core.XWalkView.getSettings

JIRA | Jin, YingjunX | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Impacted Cases ============== Compatibility Matrix for Shared Crosswalk App Reproduce Test Steps ============== 1. Download usecase-embedding-android-tests app(also for Async verison) 2. launch the app and select a test case to run.(eg. XWalkView/XWalkViewWithSetInitialScale) Expected Outcome ================== The test app will running well Actual Outcome ================= The apk stopped and popup "Unfortunately, xxx has stopped" Test Builds =========== ||Version|| Test Device || Result|| |crosswalk 16.45.421.18 | ASUS MEMO PAD 8 | {color:green}PASS{color} | |crosswalk 17.46.448.1| ASUS MEMO PAD 8 | {color:red}FAIL{color} | Issue Analysis ============== 1. Error message: {code} D/org.xwalk.embedded.api.sample.XWalkViewWithSetInitialScale(17398): screenSize.x: 800 screenSize.y: 1216 D/AndroidRuntime(17398): Shutting down VM W/dalvikvm(17398): threadid=1: thread exiting with uncaught exception (group=0x437bf160) E/AndroidRuntime(17398): FATAL EXCEPTION: main E/AndroidRuntime(17398): Process: org.xwalk.embedded.api.sample, PID: 17398 E/AndroidRuntime(17398): java.lang.RuntimeException: java.lang.UnsupportedOperationException: class org.xwalk.core.XWalkView.getSettings E/AndroidRuntime(17398): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67) E/AndroidRuntime(17398): at org.xwalk.core.XWalkView.setInitialScale(XWalkView.java:765) E/AndroidRuntime(17398): at org.xwalk.embedded.api.sample.XWalkViewWithSetInitialScale.onXWalkReady(XWalkViewWithSetInitialScale.java:54) E/AndroidRuntime(17398): at org.xwalk.core.XWalkActivity$2.run(XWalkActivity.java:120) E/AndroidRuntime(17398): at org.xwalk.core.XWalkActivityDelegate.onActivateCompleted(XWalkActivityDelegate.java:130) E/AndroidRuntime(17398): at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:294) E/AndroidRuntime(17398): at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:257) E/AndroidRuntime(17398): at android.os.AsyncTask.finish(AsyncTask.java:632) E/AndroidRuntime(17398): at android.os.AsyncTask.access$600(AsyncTask.java:177) E/AndroidRuntime(17398): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) E/AndroidRuntime(17398): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(17398): at android.os.Looper.loop(Looper.java:149) E/AndroidRuntime(17398): at android.app.ActivityThread.main(ActivityThread.java:5061) E/AndroidRuntime(17398): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(17398): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(17398): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) E/AndroidRuntime(17398): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) E/AndroidRuntime(17398): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(17398): Caused by: java.lang.UnsupportedOperationException: class org.xwalk.core.XWalkView.getSettings E/AndroidRuntime(17398): at org.xwalk.core.internal.ReflectMethod.invoke(ReflectMethod.java:57) E/AndroidRuntime(17398): at org.xwalk.core.internal.XWalkViewBridge.getSettings(XWalkViewBridge.java:623) E/AndroidRuntime(17398): at org.xwalk.core.internal.XWalkViewInternal.setInitialScale(XWalkViewInternal.java:993) E/AndroidRuntime(17398): at org.xwalk.core.internal.XWalkViewBridge.setInitialScaleSuper(XWalkViewBridge.java:783) E/AndroidRuntime(17398): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(17398): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(17398): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) E/AndroidRuntime(17398): ... 17 more W/ActivityManager( 515): Force finishing activity org.xwalk.embedded.api.sample/.XWalkViewWithSetInitialScale W/ActivityManager( 515): Force finishing activity org.xwalk.embedded.api.sample/.XWalkEmbeddedAPISample D/WindowManager( 515): adjustConfigurationLw, config:{1.0 ?mcc?mnc ?locale ?layoutDir sw600dp w600dp h888dp 213dpi lrg port ?uimode ?night finger -keyb/v/h -nav/v} mLidState:1 mHasDockFeature:false mHasKeyboardFeature:false mHasHallSensorFeature:true config.hardKeyboardHidden:2 W/ActivityManager( 515): Activity pause timeout for ActivityRecord{21f671a8 u0 org.xwalk.embedded.api.sample/.XWalkViewWithSetInitialScale t330 f} {code} || Subjection || Name || Lib 16.45.421.18 || Lib 17.46.448.1 || | XWalkView | XWalkViewWithSetInitialScale | {color:green}PASS{color} | {color:red}FAIL{color} | | XWalkview-Extended | XWalkWithOnReceivedLoadError | {color:green}PASS{color} | {color:red}FAIL{color} | | XwalkUICilent & XwalkResourceClient | XWalkResourceClientAndXWalkUIClient | {color:green}PASS{color} | {color:red}FAIL{color} | | XwalkUICilent & XwalkResourceClient | XWalkViewWithClientReceivedSSLError | {color:green}PASS{color} | {color:red}FAIL{color} | | XwalkUICilent & XwalkResourceClient | XXalkViewWithRedirection | {color:green}PASS{color} | {color:red}FAIL{color} | | Misc | XXalkViewWithDownloadListener | {color:green}PASS{color} | {color:red}FAIL{color} | Remark: The test app is packaged with test branch 16 on SDK 16

    JIRA | 1 year ago | Jin, YingjunX
    java.lang.RuntimeException: java.lang.UnsupportedOperationException: class org.xwalk.core.XWalkView.getSettings
  2. 0

    Impacted Cases ============== Compatibility Matrix for Shared Crosswalk App Reproduce Test Steps ============== 1. Download usecase-embedding-android-tests app(also for Async verison) 2. launch the app and select a test case to run.(eg. XWalkView/XWalkViewWithSetInitialScale) Expected Outcome ================== The test app will running well Actual Outcome ================= The apk stopped and popup "Unfortunately, xxx has stopped" Test Builds =========== ||Version|| Test Device || Result|| |crosswalk 16.45.421.18 | ASUS MEMO PAD 8 | {color:green}PASS{color} | |crosswalk 17.46.448.1| ASUS MEMO PAD 8 | {color:red}FAIL{color} | Issue Analysis ============== 1. Error message: {code} D/org.xwalk.embedded.api.sample.XWalkViewWithSetInitialScale(17398): screenSize.x: 800 screenSize.y: 1216 D/AndroidRuntime(17398): Shutting down VM W/dalvikvm(17398): threadid=1: thread exiting with uncaught exception (group=0x437bf160) E/AndroidRuntime(17398): FATAL EXCEPTION: main E/AndroidRuntime(17398): Process: org.xwalk.embedded.api.sample, PID: 17398 E/AndroidRuntime(17398): java.lang.RuntimeException: java.lang.UnsupportedOperationException: class org.xwalk.core.XWalkView.getSettings E/AndroidRuntime(17398): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67) E/AndroidRuntime(17398): at org.xwalk.core.XWalkView.setInitialScale(XWalkView.java:765) E/AndroidRuntime(17398): at org.xwalk.embedded.api.sample.XWalkViewWithSetInitialScale.onXWalkReady(XWalkViewWithSetInitialScale.java:54) E/AndroidRuntime(17398): at org.xwalk.core.XWalkActivity$2.run(XWalkActivity.java:120) E/AndroidRuntime(17398): at org.xwalk.core.XWalkActivityDelegate.onActivateCompleted(XWalkActivityDelegate.java:130) E/AndroidRuntime(17398): at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:294) E/AndroidRuntime(17398): at org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:257) E/AndroidRuntime(17398): at android.os.AsyncTask.finish(AsyncTask.java:632) E/AndroidRuntime(17398): at android.os.AsyncTask.access$600(AsyncTask.java:177) E/AndroidRuntime(17398): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) E/AndroidRuntime(17398): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(17398): at android.os.Looper.loop(Looper.java:149) E/AndroidRuntime(17398): at android.app.ActivityThread.main(ActivityThread.java:5061) E/AndroidRuntime(17398): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(17398): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(17398): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) E/AndroidRuntime(17398): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) E/AndroidRuntime(17398): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(17398): Caused by: java.lang.UnsupportedOperationException: class org.xwalk.core.XWalkView.getSettings E/AndroidRuntime(17398): at org.xwalk.core.internal.ReflectMethod.invoke(ReflectMethod.java:57) E/AndroidRuntime(17398): at org.xwalk.core.internal.XWalkViewBridge.getSettings(XWalkViewBridge.java:623) E/AndroidRuntime(17398): at org.xwalk.core.internal.XWalkViewInternal.setInitialScale(XWalkViewInternal.java:993) E/AndroidRuntime(17398): at org.xwalk.core.internal.XWalkViewBridge.setInitialScaleSuper(XWalkViewBridge.java:783) E/AndroidRuntime(17398): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(17398): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(17398): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) E/AndroidRuntime(17398): ... 17 more W/ActivityManager( 515): Force finishing activity org.xwalk.embedded.api.sample/.XWalkViewWithSetInitialScale W/ActivityManager( 515): Force finishing activity org.xwalk.embedded.api.sample/.XWalkEmbeddedAPISample D/WindowManager( 515): adjustConfigurationLw, config:{1.0 ?mcc?mnc ?locale ?layoutDir sw600dp w600dp h888dp 213dpi lrg port ?uimode ?night finger -keyb/v/h -nav/v} mLidState:1 mHasDockFeature:false mHasKeyboardFeature:false mHasHallSensorFeature:true config.hardKeyboardHidden:2 W/ActivityManager( 515): Activity pause timeout for ActivityRecord{21f671a8 u0 org.xwalk.embedded.api.sample/.XWalkViewWithSetInitialScale t330 f} {code} || Subjection || Name || Lib 16.45.421.18 || Lib 17.46.448.1 || | XWalkView | XWalkViewWithSetInitialScale | {color:green}PASS{color} | {color:red}FAIL{color} | | XWalkview-Extended | XWalkWithOnReceivedLoadError | {color:green}PASS{color} | {color:red}FAIL{color} | | XwalkUICilent & XwalkResourceClient | XWalkResourceClientAndXWalkUIClient | {color:green}PASS{color} | {color:red}FAIL{color} | | XwalkUICilent & XwalkResourceClient | XWalkViewWithClientReceivedSSLError | {color:green}PASS{color} | {color:red}FAIL{color} | | XwalkUICilent & XwalkResourceClient | XXalkViewWithRedirection | {color:green}PASS{color} | {color:red}FAIL{color} | | Misc | XXalkViewWithDownloadListener | {color:green}PASS{color} | {color:red}FAIL{color} | Remark: The test app is packaged with test branch 16 on SDK 16

    JIRA | 1 year ago | Jin, YingjunX
    java.lang.RuntimeException: java.lang.UnsupportedOperationException: class org.xwalk.core.XWalkView.getSettings

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      class org.xwalk.core.XWalkView.getSettings

      at org.xwalk.core.internal.ReflectMethod.invoke()
    2. org.xwalk.core
      XWalkViewBridge.setInitialScaleSuper
      1. org.xwalk.core.internal.ReflectMethod.invoke(ReflectMethod.java:57)
      2. org.xwalk.core.internal.XWalkViewBridge.getSettings(XWalkViewBridge.java:623)
      3. org.xwalk.core.internal.XWalkViewInternal.setInitialScale(XWalkViewInternal.java:993)
      4. org.xwalk.core.internal.XWalkViewBridge.setInitialScaleSuper(XWalkViewBridge.java:783)
      4 frames
    3. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    4. org.xwalk.core
      XWalkView.setInitialScale
      1. org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
      2. org.xwalk.core.XWalkView.setInitialScale(XWalkView.java:765)
      2 frames
    5. org.xwalk.embedded
      XWalkViewWithSetInitialScale.onXWalkReady
      1. org.xwalk.embedded.api.sample.XWalkViewWithSetInitialScale.onXWalkReady(XWalkViewWithSetInitialScale.java:54)
      1 frame
    6. org.xwalk.core
      XWalkLibraryLoader$ActivateTask.onPostExecute
      1. org.xwalk.core.XWalkActivity$2.run(XWalkActivity.java:120)
      2. org.xwalk.core.XWalkActivityDelegate.onActivateCompleted(XWalkActivityDelegate.java:130)
      3. org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:294)
      4. org.xwalk.core.XWalkLibraryLoader$ActivateTask.onPostExecute(XWalkLibraryLoader.java:257)
      4 frames
    7. Android Platform
      ActivityThread.main
      1. android.os.AsyncTask.finish(AsyncTask.java:632)
      2. android.os.AsyncTask.access$600(AsyncTask.java:177)
      3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:149)
      6. android.app.ActivityThread.main(ActivityThread.java:5061)
      6 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
      2 frames
    10. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame