ru.yandex.qatools.allure.report.AllureReportBuilderException: java.lang.reflect.InvocationTargetException

GitHub | admizh | 2 years ago
  1. 0

    Out of memory when generate report (AllureReportBuilder)

    GitHub | 2 years ago | admizh
    ru.yandex.qatools.allure.report.AllureReportBuilderException: java.lang.reflect.InvocationTargetException
  2. 0

    Hi! I'm not sure I'm posting to right project. Anyway... We are using teamcity plugin to deploy our artifacts. Today we found our builds starts to fail with stack like this: {noformat} java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info. java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:157) at org.jfrog.teamcity.agent.ArtifactoryAgentListener.runnerFinished(ArtifactoryAgentListener.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:115) at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67) at $Proxy8.runnerFinished(Unknown Source) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.finish.FireRunnerFinishedFStage.doFinishStage(FireRunnerFinishedFStage.java:29) at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.runFinishStage(RunnerFinishStagesExecutor.java:32) at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.doBuildFinishStages(RunnerFinishStagesExecutor.java:23) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.safeCallFinishStages(RunnerContextExecutor.java:65) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:56) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.doProcessNextStep(StepExecutor.java:89) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:44) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:77) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70) at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:247) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:220) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 413. HTTP response message: Request Entity Too Large at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:155) ... 27 more {noformat} War file is about 64M. We already tried to tweak jetty settings (i.e requestBufferSize/headerBufferSize) but without any hope. Maybe we are missing something? Could Artifactory somehow restrict file size?

    JFrog JIRA | 4 years ago | Vsevolod Minkov
    java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hi! I'm not sure I'm posting to right project. Anyway... We are using teamcity plugin to deploy our artifacts. Today we found our builds starts to fail with stack like this: {noformat} java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info. java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:157) at org.jfrog.teamcity.agent.ArtifactoryAgentListener.runnerFinished(ArtifactoryAgentListener.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:115) at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67) at $Proxy8.runnerFinished(Unknown Source) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.finish.FireRunnerFinishedFStage.doFinishStage(FireRunnerFinishedFStage.java:29) at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.runFinishStage(RunnerFinishStagesExecutor.java:32) at jetbrains.buildServer.agent.impl.buildStages.RunnerFinishStagesExecutor.doBuildFinishStages(RunnerFinishStagesExecutor.java:23) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.safeCallFinishStages(RunnerContextExecutor.java:65) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:56) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.doProcessNextStep(StepExecutor.java:89) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:44) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:77) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70) at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:247) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:220) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 413. HTTP response message: Request Entity Too Large at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292) at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:155) ... 27 more {noformat} War file is about 64M. We already tried to tweak jetty settings (i.e requestBufferSize/headerBufferSize) but without any hope. Maybe we are missing something? Could Artifactory somehow restrict file size?

    JFrog JIRA | 4 years ago | Vsevolod Minkov
    java.lang.RuntimeException: Error deploying artifact: /opt/teamcity/buildAgent/work/48555869d50ef6eb/<path_to_project>/target/<project>.war. Skipping deployment of remaining artifacts (if any) and build info.
  5. 0

    Publishing to artifactory with bad characters in maven step name

    YouTrack | 5 years ago
    java.lang.RuntimeException: Error deploying artifact: /home/teamcity/work/88c29fc971d40868/pom.xml. Skipping deployment of remaining artifacts (if any) and build info.
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.OutOfMemoryError

    PermGen space

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    4. java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    5. java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    6. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    7. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    10. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    11. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    11 frames
  3. Google Guice - Core Library
    Guice.createInjector
    1. com.google.inject.internal.util.$SourceProvider.<clinit>(SourceProvider.java:34)
    2. com.google.inject.internal.Errors.<init>(Errors.java:95)
    3. com.google.inject.internal.InternalInjectorCreator.<init>(InternalInjectorCreator.java:61)
    4. com.google.inject.Guice.createInjector(Guice.java:95)
    5. com.google.inject.Guice.createInjector(Guice.java:72)
    6. com.google.inject.Guice.createInjector(Guice.java:62)
    6 frames
  4. ru.yandex.qatools
    AllureReportGenerator.<init>
    1. ru.yandex.qatools.allure.data.AllureReportGenerator.<init>(AllureReportGenerator.java:52)
    2. ru.yandex.qatools.allure.data.AllureReportGenerator.<init>(AllureReportGenerator.java:45)
    3. ru.yandex.qatools.allure.data.AllureReportGenerator.<init>(AllureReportGenerator.java:41)
    3 frames
  5. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  6. ru.yandex.qatools
    AgentBuildEventsProvider.runnerFinished
    1. ru.yandex.qatools.allure.report.AllureReportBuilder.processResults(AllureReportBuilder.java:132)
    2. ru.yandex.qatools.allure.teamcity.AgentBuildEventsProvider.runnerFinished(AgentBuildEventsProvider.java:79)
    2 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  8. TeamCity Build Server
    EventDispatcher$2.invoke
    1. jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:117)
    2. jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67)
    2 frames
  9. com.sun.proxy
    $Proxy6.runnerFinished
    1. com.sun.proxy.$Proxy6.runnerFinished(Unknown Source)[09:58:32]
    1 frame