{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/2220","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/2220/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/2220/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/2220/events","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/2220","id":340525917,"node_id":"MDU6SXNzdWUzNDA1MjU5MTc=","number":2220,"title":"java.lang.NoSuchMethodError on SqlServers.list()","user":{"login":"zuckermanori","id":41142797,"node_id":"MDQ6VXNlcjQxMTQyNzk3","avatar_url":"https://avatars2.githubusercontent.com/u/41142797?v=4","gravatar_id":"","url":"https://api.github.com/users/zuckermanori","html_url":"https://github.com/zuckermanori","followers_url":"https://api.github.com/users/zuckermanori/followers","following_url":"https://api.github.com/users/zuckermanori/following{/other_user}","gists_url":"https://api.github.com/users/zuckermanori/gists{/gist_id}","starred_url":"https://api.github.com/users/zuckermanori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuckermanori/subscriptions","organizations_url":"https://api.github.com/users/zuckermanori/orgs","repos_url":"https://api.github.com/users/zuckermanori/repos","events_url":"https://api.github.com/users/zuckermanori/events{/privacy}","received_events_url":"https://api.github.com/users/zuckermanori/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-12T07:49:15Z","updated_at":"2018-07-17T08:43:49Z","closed_at":"2018-07-17T08:42:12Z","author_association":"NONE","body":"When running trying to list SqlServers with the following code:\r\n\r\n`Azure azure  = Azure.authenticate(creds)).withDefaultSubscription();\r\nSqlServers sqlServers = azure.sqlServers();\r\nPagedList<SqlServer> list = sqlServers.list();`\r\n\r\nThe call on line 3 \r\n\r\n`sqlServers.list()` \r\n\r\nthrows a java.lang.NoSuchMethodError with the following stack trace:\r\n\r\n`Exception in thread \"main\" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.type.TypeBindings.create(Ljava/lang/Class;[Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/type/TypeBindings;\r\n\tat com.microsoft.rest.serializer.JacksonAdapter.constructJavaType(JacksonAdapter.java:119)\r\n\tat com.microsoft.rest.serializer.JacksonAdapter.deserialize(JacksonAdapter.java:131)\r\n\tat com.microsoft.rest.ServiceResponseBuilder.buildBody(ServiceResponseBuilder.java:216)\r\n\tat com.microsoft.rest.ServiceResponseBuilder.build(ServiceResponseBuilder.java:110)\r\n\tat com.microsoft.azure.AzureResponseBuilder.build(AzureResponseBuilder.java:56)\r\n\tat com.microsoft.azure.management.sql.implementation.ServersInner.listDelegate(ServersInner.java:553)\r\n\tat com.microsoft.azure.management.sql.implementation.ServersInner.access$400(ServersInner.java:42)\r\n\tat com.microsoft.azure.management.sql.implementation.ServersInner$17.call(ServersInner.java:539)\r\n\tat com.microsoft.azure.management.sql.implementation.ServersInner$17.call(ServersInner.java:535)\r\n\tat rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:69)\r\n\tat retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$RequestArbiter.request(RxJavaCallAdapterFactory.java:173)\r\n\tat rx.Subscriber.setProducer(Subscriber.java:211)\r\n\tat rx.internal.operators.OnSubscribeMap$MapSubscriber.setProducer(OnSubscribeMap.java:102)\r\n\tat retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$CallOnSubscribe.call(RxJavaCallAdapterFactory.java:152)\r\n\tat retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$CallOnSubscribe.call(RxJavaCallAdapterFactory.java:138)\r\n\tat rx.Observable.unsafeSubscribe(Observable.java:10142)\r\n\tat rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:48)\r\n\tat rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:33)\r\n\tat rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)\r\n\tat rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)\r\n\tat rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)\r\n\tat rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)\r\n\tat rx.Observable.subscribe(Observable.java:10238)\r\n\tat rx.Observable.subscribe(Observable.java:10205)\r\n\tat rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:444)\r\n\tat rx.observables.BlockingObservable.single(BlockingObservable.java:341)\r\n\tat com.microsoft.azure.management.sql.implementation.ServersInner.list(ServersInner.java:488)\r\n\tat com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl.list(TopLevelModifiableResourcesImpl.java:116)\r\n\tat AzureDiscoveryClient.main(AzureDiscoveryClient.java:19)`"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/405506790","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/2220#issuecomment-405506790","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/2220","id":405506790,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTUwNjc5MA==","user":{"login":"zuckermanori","id":41142797,"node_id":"MDQ6VXNlcjQxMTQyNzk3","avatar_url":"https://avatars2.githubusercontent.com/u/41142797?v=4","gravatar_id":"","url":"https://api.github.com/users/zuckermanori","html_url":"https://github.com/zuckermanori","followers_url":"https://api.github.com/users/zuckermanori/followers","following_url":"https://api.github.com/users/zuckermanori/following{/other_user}","gists_url":"https://api.github.com/users/zuckermanori/gists{/gist_id}","starred_url":"https://api.github.com/users/zuckermanori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuckermanori/subscriptions","organizations_url":"https://api.github.com/users/zuckermanori/orgs","repos_url":"https://api.github.com/users/zuckermanori/repos","events_url":"https://api.github.com/users/zuckermanori/events{/privacy}","received_events_url":"https://api.github.com/users/zuckermanori/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T08:43:49Z","updated_at":"2018-07-17T08:43:49Z","author_association":"NONE","body":"Problem solved!\r\n\r\nThe error came from an incompatibility between the Azure SDK and the jackson-databind library. One of the methods used from this library is relatively new, and the version I had in my project (clean project with just one import - Azure SDK) did not have this method.\r\n\r\nImported the latest jackson-databind as follows:\r\n\r\n<dependency>\r\n        <groupId>com.fasterxml.jackson.core</groupId>\r\n        <artifactId>jackson-databind</artifactId>\r\n        <version>2.9.5</version>\r\n</dependency>\r\nHas solved the problem.\r\n\r\nThanks Everyone for the help."}}
{"actor":{"display_login":"zuckermanori"}}