--- http_interactions: - request: method: post uri: http://saas.whitesourcesoftware.com/agent body: encoding: UTF-8 string: agent=bundler-plugin&agentVersion=1.0&diff=%5B%7B%22coordinates%22%3A%7B%22artifactId%22%3A%22wss_agent%22%2C%22version%22%3A%220.0.9%22%7D%2C%22dependencies%22%3A%5B%7B%22groupId%22%3A%22bacon%22%2C%22artifactId%22%3A%22bacon-1.2.0.gem%22%2C%22version%22%3A%221.2.0%22%2C%22sha1%22%3A%22xxxxxxxxxxxxxxxxxxxxxxx%22%2C%22optional%22%3A%22%22%2C%22children%22%3A%22%22%2C%22exclusions%22%3A%22%22%7D%5D%7D%5D&product=&productVersion=&timeStamp=1421991472&token=xxxxxx&type=UPDATE headers: User-Agent: - Faraday v0.9.1 Content-Type: - application/x-www-form-urlencoded response: status: code: 500 message: '' headers: Content-Type: - text/html;charset=utf-8 Date: - Fri, 23 Jan 2015 05:38:23 GMT Server: - nginx/1.1.19 Content-Length: - '4921' Connection: - keep-alive body: encoding: UTF-8 string: "JBoss Web/7.0.13.Final - Error report

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
        Expected BEGIN_ARRAY but was STRING at line 1 column 206\n\tcom.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)\n\tcom.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)\n\tcom.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)\n\tcom.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)\n\tcom.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)\n\tcom.google.gson.Gson.fromJson(Gson.java:795)\n\tcom.google.gson.Gson.fromJson(Gson.java:761)\n\tcom.google.gson.Gson.fromJson(Gson.java:710)\n\tcom.wss.service.agent.impl.AgentRequestParams.extractUpdateParams(AgentRequestParams.java:164)\n\tcom.wss.service.agent.impl.AgentRequestParams.fromHttpRequest(AgentRequestParams.java:133)\n\tcom.wss.service.agent.AgentServlet.doPost(AgentServlet.java:71)\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:754)\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:847)\n

root cause

java.lang.IllegalStateException: Expected BEGIN_ARRAY but was
        STRING at line 1 column 206\n\tcom.google.gson.stream.JsonReader.expect(JsonReader.java:339)\n\tcom.google.gson.stream.JsonReader.beginArray(JsonReader.java:306)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)\n\tcom.google.gson.Gson$FutureTypeAdapter.read(Gson.java:876)\n\tcom.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)\n\tcom.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)\n\tcom.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)\n\tcom.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)\n\tcom.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)\n\tcom.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)\n\tcom.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)\n\tcom.google.gson.Gson.fromJson(Gson.java:795)\n\tcom.google.gson.Gson.fromJson(Gson.java:761)\n\tcom.google.gson.Gson.fromJson(Gson.java:710)\n\tcom.wss.service.agent.impl.AgentRequestParams.extractUpdateParams(AgentRequestParams.java:164)\n\tcom.wss.service.agent.impl.AgentRequestParams.fromHttpRequest(AgentRequestParams.java:133)\n\tcom.wss.service.agent.AgentServlet.doPost(AgentServlet.java:71)\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:754)\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:847)\n

note The full stack trace of the root cause is available in the JBoss Web/7.0.13.Final logs.


JBoss Web/7.0.13.Final

" http_version: recorded_at: Fri, 23 Jan 2015 05:37:52 GMT recorded_with: VCR 2.9.3