{"action":"reopened","issue":{"url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/issues/308","repository_url":"https://api.github.com/repos/watson-developer-cloud/java-sdk","labels_url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/issues/308/comments","events_url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/issues/308/events","html_url":"https://github.com/watson-developer-cloud/java-sdk/issues/308","id":157746050,"number":308,"title":"[speech-to-text] recognize() method without sessions failing with JsonParseException","user":{"login":"jeffpk62","id":10051651,"avatar_url":"https://avatars.githubusercontent.com/u/10051651?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffpk62","html_url":"https://github.com/jeffpk62","followers_url":"https://api.github.com/users/jeffpk62/followers","following_url":"https://api.github.com/users/jeffpk62/following{/other_user}","gists_url":"https://api.github.com/users/jeffpk62/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffpk62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffpk62/subscriptions","organizations_url":"https://api.github.com/users/jeffpk62/orgs","repos_url":"https://api.github.com/users/jeffpk62/repos","events_url":"https://api.github.com/users/jeffpk62/events{/privacy}","received_events_url":"https://api.github.com/users/jeffpk62/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/labels/speech-to-text","name":"speech-to-text","color":"c7def8"},{"url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"open","locked":false,"assignee":{"login":"germanattanasio","id":313157,"avatar_url":"https://avatars.githubusercontent.com/u/313157?v=3","gravatar_id":"","url":"https://api.github.com/users/germanattanasio","html_url":"https://github.com/germanattanasio","followers_url":"https://api.github.com/users/germanattanasio/followers","following_url":"https://api.github.com/users/germanattanasio/following{/other_user}","gists_url":"https://api.github.com/users/germanattanasio/gists{/gist_id}","starred_url":"https://api.github.com/users/germanattanasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/germanattanasio/subscriptions","organizations_url":"https://api.github.com/users/germanattanasio/orgs","repos_url":"https://api.github.com/users/germanattanasio/repos","events_url":"https://api.github.com/users/germanattanasio/events{/privacy}","received_events_url":"https://api.github.com/users/germanattanasio/received_events","type":"User","site_admin":false},"assignees":[{"login":"germanattanasio","id":313157,"avatar_url":"https://avatars.githubusercontent.com/u/313157?v=3","gravatar_id":"","url":"https://api.github.com/users/germanattanasio","html_url":"https://github.com/germanattanasio","followers_url":"https://api.github.com/users/germanattanasio/followers","following_url":"https://api.github.com/users/germanattanasio/following{/other_user}","gists_url":"https://api.github.com/users/germanattanasio/gists{/gist_id}","starred_url":"https://api.github.com/users/germanattanasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/germanattanasio/subscriptions","organizations_url":"https://api.github.com/users/germanattanasio/orgs","repos_url":"https://api.github.com/users/germanattanasio/repos","events_url":"https://api.github.com/users/germanattanasio/events{/privacy}","received_events_url":"https://api.github.com/users/germanattanasio/received_events","type":"User","site_admin":false},{"login":"max-vogler","id":864168,"avatar_url":"https://avatars.githubusercontent.com/u/864168?v=3","gravatar_id":"","url":"https://api.github.com/users/max-vogler","html_url":"https://github.com/max-vogler","followers_url":"https://api.github.com/users/max-vogler/followers","following_url":"https://api.github.com/users/max-vogler/following{/other_user}","gists_url":"https://api.github.com/users/max-vogler/gists{/gist_id}","starred_url":"https://api.github.com/users/max-vogler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-vogler/subscriptions","organizations_url":"https://api.github.com/users/max-vogler/orgs","repos_url":"https://api.github.com/users/max-vogler/repos","events_url":"https://api.github.com/users/max-vogler/events{/privacy}","received_events_url":"https://api.github.com/users/max-vogler/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/milestones/9","html_url":"https://github.com/watson-developer-cloud/java-sdk/milestones/3.0.1","labels_url":"https://api.github.com/repos/watson-developer-cloud/java-sdk/milestones/9/labels","id":1726311,"number":9,"title":"3.0.1","description":"* Update test cases to use `mockserver`\r\n* Update javadoc: https://dev.liferay.com/participate/javadoc-guidelines","creator":{"login":"germanattanasio","id":313157,"avatar_url":"https://avatars.githubusercontent.com/u/313157?v=3","gravatar_id":"","url":"https://api.github.com/users/germanattanasio","html_url":"https://github.com/germanattanasio","followers_url":"https://api.github.com/users/germanattanasio/followers","following_url":"https://api.github.com/users/germanattanasio/following{/other_user}","gists_url":"https://api.github.com/users/germanattanasio/gists{/gist_id}","starred_url":"https://api.github.com/users/germanattanasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/germanattanasio/subscriptions","organizations_url":"https://api.github.com/users/germanattanasio/orgs","repos_url":"https://api.github.com/users/germanattanasio/repos","events_url":"https://api.github.com/users/germanattanasio/events{/privacy}","received_events_url":"https://api.github.com/users/germanattanasio/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":47,"state":"closed","created_at":"2016-04-23T03:12:05Z","updated_at":"2016-06-28T20:44:20Z","due_on":"2016-06-10T04:00:00Z","closed_at":"2016-06-08T21:32:22Z"},"comments":8,"created_at":"2016-05-31T19:04:11Z","updated_at":"2016-06-28T20:44:20Z","closed_at":null,"body":"The following Java program (renamed for attachment) tests the recognize() method without sessions: \r\n[STTrecognizeSessionless.txt](https://github.com/watson-developer-cloud/java-sdk/files/291916/STTrecognizeSessionless.txt).  I can't find anything wrong in the call to the method, though I could be mistaken.  But the program produces a JsonParseException, presumably on the options object that is passed to the call.:\r\n\r\n```\r\nException in thread \"main\" com.google.gson.JsonParseException: Expecting array but found object: {}\r\n        at com.google.gson.JsonArrayDeserializationVisitor.startVisitingObject(JsonArrayDeserializationVisitor.java:89)\r\n        at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:119)\r\n        at com.google.gson.JsonDeserializationContextDefault.fromJsonArray(JsonDeserializationContextDefault.java:67)\r\n        at com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:52)\r\n        at com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:663)\r\n        at com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:624)\r\n        at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:51)\r\n        at com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:92)\r\n        at com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:117)\r\n        at com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)\r\n        at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)\r\n        at com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:76)\r\n        at com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:54)\r\n        at com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:663)\r\n        at com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:624)\r\n        at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:51)\r\n        at com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:92)\r\n        at com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:117)\r\n        at com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)\r\n        at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)\r\n        at com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:76)\r\n        at com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:54)\r\n        at com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:663)\r\n        at com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:624)\r\n        at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:51)\r\n        at com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:92)\r\n        at com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:117)\r\n        at com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)\r\n        at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)\r\n        at com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:76)\r\n        at com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:54)\r\n        at com.google.gson.Gson.fromJson(Gson.java:551)\r\n        at com.google.gson.Gson.fromJson(Gson.java:498)\r\n       at com.ibm.watson.developer_cloud.util.ResponseUtils.getObject(ResponseUtils.java:105)\r\n        at com.ibm.watson.developer_cloud.service.WatsonService.executeRequest(WatsonService.java:184)\r\n        at com.ibm.watson.developer_cloud.speech_to_text.v1.SpeechToText.recognize(SpeechToText.java:285)\r\n        at com.ibm.watson.developer_cloud.speech_to_text.v1.STTrecognizeSessionless.main(STTrecognizeSessionless.java:19)\r\n```\r\n\r\nI can pass along the audio file if you need it.\r\n\r\nTesting with **java-sdk-2.10.0-jar-with-dependencies.jar**.\r\n\r\n"}}
{"actor":{"display_login":"germanattanasio"}}