gherkin.deps.com.google.gson.JsonSyntaxException

java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 4

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

  • java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 4
  • java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 4
  • via Jenkins JIRA by Joviano Dias, 10 months ago
    java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 4
  • Stack trace

    • gherkin.deps.com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 4 at gherkin.deps.com.google.gson.Gson.fromJson(Gson.java:806) at gherkin.deps.com.google.gson.Gson.fromJson(Gson.java:734) at gherkin.JSONParser.parse(JSONParser.java:41) at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberJSONParser.parse(CucumberJSONParser.java:77) at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberJSONParser.parse(CucumberJSONParser.java:43) at org.jenkinsci.plugins.cucumber.jsontestsupport.DefaultTestResultParserImpl$ParseResultCallable.invoke(DefaultTestResultParserImpl.java:159) at org.jenkinsci.plugins.cucumber.jsontestsupport.DefaultTestResultParserImpl$ParseResultCallable.invoke(DefaultTestResultParserImpl.java:105) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2691) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.