Discussion:
[Cucumber] Re: [JVM] Error generating cucumber html reports
(too old to reply)
Konstantin Makarov
2017-07-05 10:56:29 UTC
Permalink
Raw Message
How did you managed with that? Have the same issue.
I tried to use this report diagnostic tool
http://cucumber-reporting.masterthought.net/ and was able to view every
single report in the master project that I run. Still can't figure out why
this is happening.
I also update cucumber plugin version on jenkins to 0.0.21 and that didn't
make any difference.
Thanks.
Hey guys,
I run cucumber tests from Jenkins and when it comes to generating repors,
it started failing all of a sudden.
[CucumberReportPublisher] Generating HTML reports
ERROR: Publisher net.masterthought.jenkins.CucumberReportPublisher aborted due to exceptioncom.google.gson.JsonSyntaxException <http://stacktrace.jenkins-ci.org/search?query=com.google.gson.JsonSyntaxException>: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
at com.google.gson.Gson.fromJson(Gson.java:802) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
at com.google.gson.Gson.fromJson(Gson.java:757) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
at com.google.gson.Gson.fromJson(Gson.java:706) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
at com.google.gson.Gson.fromJson(Gson.java:678) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
at net.masterthought.cucumber.ReportParser.parseJsonResults(ReportParser.java:30) <http://stacktrace.jenkins-ci.org/search/?query=net.masterthought.cucumber.ReportParser.parseJsonResults&entity=method>
at net.masterthought.cucumber.ReportParser.<init>(ReportParser.java:18) <http://stacktrace.jenkins-ci.org/search/?query=net.masterthought.cucumber.ReportParser.%3Cinit%3E&entity=method>
at net.masterthought.cucumber.ReportBuilder.<init>(ReportBuilder.java:31) <http://stacktrace.jenkins-ci.org/search/?query=net.masterthought.cucumber.ReportBuilder.%3Cinit%3E&entity=method>
at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:98) <http://stacktrace.jenkins-ci.org/search/?query=net.masterthought.jenkins.CucumberReportPublisher.perform&entity=method>
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform&entity=method>
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform&entity=method>
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps&entity=method>
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2&entity=method>
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.post&entity=method>
at hudson.model.Run.execute(Run.java:1509) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.run&entity=method>
at hudson.model.ResourceController.execute(ResourceController.java:88) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
at hudson.model.Executor.run(Executor.java:236) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Caused by: java.lang.IllegalStateException <http://stacktrace.jenkins-ci.org/search?query=java.lang.IllegalStateException>: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
at com.google.gson.stream.JsonReader.expect(JsonReader.java:339) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.stream.JsonReader.expect&entity=method>
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:306) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.stream.JsonReader.beginArray&entity=method>
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:70) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.internal.bind.ArrayTypeAdapter.read&entity=method>
at com.google.gson.Gson.fromJson(Gson.java:791) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
... 16 more
Do you have any suggestions on what to try to make it work?
Thank you!
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MP Korstanje
2017-07-23 11:52:29 UTC
Permalink
Raw Message
@Konstantin,

you should direct your issues here:
https://github.com/damianszczepanik/cucumber-reporting

Best,
M.P.
Post by Konstantin Makarov
How did you managed with that? Have the same issue.
I tried to use this report diagnostic tool
http://cucumber-reporting.masterthought.net/ and was able to view every
single report in the master project that I run. Still can't figure out why
this is happening.
I also update cucumber plugin version on jenkins to 0.0.21 and that
didn't make any difference.
Thanks.
Hey guys,
I run cucumber tests from Jenkins and when it comes to generating
repors, it started failing all of a sudden.
[CucumberReportPublisher] Generating HTML reports
ERROR: Publisher net.masterthought.jenkins.CucumberReportPublisher aborted due to exceptioncom.google.gson.JsonSyntaxException <http://stacktrace.jenkins-ci.org/search?query=com.google.gson.JsonSyntaxException>: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
at com.google.gson.Gson.fromJson(Gson.java:802) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
at com.google.gson.Gson.fromJson(Gson.java:757) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
at com.google.gson.Gson.fromJson(Gson.java:706) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
at com.google.gson.Gson.fromJson(Gson.java:678) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
at net.masterthought.cucumber.ReportParser.parseJsonResults(ReportParser.java:30) <http://stacktrace.jenkins-ci.org/search/?query=net.masterthought.cucumber.ReportParser.parseJsonResults&entity=method>
at net.masterthought.cucumber.ReportParser.<init>(ReportParser.java:18) <http://stacktrace.jenkins-ci.org/search/?query=net.masterthought.cucumber.ReportParser.%3Cinit%3E&entity=method>
at net.masterthought.cucumber.ReportBuilder.<init>(ReportBuilder.java:31) <http://stacktrace.jenkins-ci.org/search/?query=net.masterthought.cucumber.ReportBuilder.%3Cinit%3E&entity=method>
at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:98) <http://stacktrace.jenkins-ci.org/search/?query=net.masterthought.jenkins.CucumberReportPublisher.perform&entity=method>
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform&entity=method>
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform&entity=method>
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps&entity=method>
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2&entity=method>
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.post&entity=method>
at hudson.model.Run.execute(Run.java:1509) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.run&entity=method>
at hudson.model.ResourceController.execute(ResourceController.java:88) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
at hudson.model.Executor.run(Executor.java:236) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Caused by: java.lang.IllegalStateException <http://stacktrace.jenkins-ci.org/search?query=java.lang.IllegalStateException>: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
at com.google.gson.stream.JsonReader.expect(JsonReader.java:339) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.stream.JsonReader.expect&entity=method>
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:306) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.stream.JsonReader.beginArray&entity=method>
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:70) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.internal.bind.ArrayTypeAdapter.read&entity=method>
at com.google.gson.Gson.fromJson(Gson.java:791) <http://stacktrace.jenkins-ci.org/search/?query=com.google.gson.Gson.fromJson&entity=method>
... 16 more
Do you have any suggestions on what to try to make it work?
Thank you!
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...