{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/986","repository_url":"https://api.github.com/repos/Azure/azure-iot-sdks","labels_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/986/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/986/events","html_url":"https://github.com/Azure/azure-iot-sdks/issues/986","id":191240125,"number":986,"title":"Android Java SDK  - IotHubEventCallback not called after sendEventAsync","user":{"login":"kevin-ledinh","id":9961335,"avatar_url":"https://avatars.githubusercontent.com/u/9961335?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-ledinh","html_url":"https://github.com/kevin-ledinh","followers_url":"https://api.github.com/users/kevin-ledinh/followers","following_url":"https://api.github.com/users/kevin-ledinh/following{/other_user}","gists_url":"https://api.github.com/users/kevin-ledinh/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-ledinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-ledinh/subscriptions","organizations_url":"https://api.github.com/users/kevin-ledinh/orgs","repos_url":"https://api.github.com/users/kevin-ledinh/repos","events_url":"https://api.github.com/users/kevin-ledinh/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-ledinh/received_events","type":"User","site_admin":false},"labels":[{"id":255806170,"url":"https://api.github.com/repos/Azure/azure-iot-sdks/labels/bug","name":"bug","color":"fc2929","default":true},{"id":356336017,"url":"https://api.github.com/repos/Azure/azure-iot-sdks/labels/CSS","name":"CSS","color":"e99695","default":false},{"id":255806175,"url":"https://api.github.com/repos/Azure/azure-iot-sdks/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-23T10:56:09Z","updated_at":"2016-12-15T10:06:06Z","closed_at":null,"body":"Hi Azure team,\r\n\r\nPlease advise the following problem when I run the IoT Hub Java SDK to send msg iva AMQP on an Android dev board.\r\n\r\nIn my first set up, I've been using IoT Hub SDK 1.0.11 and proton-j-azure-iot-0.12.2 (downloaded from Maven repo: https://mvnrepository.com/artifact/com.microsoft.azure.iot/proton-j-azure-iot/0.12.2). With this set up, I am able to send messages to the Could (via sendEventAsync) and receive acknowledgement (via IotHubEventCallback).\r\n\r\nIn the second set up, a compiled version of the IoT Hub SDK 1.0.15 is used. It is pulled from Maven Repo. I've also checked that the connection string is valid. However, the behaviour is quite different as follows:\r\n\r\n- It takes three minutes for the DeviceClient.open() to return. Looking in AmqpIotHubConnection.java, openLock.waitLock(maxWaitTimeForOpeningClosingConnection) is where the wait is. Is this necessary?\r\n\r\n- Acknowledgement are not received on the device any more. The implementation of IotHubEventCallback is not called. I used both break points and printing out messages to ADB to confirm this and neither happen. Could you advise on how to investigate and fix this?\r\n\r\nAny help appreciated. Best wishes,\r\n\r\nKevin"},"comment":{"url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/comments/267289189","html_url":"https://github.com/Azure/azure-iot-sdks/issues/986#issuecomment-267289189","issue_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/986","id":267289189,"user":{"login":"kevin-ledinh","id":9961335,"avatar_url":"https://avatars.githubusercontent.com/u/9961335?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-ledinh","html_url":"https://github.com/kevin-ledinh","followers_url":"https://api.github.com/users/kevin-ledinh/followers","following_url":"https://api.github.com/users/kevin-ledinh/following{/other_user}","gists_url":"https://api.github.com/users/kevin-ledinh/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-ledinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-ledinh/subscriptions","organizations_url":"https://api.github.com/users/kevin-ledinh/orgs","repos_url":"https://api.github.com/users/kevin-ledinh/repos","events_url":"https://api.github.com/users/kevin-ledinh/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-ledinh/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T10:06:06Z","updated_at":"2016-12-15T10:06:06Z","body":"Hi @anhashia,\r\n\r\nWould you be able to update me on this issue?\r\n\r\nBest wishes,\r\nKevin"}}
{"actor":{"display_login":"kevin-ledinh"}}