0 Replies Latest reply on May 3, 2021 9:17 AM by Chakradhar Donuri

    Unable to run Informatica-EIC / REST-API-Samples

    Chakradhar Donuri New Member

      Hi,

       

      I'm trying to run the REST-API-Samples from here: REST-API-Samples/java at master · Informatica-EIC/REST-API-Samples · GitHub

      I've downloaded the necessary libraries and added them to my project i.e. client.jar, fuzzywuzzy.jar, and opencsv.jar. I've downloaded the client.jar file from https://<cataloghost>:<port>/access/2/files/client.jar

      I'm trying to run one of the class files. i.e. BGAssociationReport.java

      Even after adding the URL, Username, and password in APIUtils.java, I'm facing the below issue and I've attached the screenshot to this post.

       

      com.infa.products.ldm.core.rest.v2.client.invoker.ApiException: java.net.UnknownHostException: https

      at com.infa.products.ldm.core.rest.v2.client.invoker.ApiClient.execute(ApiClient.java:974)

      at com.infa.products.ldm.core.rest.v2.client.api.internal.ObjectInfoApi.catalogDataObjectsGetWithHttpInfo(ObjectInfoApi.java:189)

      at com.infa.products.ldm.core.rest.v2.client.api.internal.ObjectInfoApi.catalogDataObjectsGet(ObjectInfoApi.java:163)

      at com.infa.products.ldm.core.rest.v2.client.api.ObjectInfoApi.catalogDataObjectsGet(ObjectInfoApi.java:43)

      at com.infa.eic.sample.APIUtils.getAssetsByType(APIUtils.java:137)

      at com.infa.eic.sample.BGAssociationReport.run(BGAssociationReport.java:87)

      at com.infa.eic.sample.BGAssociationReport.main(BGAssociationReport.java:141)

      Caused by: java.net.UnknownHostException: https

      at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)

      at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)

      at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)

      at java.net.InetAddress.getAllByName0(InetAddress.java:1277)

      at java.net.InetAddress.getAllByName(InetAddress.java:1193)

      at java.net.InetAddress.getAllByName(InetAddress.java:1127)

      at com.squareup.okhttp.Dns$1.lookup(Dns.java:39)

      at com.squareup.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:175)

      at com.squareup.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:141)

      at com.squareup.okhttp.internal.http.RouteSelector.next(RouteSelector.java:83)

      at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:174)

      at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)

      at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)

      at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)

      at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)

      at com.squareup.okhttp.Call.getResponse(Call.java:286)

      at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)

      at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)

      at com.squareup.okhttp.Call.execute(Call.java:80)

      at com.infa.products.ldm.core.rest.v2.client.invoker.ApiClient.execute(ApiClient.java:970)

       

      Can someone help me figure out what this issue is?