java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.Object;

jsystemtest | oritl | 6 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

    GitHub comment 58#17474244

    GitHub | 4 years ago | itaiag
    java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.Object;
  2. 0

    Cannot load scenario when using checkbox

    jsystemtest | 6 years ago | oritl
    java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.Object;

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to [Ljava.lang.Object;

      at jsystem.extensions.paramproviders.StringArrayOptionsParameterProvider.getAsString()
    2. jsystem.extensions.paramproviders
      StringArrayOptionsParameterProvider.getAsString
      1. jsystem.extensions.paramproviders.StringArrayOptionsParameterProvider.getAsString(StringArrayOptionsParameterProvider.java:26)
      1 frame
    3. jsystem.framework.scenario
      ScenariosManager.getScenario
      1. jsystem.framework.scenario.Parameter.getStringValue(Parameter.java:501)
      2. jsystem.framework.scenario.RunnerTest.updateProperties(RunnerTest.java:699)
      3. jsystem.framework.scenario.RunnerTest.loadParametersAndValues(RunnerTest.java:671)
      4. jsystem.framework.scenario.RunnerTest.getVisibleParamters(RunnerTest.java:971)
      5. jsystem.framework.scenario.Scenario.load(Scenario.java:234)
      6. jsystem.framework.scenario.Scenario.<init>(Scenario.java:90)
      7. jsystem.framework.scenario.Scenario.<init>(Scenario.java:94)
      8. jsystem.framework.scenario.Scenario.<init>(Scenario.java:99)
      9. jsystem.framework.scenario.ScenariosManager.getScenario(ScenariosManager.java:116)
      9 frames
    4. jsystem.treeui.teststable
      TestsTableController$3.run
      1. jsystem.treeui.teststable.TestsTableController.selectScenario(TestsTableController.java:2562)
      2. jsystem.treeui.teststable.TestsTableController$3.run(TestsTableController.java:1623)
      2 frames