java.lang.ClassCastException: com.thed.zephyr.jenkins.model.ZephyrInstance cannot be cast to com.thed.zephyr.jenkins.model.ZephyrInstance

Jenkins JIRA | Ahmed Charfi | 9 months ago
  1. 0

    [JIRA] [zephyr-for-jira-test-management-plugin] (JENKINS-33542) java.lang.ClassCastException

    Google Groups | 9 months ago | ahmed.charfi@gmx.de (JIRA)
    java.lang.ClassCastException: com.thed.zephyr.jenkins.model.ZephyrInstance cannot be cast to com.thed.zephyr.jenkins.model.ZephyrInstance
  2. 0

    i am running a simple calculator project which is located in github. i want to Publish test result to Zephyr for JIRA'. i get always ERROR: Build step failed with exception java.lang.ClassCastException Started by user anonymous Building in workspace /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/AhmedCharfi/charfi.git # timeout=10 Fetching upstream changes from https://github.com/AhmedCharfi/charfi.git > git --version # timeout=10 using .gitcredentials to set credentials > git config --local credential.username AhmedCharfi # timeout=10 > git config --local credential.helper store --file=/tmp/git4288973419038232058.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/AhmedCharfi/charfi.git +refs/heads/*:refs/remotes/origin/* > git config --local --remove-section credential # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 3fbf34ac0645f5426d84f992d9607042317922fa (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 3fbf34ac0645f5426d84f992d9607042317922fa > git rev-list 3fbf34ac0645f5426d84f992d9607042317922fa # timeout=10 [workspace] $ mvn clean package [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 2 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 2 --- [INFO] Deleting /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target [INFO] [INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ 2 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ 2 --- [INFO] Compiling 1 source file to /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/classes [INFO] [INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ 2 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ 2 --- [INFO] Compiling 1 source file to /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ 2 --- [INFO] Surefire report directory: /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running Tests.RechnerTest Cannot divide by 0! Wrong number format Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec Results : Tests run: 9, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ 2 --- [INFO] Building jar: /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/2-0.0.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.327s [INFO] Finished at: Mon Mar 14 14:36:54 UTC 2016 [INFO] Final Memory: 17M/153M [INFO] ------------------------------------------------------------------------ Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is SUCCESS ERROR: Build step failed with exception java.lang.ClassCastException: com.thed.zephyr.jenkins.model.ZephyrInstance cannot be cast to com.thed.zephyr.jenkins.model.ZephyrInstance at com.thed.zephyr.jenkins.reporter.ZfjReporter.fetchCredentials(ZfjReporter.java:227) at com.thed.zephyr.jenkins.reporter.ZfjReporter.initializeZephyrData(ZfjReporter.java:211) at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:88) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Publish test result to Zephyr for JIRA' marked build as failure Finished: FAILURE Any Idea to fix this bug? Best

    Jenkins JIRA | 9 months ago | Ahmed Charfi
    java.lang.ClassCastException: com.thed.zephyr.jenkins.model.ZephyrInstance cannot be cast to com.thed.zephyr.jenkins.model.ZephyrInstance
  3. 0

    i am running a simple calculator project which is located in github. i want to Publish test result to Zephyr for JIRA'. i get always ERROR: Build step failed with exception java.lang.ClassCastException Started by user anonymous Building in workspace /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/AhmedCharfi/charfi.git # timeout=10 Fetching upstream changes from https://github.com/AhmedCharfi/charfi.git > git --version # timeout=10 using .gitcredentials to set credentials > git config --local credential.username AhmedCharfi # timeout=10 > git config --local credential.helper store --file=/tmp/git4288973419038232058.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/AhmedCharfi/charfi.git +refs/heads/*:refs/remotes/origin/* > git config --local --remove-section credential # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 3fbf34ac0645f5426d84f992d9607042317922fa (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 3fbf34ac0645f5426d84f992d9607042317922fa > git rev-list 3fbf34ac0645f5426d84f992d9607042317922fa # timeout=10 [workspace] $ mvn clean package [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 2 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 2 --- [INFO] Deleting /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target [INFO] [INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ 2 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ 2 --- [INFO] Compiling 1 source file to /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/classes [INFO] [INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ 2 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ 2 --- [INFO] Compiling 1 source file to /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ 2 --- [INFO] Surefire report directory: /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running Tests.RechnerTest Cannot divide by 0! Wrong number format Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec Results : Tests run: 9, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ 2 --- [INFO] Building jar: /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/2-0.0.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.327s [INFO] Finished at: Mon Mar 14 14:36:54 UTC 2016 [INFO] Final Memory: 17M/153M [INFO] ------------------------------------------------------------------------ Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is SUCCESS ERROR: Build step failed with exception java.lang.ClassCastException: com.thed.zephyr.jenkins.model.ZephyrInstance cannot be cast to com.thed.zephyr.jenkins.model.ZephyrInstance at com.thed.zephyr.jenkins.reporter.ZfjReporter.fetchCredentials(ZfjReporter.java:227) at com.thed.zephyr.jenkins.reporter.ZfjReporter.initializeZephyrData(ZfjReporter.java:211) at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:88) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Publish test result to Zephyr for JIRA' marked build as failure Finished: FAILURE Any Idea to fix this bug? Best

    Jenkins JIRA | 9 months ago | Ahmed Charfi
    java.lang.ClassCastException: com.thed.zephyr.jenkins.model.ZephyrInstance cannot be cast to com.thed.zephyr.jenkins.model.ZephyrInstance
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to
  6. 0

    Upsource Analyzer has crashed

    YouTrack | 2 years ago
    java.lang.ClassCastException: cannot be cast to com.jetbrains.upsource.backend.server.core.tree.DbFileTreeNodeBase

    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

      com.thed.zephyr.jenkins.model.ZephyrInstance cannot be cast to com.thed.zephyr.jenkins.model.ZephyrInstance

      at com.thed.zephyr.jenkins.reporter.ZfjReporter.fetchCredentials()
    2. com.thed.zephyr
      ZfjReporter.perform
      1. com.thed.zephyr.jenkins.reporter.ZfjReporter.fetchCredentials(ZfjReporter.java:227)
      2. com.thed.zephyr.jenkins.reporter.ZfjReporter.initializeZephyrData(ZfjReporter.java:211)
      3. com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:88)
      3 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      6. hudson.model.Run.execute(Run.java:1763)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:410)
      9 frames