[JVM] Error generating cucumber html reports

652 views
Skip to first unread message

Artem Melnykov

unread,
May 30, 2013, 7:42:44 PM5/30/13
to cu...@googlegroups.com
Hey guys,

I run cucumber tests from Jenkins and when it comes to generating repors, it started failing all of a sudden.
This is the error I get: 
[CucumberReportPublisher] Generating HTML reports
ERROR: Publisher net.masterthought.jenkins.CucumberReportPublisher aborted due to exception
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)
	at com.google.gson.Gson.fromJson(Gson.java:757)
	at com.google.gson.Gson.fromJson(Gson.java:706)
	at com.google.gson.Gson.fromJson(Gson.java:678)
	at net.masterthought.cucumber.ReportParser.parseJsonResults(ReportParser.java:30)
	at net.masterthought.cucumber.ReportParser.<init>(ReportParser.java:18)
	at net.masterthought.cucumber.ReportBuilder.<init>(ReportBuilder.java:31)
	at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:98)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:994)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
	at hudson.model.Run.execute(Run.java:1509)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:236)
Caused by: 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)
	at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:306)
	at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:70)
	at com.google.gson.Gson.fromJson(Gson.java:791)
	... 16 more

Do you have any suggestions on what to try to make it work?
Thank you!

Artem Melnykov

unread,
May 30, 2013, 8:18:49 PM5/30/13
to cu...@googlegroups.com
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.

Konstantin Makarov

unread,
Jul 12, 2017, 6:36:08 AM7/12/17
to Cukes
How did you managed with that? Have the same issue.

пятница, 31 мая 2013 г., 3:18:49 UTC+3 пользователь Artem Melnykov написал:

MP Korstanje

unread,
Jul 23, 2017, 7:52:30 AM7/23/17
to Cukes
@Konstantin,

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

Best,
M.P.
Reply all
Reply to author
Forward
0 new messages