{"action":"closed","issue":{"url":"https://api.github.com/repos/Apereo-Learning-Analytics-Initiative/OpenLRW/issues/30","repository_url":"https://api.github.com/repos/Apereo-Learning-Analytics-Initiative/OpenLRW","labels_url":"https://api.github.com/repos/Apereo-Learning-Analytics-Initiative/OpenLRW/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/Apereo-Learning-Analytics-Initiative/OpenLRW/issues/30/comments","events_url":"https://api.github.com/repos/Apereo-Learning-Analytics-Initiative/OpenLRW/issues/30/events","html_url":"https://github.com/Apereo-Learning-Analytics-Initiative/OpenLRW/issues/30","id":272790096,"node_id":"MDU6SXNzdWUyNzI3OTAwOTY=","number":30,"title":"Session Sensor Error message","user":{"login":"jxr73","id":33533143,"node_id":"MDQ6VXNlcjMzNTMzMTQz","avatar_url":"https://avatars1.githubusercontent.com/u/33533143?v=4","gravatar_id":"","url":"https://api.github.com/users/jxr73","html_url":"https://github.com/jxr73","followers_url":"https://api.github.com/users/jxr73/followers","following_url":"https://api.github.com/users/jxr73/following{/other_user}","gists_url":"https://api.github.com/users/jxr73/gists{/gist_id}","starred_url":"https://api.github.com/users/jxr73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxr73/subscriptions","organizations_url":"https://api.github.com/users/jxr73/orgs","repos_url":"https://api.github.com/users/jxr73/repos","events_url":"https://api.github.com/users/jxr73/events{/privacy}","received_events_url":"https://api.github.com/users/jxr73/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-10T01:26:29Z","updated_at":"2018-11-13T23:45:23Z","closed_at":"2018-11-13T23:45:23Z","author_association":"NONE","body":"I have several sensors written for Navigation, Link click events that work correctly.  However, when I run this session event, I get an error response.  This seems to be related to json deserializing the actor entity that is added to the generatedsession.\r\n\r\nCaliper JSON:\r\n\r\n{\r\n    \"sensor\": \"id\",\r\n    \"sendTime\": \"2017-11-08T17:04:34.000Z\",\r\n    \"data\": [\r\n        {\r\n            \"@context\": \"http://purl.imsglobal.org/ctx/caliper/v1/Context\",\r\n            \"@type\": \"http://purl.imsglobal.org/caliper/v1/SessionEvent\",\r\n            \"actor\": {\r\n                \"@id\": \"jxr73@psu.edu\",\r\n                \"@context\": \"http://purl.imsglobal.org/ctx/caliper/v1/Context\",\r\n                \"@type\": \"http://purl.imsglobal.org/caliper/v1/lis/Person\",\r\n                \"name\": null,\r\n                \"description\": null,\r\n                \"extensions\": {},\r\n                \"dateCreated\": null,\r\n                \"dateModified\": null\r\n            },\r\n            \"action\": \"http://purl.imsglobal.org/vocab/caliper/v1/action#LoggedIn\",\r\n            \"object\": {\r\n                \"@id\": \"https://courses.worldcampus.psu.edu/\",\r\n                \"@context\": \"http://purl.imsglobal.org/ctx/caliper/v1/Context\",\r\n                \"@type\": \"http://purl.imsglobal.org/caliper/v1/SoftwareApplication\",\r\n                \"name\": \"Penn State worldcampus\",\r\n                \"description\": null,\r\n                \"extensions\": {},\r\n                \"dateCreated\": null,\r\n                \"dateModified\": \"2017-11-08T17:04:34.000Z\"\r\n            },\r\n            \"target\": null,\r\n            \"generated\": {\r\n                \"@id\": \"http://imsglobal.org/sampleCaliperApp/session-123456789\",\r\n                \"@context\": \"http://purl.imsglobal.org/ctx/caliper/v1/Context\",\r\n                \"@type\": \"http://purl.imsglobal.org/caliper/v1/Session\",\r\n                \"name\": \"session-123456789\",\r\n                \"description\": \"new\",\r\n                \"extensions\": {},\r\n                \"dateCreated\": \"2017-11-08T17:04:34.000Z\",\r\n                \"dateModified\": null,\r\n                \"actor\": {\r\n                    \"@id\": \"jxr73@psu.edu\",\r\n                    \"@context\": \"http://purl.imsglobal.org/ctx/caliper/v1/Context\",\r\n                    \"@type\": \"http://purl.imsglobal.org/caliper/v1/lis/Person\",\r\n                    \"name\": null,\r\n                    \"description\": null,\r\n                    \"extensions\": {},\r\n                    \"dateCreated\": null,\r\n                    \"dateModified\": null\r\n                },\r\n                \"startedAtTime\": \"2017-11-08T17:04:34.000Z\",\r\n                \"endedAtTime\": \"2017-08-16T05:00:00.000Z\",\r\n                \"duration\": \"PT22S\"\r\n            },\r\n            \"eventTime\": \"2017-11-08T17:04:34.000Z\",\r\n            \"edApp\": {\r\n                \"@id\": \"https://courses.worldcampus.psu.edu/\",\r\n                \"@context\": \"http://purl.imsglobal.org/ctx/caliper/v1/Context\",\r\n                \"@type\": \"http://purl.imsglobal.org/caliper/v1/SoftwareApplication\",\r\n                \"name\": \"Penn State worldcampus\",\r\n                \"description\": null,\r\n                \"extensions\": {},\r\n                \"dateCreated\": null,\r\n                \"dateModified\": \"2017-11-08T17:04:34.000Z\"\r\n            },\r\n            \"group\": null,\r\n            \"membership\": null,\r\n            \"federatedSession\": null\r\n        }\r\n    ]\r\n}\r\n\r\n\r\nResponse\r\n{\"description\":\"Could not read document: Can not deserialize instance of java.lang.String out of START_OBJECT\r\n token\\n at [Source: java.io.PushbackInputStream@347b5315; line: 39, column: 26] (through reference chain\r\n: unicon.matthews.caliper.Builder[\\\"data\\\"]->java.util.ArrayList[0]->unicon.matthews.caliper.Builder\r\n[\\\"generated\\\"]->unicon.matthews.caliper.Builder[\\\"actor\\\"]); nested exception is com.fasterxml.jackson\r\n.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT\r\n token\\n at [Source: java.io.PushbackInputStream@347b5315; line: 39, column: 26] (through reference chain\r\n: unicon.matthews.caliper.Builder[\\\"data\\\"]->java.util.ArrayList[0]->unicon.matthews.caliper.Builder\r\n[\\\"generated\\\"]->unicon.matthews.caliper.Builder[\\\"actor\\\"])\"}\r\n);</script>"}}
{"actor":{"display_login":"xchopin"}}