ReportGenerationFailedError: Failed to generate configuration report

709 views
Skip to first unread message

Oleksandr Chernookov

unread,
May 30, 2016, 7:28:18 AM5/30/16
to Serenity BDD Users Group
Hi 
I've updated from  1.1.29-rc.1 to 1.1.34 and run single test to make sure everything in OK.
After run I saw this error
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate configuration report
at net.thucydides.core.reports.ReportService.waitForReportGenerationToFinish(ReportService.java:176)
at net.thucydides.core.reports.ReportService.generateReportsFor(ReportService.java:154)
at net.thucydides.core.reports.ReportService.generateReportsFor(ReportService.java:103)
at net.serenitybdd.junit.runners.SerenityRunner.generateReportsFor(SerenityRunner.java:394)
at net.serenitybdd.junit.runners.SerenityRunner.generateReports(SerenityRunner.java:283)
at net.serenitybdd.junit.runners.SerenityRunner.run(SerenityRunner.java:248)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
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:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.util.concurrent.ExecutionException: net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate reports using net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@353d3998
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at net.thucydides.core.reports.ReportService.waitForReportGenerationToFinish(ReportService.java:173)
... 14 more
Caused by: net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate reports using net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@353d3998
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:215)
at net.thucydides.core.reports.ReportService.access$100(ReportService.java:26)
at net.thucydides.core.reports.ReportService$1.run(ReportService.java:148)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: net.thucydides.core.resources.ResourceCopyingError: Couldn't close the zip file
at net.thucydides.core.resources.ResourceList.getResourcesFromJarFile(ResourceList.java:142)
at net.thucydides.core.resources.ResourceList.getResources(ResourceList.java:81)
at net.thucydides.core.resources.ResourceList.systemPropertiesClasspathElements(ResourceList.java:71)
at net.thucydides.core.resources.ResourceList.list(ResourceList.java:48)
at net.thucydides.core.reports.html.HtmlReporter.copyResourcesToOutputDirectory(HtmlReporter.java:73)
at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:96)
at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:213)
... 7 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:215)
at java.util.zip.ZipFile.<init>(ZipFile.java:145)
at java.util.zip.ZipFile.<init>(ZipFile.java:159)
at net.thucydides.core.resources.ResourceList.loadZipFileWithMaxRetries(ResourceList.java:109)
at net.thucydides.core.resources.ResourceList.loadZipFileWithMaxRetries(ResourceList.java:119)
at net.thucydides.core.resources.ResourceList.loadZipFileWithMaxRetries(ResourceList.java:119)
at net.thucydides.core.resources.ResourceList.loadZipFileWithMaxRetries(ResourceList.java:119)
at net.thucydides.core.resources.ResourceList.zipFileFor(ResourceList.java:104)
at net.thucydides.core.resources.ResourceList.getResourcesFromJarFile(ResourceList.java:127)
... 14 more
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\HP\Sprinter\bin\java_shared\classes";"C:\Program Files (x86)\HP\Sprinter\\bin\java_shared\classes\jasmine.jar"

Process finished with exit code -2

And report html file was also broken.
Is someone faced with such problem and could help me to resolve this.

Thanks 
Alex

John Ferguson SmartSmart

unread,
May 30, 2016, 8:25:05 AM5/30/16
to Oleksandr Chernookov, Serenity BDD Users Group
Another process is blocking the resource files needed to generate the file. This is often a Windows-specific issue (e.g. an anti-virus running in the background). Is it reproducible when you run “mvn clean verify”?


___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better

http://johnfergusonsmart.com  | rea...@johnfergusonsmart.com
___________________________________________________

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oleksandr Chernookov

unread,
May 30, 2016, 8:52:24 AM5/30/16
to Serenity BDD Users Group, ocher...@gmail.com
Yes it's. I run this command on Linux machine and there is no antivirus

Oleksandr Chernookov

unread,
May 30, 2016, 8:56:29 AM5/30/16
to Serenity BDD Users Group
I tried to run test one more time there wasn't exception but when I ran mvn serenity:aggregate
and open report I saw broken html report



Reply all
Reply to author
Forward
0 new messages