-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error failed to generate configuration report. Even reports are getting generated but build is failing due to this error. #2101
Comments
"java.lang.OutOfMemoryError: Java heap space" - looks like you need more heap space. |
@wakaleo I have already assigned 8196M to Gradle and Jenkins. Still I am getting this error. Anything else that I can do resolve the same. |
How many tests do you have? |
@wakaleo I have 1340 test cases of rest services. and still more to add. |
I can’t see anything obvious in the code that would cause this - you could try the following settings in your serenity.conf file:
And make sure you are assigning the heap memory available to the failsafe process, not just to the Jenkins job (see https://maven.apache.org/surefire/maven-failsafe-plugin/examples/fork-options-and-parallel-execution.html) |
@wakaleo I am running it through Gradle not with maven. I have provided memory to specific gradle build. I hope it will help there as well. |
@wakaleo The issue is with the serenity reports. When I run test cases directly from JUNIT everything is working fine but when we go with Gradle task then it is running out of memory as it is not able to write so much data from service in reports. |
@wakaleo The issue is with the serenity reports. When I run test cases directly from JUNIT everything is working fine but when we go with Gradle task then it is running out of memory as it is not able to write so much data from service in reports. Is there any way that we can skip the index.html (serenity report ) and we can get only single page summary while running through gradle ? I tried to comment the plugin for aggregate then it give error for serenity method for single page html. |
You can not call the aggregate goal and just call the reports goal |
Hi John, i was trying parallel execution and seeing the same error - full report seems okay but when click and view individual scenario is throws "Your file couldn’t be accessedIt may have been moved, edited, or deleted." below is the full error - please suggest if the project set up is required. net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate configuration report |
You have a dependency conflict in your pom file. Do a dependency analysis and make sure you have the latest versions of your apache commons libraries. |
Hi John,
I have removed the apache commons libraries for now to isolate the issue-
and I'm able to generate the reports fine. Thanks so much for the support-
i will upgrade and try now.
Regards,Sarika
…On Mon, Aug 7, 2023 at 3:51 PM John Ferguson Smart ***@***.***> wrote:
Caused by: java.lang.NoSuchMethodError: org.apache.commons.lang3.time.StopWatch.createStarted()Lorg/apache/commons/lang3/time/StopWatch;
at
You have a dependency conflict in your pom file. Do a dependency analysis
and make sure you have the latest versions of your apache commons libraries.
—
Reply to this email directly, view it on GitHub
<#2101 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5WYFUX4OWOH4EUF4S6SD2TXUC6RHANCNFSM4NGV2BOQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Kanerika Software Private Limited <http://www.kanerika.com>
---------------------------------------------------------------------------------------------------------
Disclaimer
This message may contains legally privileged and/or
confidential information. If you are not the intended recipient(s), or
employee or agent responsible for delivery of this message to the intended
recipient(s), you are hereby notified that any dissemination, distribution
or copying of this e-mail message is strictly prohibited. If you have
received this message in error, please immediately notify the sender and
delete this e-mail message from your computer.
WARNING: Computer viruses
can be transmitted via email. The recipient should check this email and any
attachments for the presence of viruses. The company accepts no liability
for any damage caused by any virus transmitted by this email.
|
Upgrade works fine Thanks so much- one question is on the single page html
report : I am seeing the scenario steps are not hyperlinks which
should navigate to the specific scenario: screenshot attached.
2. The second question is: Is Serenity parallel execution thread safe? (I
am using serenity 3.6.22, Junit 4).
[image: image.png]
On Mon, Aug 7, 2023 at 5:50 PM Sarika Kothakonda <
***@***.***> wrote:
… Hi John,
I have removed the apache commons libraries for now to isolate the issue-
and I'm able to generate the reports fine. Thanks so much for the support-
i will upgrade and try now.
Regards,Sarika
On Mon, Aug 7, 2023 at 3:51 PM John Ferguson Smart <
***@***.***> wrote:
> Caused by: java.lang.NoSuchMethodError: org.apache.commons.lang3.time.StopWatch.createStarted()Lorg/apache/commons/lang3/time/StopWatch;
> at
>
> You have a dependency conflict in your pom file. Do a dependency analysis
> and make sure you have the latest versions of your apache commons libraries.
>
> —
> Reply to this email directly, view it on GitHub
> <#2101 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/A5WYFUX4OWOH4EUF4S6SD2TXUC6RHANCNFSM4NGV2BOQ>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
--
Kanerika Software Private Limited <http://www.kanerika.com>
---------------------------------------------------------------------------------------------------------
Disclaimer
This message may contains legally privileged and/or
confidential information. If you are not the intended recipient(s), or
employee or agent responsible for delivery of this message to the intended
recipient(s), you are hereby notified that any dissemination, distribution
or copying of this e-mail message is strictly prohibited. If you have
received this message in error, please immediately notify the sender and
delete this e-mail message from your computer.
WARNING: Computer viruses
can be transmitted via email. The recipient should check this email and any
attachments for the presence of viruses. The company accepts no liability
for any damage caused by any virus transmitted by this email.
|
SerenityCoreVersion = 2.2.8
SerenityCucumberVersion = 2.2.5
CucumberVersion = 5.5.0
Not sure what's going wrong.
Error
Failed to generate configuration report
net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate configuration report
at net.thucydides.core.reports.ReportService.waitForReportGenerationToFinish(ReportService.java:204)
at net.thucydides.core.reports.ReportService.generateReportsFor(ReportService.java:181)
at net.thucydides.core.reports.ReportService.generateReportsFor(ReportService.java:127)
at io.cucumber.core.plugin.SerenityReporter.generateReports(SerenityReporter.java:948)
at io.cucumber.core.plugin.SerenityReporter.handleTestRunFinished(SerenityReporter.java:335)
at io.cucumber.core.eventbus.AbstractEventPublisher.send(AbstractEventPublisher.java:45)
at io.cucumber.core.eventbus.AbstractEventBus.send(AbstractEventBus.java:9)
at io.cucumber.junit.CucumberSerenityRunner$RunCucumber.evaluate(CucumberSerenityRunner.java:255)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:118)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:175)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:157)
at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.concurrent.ExecutionException: net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate reports using net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@744cd6f8
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at net.thucydides.core.reports.ReportService.waitForReportGenerationToFinish(ReportService.java:201)
... 40 more
Caused by: net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate reports using net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@744cd6f8
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:241)
at net.thucydides.core.reports.ReportService.lambda$generateReportsFor$0(ReportService.java:177)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
... 1 more
Caused by: java.lang.RuntimeException: Failed to merge template: Failed to process FreeMarker template
at net.thucydides.core.reports.html.Merger$MergeBuilder.to(Merger.java:39)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportPage(HtmlAcceptanceTestReporter.java:139)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:125)
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:239)
... 6 more
Caused by: net.thucydides.core.reports.templates.TemplateMergeException: Failed to process FreeMarker template
at net.thucydides.core.reports.templates.FreemarkerReportTemplate.merge(FreemarkerReportTemplate.java:42)
at net.thucydides.core.reports.html.Merger$MergeBuilder.to(Merger.java:37)
... 9 more
Caused by: freemarker.core._TemplateModelException: Java method "net.thucydides.core.reports.html.Formatter.renderText(String)" threw an exception when invoked on net.thucydides.core.reports.html.Formatter object "net.thucydides.core.reports.html.Formatter@1435a452"; see cause exception in the Java stack trace.
FTL stack trace ("~" means nesting-related):
- Failed at: ${formatter.renderText(restQuery.resp... [in template "freemarker/default.ftl" in macro "restQueryData" at line 434, column 46]
- Reached through: @restQueryData restQuery=step.restQue... [in template "freemarker/default.ftl" in macro "step_details" at line 509, column 45]
- Reached through: @step_details step=step step_number=s... [in template "freemarker/default.ftl" in macro "write_step" at line 376, column 21]
- Reached through: @write_step step=nestedStep step_numb... [in template "freemarker/default.ftl" in macro "write_step" at line 385, column 45]
- Reached through: @write_step step=step step_number=ste... [in template "freemarker/default.ftl" at line 594, column 21]
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.base/java.lang.AbstractStringBuilder.(AbstractStringBuilder.java:86)
at java.base/java.lang.StringBuffer.(StringBuffer.java:139)
at java.base/java.io.StringWriter.(StringWriter.java:69)
at org.apache.commons.lang3.text.translate.CharSequenceTranslator.translate(CharSequenceTranslator.java:63)
at net.thucydides.core.reports.html.Formatter.renderText(Formatter.java:150)
at jdk.internal.reflect.GeneratedMethodAccessor507.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1505)
at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:72)
at freemarker.core.MethodCall._eval(MethodCall.java:62)
at freemarker.core.Expression.eval(Expression.java:101)
at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100)
at freemarker.core.DollarVariable.accept(DollarVariable.java:63)
at freemarker.core.Environment.visit(Environment.java:331)
at freemarker.core.Environment.visit(Environment.java:373)
at freemarker.core.Environment.invokeMacroOrFunctionCommonPart(Environment.java:872)
at freemarker.core.Environment.invokeMacro(Environment.java:809)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
at freemarker.core.Environment.visit(Environment.java:331)
at freemarker.core.Environment.visit(Environment.java:373)
at freemarker.core.Environment.invokeMacroOrFunctionCommonPart(Environment.java:872)
at freemarker.core.Environment.invokeMacro(Environment.java:809)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
at freemarker.core.Environment.visit(Environment.java:367)
at freemarker.core.Environment.invokeMacroOrFunctionCommonPart(Environment.java:872)
at freemarker.core.Environment.invokeMacro(Environment.java:809)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83)
at freemarker.core.Environment.visit(Environment.java:331)
at freemarker.core.Environment.visit(Environment.java:373)
at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:321)
at freemarker.core.IteratorBlock$IterationContext.executeNestedContent(IteratorBlock.java:271)
The text was updated successfully, but these errors were encountered: