-
Notifications
You must be signed in to change notification settings - Fork 12
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
Cant view reports (com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:) #61
Comments
Hi This error is with the gson library and seems to pop up now and again. Can you tell me what version of java you are running? Also you could try to delete the gson directories in your .m2 repository so that maven fetches the gson library again in case there is a problem there. The next release will have an updated gson library so that may help. Next release will be soon Sent from my iPhone On 6 May 2013, at 10:35, Giovann notifications@github.com wrote:
|
I'm using OpenJDK java version "1.6.0_24" I'm also using the Ruby Cucumber to generate my json report. |
Can you reproduce the problem with recent version? |
Hello, I managed to reproduce this with version 1.3.0 of the plugin, java version: The error message (if any) is below: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 679 path $[0].elements[0].before[0].match.location Trying to generate report from following files. Make sure they are valid cucumber report files: |
Attach json file |
@tommywo is working on this in damianszczepanik/cucumber-reporting/pull/316 |
I cant view the reports after its been generated. I get this error when following the Cucumber report link http://host:8080/job/PROJECT/140/cucumber-html-reports/?
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
Here is my console output
[CucumberReportPublisher] Compiling Cucumber Html Reports ...
[CucumberReportPublisher] detected this build is running on a slave
[CucumberReportPublisher] copying json from: file:/home/myrsaweb/workspace/PROJECT/to reports directory: file:/var/lib/jenkins/jobs/PROJECT/builds/2013-05-06_11-25-59/cucumber-html-reports/
Pleas help I've been bashing my head for 2 days now... I don't have an issue with multiple json files. This is what the plugin generates, results.json is the only json file I have and it looks like its being copied from my Jenkins Slave Node correctly
$ ls -1
blue
charts
feature-overview.html
results.json
velocity.log
The text was updated successfully, but these errors were encountered: