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

jenkins-ci.org | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When connecting to TestLink from jenkins, the following error is coming. Started by user Admin Building on master in workspace /home/nabslink/.jenkins/jobs/Jenkins-TaskLink-Plugin-Example/workspace Preparing TestLink client API. Using TestLink URL: http://xenapdev001/testlink/lib/api/xmlrpc.php FATAL: java.util.HashMap cannot be cast to [Ljava.lang.Object; java.lang.ClassCastException: java.util.HashMap cannot be cast to [Ljava.lang.Object; at br.eti.kinoshita.testlinkjavaapi.util.Util.castToArray(Util.java:642) at br.eti.kinoshita.testlinkjavaapi.TestProjectService.getTestProjectByName(TestProjectService.java:111) at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.getTestProjectByName(TestLinkAPI.java:485) at hudson.plugins.testlink.TestLinkBuilder.getTestLinkSite(TestLinkBuilder.java:246) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:134) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:798) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | Supratim Samanta
    java.lang.ClassCastException: java.util.HashMap cannot be cast to [Ljava.lang.Object;
  2. 0

    When connecting to TestLink from jenkins, the following error is coming. Started by user Admin Building on master in workspace /home/nabslink/.jenkins/jobs/Jenkins-TaskLink-Plugin-Example/workspace Preparing TestLink client API. Using TestLink URL: http://xenapdev001/testlink/lib/api/xmlrpc.php FATAL: java.util.HashMap cannot be cast to [Ljava.lang.Object; java.lang.ClassCastException: java.util.HashMap cannot be cast to [Ljava.lang.Object; at br.eti.kinoshita.testlinkjavaapi.util.Util.castToArray(Util.java:642) at br.eti.kinoshita.testlinkjavaapi.TestProjectService.getTestProjectByName(TestProjectService.java:111) at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.getTestProjectByName(TestLinkAPI.java:485) at hudson.plugins.testlink.TestLinkBuilder.getTestLinkSite(TestLinkBuilder.java:246) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:134) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:798) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | Supratim Samanta
    java.lang.ClassCastException: java.util.HashMap cannot be cast to [Ljava.lang.Object;
  3. 0

    [JENKINS-17442] When connecting to TestLink, finding error ClassCastException - Jenkins JIRA

    jenkins-ci.org | 7 months ago
    java.lang.ClassCastException: java.util.HashMap cannot be cast to [Ljava.lang.Object;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue by using TestLink plugin in Jenkins

    Stack Overflow | 4 years ago | daguerrier
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.util.Map
  6. 0

    I have upgraded testlink from 1.9.3 to 1.9.6, then the jenkins testlink plugin doesn't work any more. The error reported by the plugin is: Preparing TestLink client API. Using TestLink URL: http://192.168.1.24/testlink-1.9.6/lib/api/xmlrpc.php FATAL: java.lang.Boolean cannot be cast to java.util.Map java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.util.Map at br.eti.kinoshita.testlinkjavaapi.util.Util.castToMap(Util.java:586) at br.eti.kinoshita.testlinkjavaapi.TestProjectService.getTestProjectByName(TestProjectService.java:115) at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.getTestProjectByName(TestLinkAPI.java:438) at hudson.plugins.testlink.TestLinkBuilder.getTestLinkSite(TestLinkBuilder.java:255) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:140) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241)

    Jenkins JIRA | 4 years ago | jerry wu
    java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.util.Map

    1 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. java.lang.ClassCastException

      java.util.HashMap cannot be cast to [Ljava.lang.Object;

      at br.eti.kinoshita.testlinkjavaapi.util.Util.castToArray()
    2. TestLink Java API
      TestLinkAPI.getTestProjectByName
      1. br.eti.kinoshita.testlinkjavaapi.util.Util.castToArray(Util.java:642)
      2. br.eti.kinoshita.testlinkjavaapi.TestProjectService.getTestProjectByName(TestProjectService.java:111)
      3. br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.getTestProjectByName(TestLinkAPI.java:485)
      3 frames
    3. hudson.plugins.testlink
      TestLinkBuilder.perform
      1. hudson.plugins.testlink.TestLinkBuilder.getTestLinkSite(TestLinkBuilder.java:246)
      2. hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:134)
      2 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:798)
      3. hudson.model.Build$BuildExecution.build(Build.java:199)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580)
      6. hudson.model.Run.execute(Run.java:1575)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:237)
      9 frames