{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/828","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-java","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/828/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/828/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/828/events","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/828","id":160604473,"number":828,"title":"VMCreateGuide sample failed to create resource group","user":{"login":"smartmaster","id":5144190,"avatar_url":"https://avatars.githubusercontent.com/u/5144190?v=3","gravatar_id":"","url":"https://api.github.com/users/smartmaster","html_url":"https://github.com/smartmaster","followers_url":"https://api.github.com/users/smartmaster/followers","following_url":"https://api.github.com/users/smartmaster/following{/other_user}","gists_url":"https://api.github.com/users/smartmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/smartmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartmaster/subscriptions","organizations_url":"https://api.github.com/users/smartmaster/orgs","repos_url":"https://api.github.com/users/smartmaster/repos","events_url":"https://api.github.com/users/smartmaster/events{/privacy}","received_events_url":"https://api.github.com/users/smartmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-16T08:24:19Z","updated_at":"2016-06-22T08:24:02Z","closed_at":null,"body":"SDK version: v1.0.0-beta1+fixes  \r\nDebug screenshot attached\r\n![000-vmcreateguide-failed-to-create-recource-group](https://cloud.githubusercontent.com/assets/5144190/16110111/b73eb410-33de-11e6-9918-c4c29843b073.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/227675960","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/828#issuecomment-227675960","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/828","id":227675960,"user":{"login":"smartmaster","id":5144190,"avatar_url":"https://avatars.githubusercontent.com/u/5144190?v=3","gravatar_id":"","url":"https://api.github.com/users/smartmaster","html_url":"https://github.com/smartmaster","followers_url":"https://api.github.com/users/smartmaster/followers","following_url":"https://api.github.com/users/smartmaster/following{/other_user}","gists_url":"https://api.github.com/users/smartmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/smartmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartmaster/subscriptions","organizations_url":"https://api.github.com/users/smartmaster/orgs","repos_url":"https://api.github.com/users/smartmaster/repos","events_url":"https://api.github.com/users/smartmaster/events{/privacy}","received_events_url":"https://api.github.com/users/smartmaster/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T08:24:02Z","updated_at":"2016-06-22T08:24:02Z","body":"hi @jianghaolu ,\r\n\r\nI have added the log and found that\r\n1. to get resource group, \r\nResourceGroup resgroup = resourceManagementClient.getResourceGroupsOperations().get(resourceGroupName).getBody();\r\n\r\nHTTP traffic logs are printed, and \"HTTP Get\" returned \"200 OK\"\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n--> GET https://management.azure.com/subscriptions/7315bf64-0ed9-46d8-b4e6-1a6082194d22/resourcegroups/hbbu-res-group?api-version=2015-11-01 http/1.1\r\naccept-language: en-US\r\n--> END GET\r\n<-- 200 OK https://management.azure.com/subscriptions/7315bf64-0ed9-46d8-b4e6-1a6082194d22/resourcegroups/hbbu-res-group?api-version=2015-11-01 (552ms)\r\nCache-Control: no-cache\r\nPragma: no-cache\r\nContent-Type: application/json; charset=utf-8\r\nExpires: -1\r\nVary: Accept-Encoding\r\nx-ms-ratelimit-remaining-subscription-reads: 14976\r\nx-ms-request-id: 3dac0900-4f72-4e52-843b-547b6cf6dd98\r\nx-ms-correlation-request-id: 3dac0900-4f72-4e52-843b-547b6cf6dd98\r\nx-ms-routing-request-id: EASTASIA:20160622T081242Z:3dac0900-4f72-4e52-843b-547b6cf6dd98\r\nStrict-Transport-Security: max-age=31536000; includeSubDomains\r\nDate: Wed, 22 Jun 2016 08:12:42 GMT\r\nOkHttp-Sent-Millis: 1466583162310\r\nOkHttp-Received-Millis: 1466583162579\r\n\r\n{\"id\":\"/subscriptions/7315bf64-0ed9-46d8-b4e6-1a6082194d22/resourceGroups/hbbu-res-group\",\"name\":\"hbbu-res-group\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}\r\n<-- END HTTP (181-byte body)\r\nid=/subscriptions/7315bf64-0ed9-46d8-b4e6-1a6082194d22/resourceGroups/hbbu-res-group, name=hbbu-res-group, location=eastus\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n2. to create Or Updateresource group, resourceManagementClient.getResourceGroupsOperations().createOrUpdate(resourceGroupName, resourceGroupParameters);\r\n\r\n- no HTTP traffic logs are printed, and exception was thrown as below. \r\n\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nVMCreateGuide [Java Application]\t\r\n\tcom.azure.sonmi01.VMCreateGuide at localhost:4083\t\r\n\t\tThread [main] (Suspended (exception NoSuchMethodError))\t\r\n\t\t\tTypeToken$TypeCollector<K>.sortKeysByValue(Map<K,V>, Comparator<? super V>) line: 1165\t\r\n\t\t\tTypeToken$TypeCollector$3(TypeToken$TypeCollector<K>).collectTypes(Iterable<? extends K>) line: 1129\t\r\n\t\t\tTypeToken$TypeCollector$3.collectTypes(Iterable<? extends K>) line: 1114\t\r\n\t\t\tTypeToken$ClassSet.rawTypes() line: 664\t\r\n\t\t\tValidator.validate(Object) line: 59\t\r\n\t\t\tResourceGroupsOperationsImpl.createOrUpdate(String, ResourceGroup) line: 375\t\r\n\t\t\tVMCreateGuide.main(String[]) line: 208\t\r\n\t\tDaemon Thread [Okio Watchdog] (Running)\t\r\n\tD:\\Java\\jdk1.8.0_92\\bin\\javaw.exe (2016年6月22日 下午4:11:25)\t\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\r\nit seems only client side code has something wrong, can you help out?"}}
{"actor":{"display_login":"smartmaster"}}