java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.liu/com.example.liu.MainActivity}: java.lang.UnsupportedOperationException: setBackgroundColor

JIRA | yangkailei | 1 year ago
  1. 0

    Impacted Cases ============== Reproduce Test Steps ==================== set background color transparent of xwalkview in demo app. Expected Outcome ================ Actual Outcome ============== 09-17 07:31:10.080: E/AndroidRuntime(11154): FATAL EXCEPTION: main 09-17 07:31:10.080: E/AndroidRuntime(11154): Process: com.example.liu, PID: 11154 09-17 07:31:10.080: E/AndroidRuntime(11154): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.liu/com.example.liu.MainActivity}: java.lang.UnsupportedOperationException: setBackgroundColor 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2328) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.access$900(ActivityThread.java:169) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.os.Handler.dispatchMessage(Handler.java:102) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.os.Looper.loop(Looper.java:136) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.main(ActivityThread.java:5476) 09-17 07:31:10.080: E/AndroidRuntime(11154): at java.lang.reflect.Method.invokeNative(Native Method) 09-17 07:31:10.080: E/AndroidRuntime(11154): at java.lang.reflect.Method.invoke(Method.java:515) 09-17 07:31:10.080: E/AndroidRuntime(11154): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) 09-17 07:31:10.080: E/AndroidRuntime(11154): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) 09-17 07:31:10.080: E/AndroidRuntime(11154): at dalvik.system.NativeStart.main(Native Method) 09-17 07:31:10.080: E/AndroidRuntime(11154): Caused by: java.lang.UnsupportedOperationException: setBackgroundColor 09-17 07:31:10.080: E/AndroidRuntime(11154): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:57) 09-17 07:31:10.080: E/AndroidRuntime(11154): at org.xwalk.core.XWalkView.setBackgroundColor(XWalkView.java:589) 09-17 07:31:10.080: E/AndroidRuntime(11154): at com.example.liu.MainActivity.onCreate(MainActivity.java:36) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.Activity.performCreate(Activity.java:5473) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292) 09-17 07:31:10.080: E/AndroidRuntime(11154): ... 11 more 09-17 07:31:10.090: W/ActivityManager(2687): Force finishing activity com.example.liu/.MainActivity Test Case Source Code ===================== package com.example.liu; import android.os.Bundle; import org.apache.cordova.*; import android.graphics.Color; public class MainActivity extends CordovaActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml appView.getView().setBackgroundColor(Color.TRANSPARENT); loadUrl(launchUrl); } } Test Builds =========== Issue Analysis ==============

    JIRA | 1 year ago | yangkailei
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.liu/com.example.liu.MainActivity}: java.lang.UnsupportedOperationException: setBackgroundColor
  2. 0

    Impacted Cases ============== Reproduce Test Steps ==================== set background color transparent of xwalkview in demo app. Expected Outcome ================ Actual Outcome ============== 09-17 07:31:10.080: E/AndroidRuntime(11154): FATAL EXCEPTION: main 09-17 07:31:10.080: E/AndroidRuntime(11154): Process: com.example.liu, PID: 11154 09-17 07:31:10.080: E/AndroidRuntime(11154): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.liu/com.example.liu.MainActivity}: java.lang.UnsupportedOperationException: setBackgroundColor 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2328) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.access$900(ActivityThread.java:169) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.os.Handler.dispatchMessage(Handler.java:102) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.os.Looper.loop(Looper.java:136) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.main(ActivityThread.java:5476) 09-17 07:31:10.080: E/AndroidRuntime(11154): at java.lang.reflect.Method.invokeNative(Native Method) 09-17 07:31:10.080: E/AndroidRuntime(11154): at java.lang.reflect.Method.invoke(Method.java:515) 09-17 07:31:10.080: E/AndroidRuntime(11154): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) 09-17 07:31:10.080: E/AndroidRuntime(11154): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) 09-17 07:31:10.080: E/AndroidRuntime(11154): at dalvik.system.NativeStart.main(Native Method) 09-17 07:31:10.080: E/AndroidRuntime(11154): Caused by: java.lang.UnsupportedOperationException: setBackgroundColor 09-17 07:31:10.080: E/AndroidRuntime(11154): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:57) 09-17 07:31:10.080: E/AndroidRuntime(11154): at org.xwalk.core.XWalkView.setBackgroundColor(XWalkView.java:589) 09-17 07:31:10.080: E/AndroidRuntime(11154): at com.example.liu.MainActivity.onCreate(MainActivity.java:36) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.Activity.performCreate(Activity.java:5473) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093) 09-17 07:31:10.080: E/AndroidRuntime(11154): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292) 09-17 07:31:10.080: E/AndroidRuntime(11154): ... 11 more 09-17 07:31:10.090: W/ActivityManager(2687): Force finishing activity com.example.liu/.MainActivity Test Case Source Code ===================== package com.example.liu; import android.os.Bundle; import org.apache.cordova.*; import android.graphics.Color; public class MainActivity extends CordovaActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set by <content src="index.html" /> in config.xml appView.getView().setBackgroundColor(Color.TRANSPARENT); loadUrl(launchUrl); } } Test Builds =========== Issue Analysis ==============

    JIRA | 1 year ago | yangkailei
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.liu/com.example.liu.MainActivity}: java.lang.UnsupportedOperationException: setBackgroundColor
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Bug 461740 – fop can't read PNG files

    redhat.com | 1 month ago
    java.lang.UnsupportedOperationException: Unsupported DataBuffer type: java.awt.image.DataBufferUShort
  5. 0

    Running JavaFX in a Docker container | Dex

    wordpress.com | 6 days ago
    java.lang.reflect.InvocationTargetException

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

      setBackgroundColor

      at org.xwalk.core.ReflectMethod.invoke()
    2. org.xwalk.core
      XWalkView.setBackgroundColor
      1. org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:57)
      2. org.xwalk.core.XWalkView.setBackgroundColor(XWalkView.java:589)
      2 frames
    3. com.example.liu
      MainActivity.onCreate
      1. com.example.liu.MainActivity.onCreate(MainActivity.java:36)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5473)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386)
      5. android.app.ActivityThread.access$900(ActivityThread.java:169)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:136)
      9. android.app.ActivityThread.main(ActivityThread.java:5476)
      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:1268)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame