java.lang.ClassCastException: android.os.UserHandle cannot be cast to java.lang.String

Oracle Community | user12043372 | 2 years 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

    UserHandle cast error when running MAF applications

    Oracle Community | 2 years ago | user12043372
    java.lang.ClassCastException: android.os.UserHandle cannot be cast to java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.os.UserHandle cannot be cast to java.lang.String

      at oracle.adfmf.util.CommandLine.getProperty()
    2. oracle.adfmf.util
      CommandLine.isProfileMode
      1. oracle.adfmf.util.CommandLine.getProperty(CommandLine.java:53)
      2. oracle.adfmf.util.CommandLine.getProperty(CommandLine.java:43)
      3. oracle.adfmf.util.CommandLine.getPropertyAsBoolean(CommandLine.java:68)
      4. oracle.adfmf.util.CommandLine.isProfileMode(CommandLine.java:78)
      4 frames
    3. oracle.adfmf
      JavaStarter.startJava
      1. oracle.adfmf.JavaStarter.addSystemArguments(JavaStarter.java:240)
      2. oracle.adfmf.JavaStarter.startJava(JavaStarter.java:131)
      2 frames
    4. oracle.adfmf.framework
      NativeFeatureContextManager.<init>
      1. oracle.adfmf.framework.NativeFeatureContextManager.<init>(NativeFeatureContextManager.java:45)
      1 frame