2 Replies Latest reply on Aug 14, 2015 11:09 AM by Alaa Yagoub

    Error: "URI is not absolute" with Java code

    Alaa Yagoub

      Hi,

       

      I am trying to use Java code to login to Tableau server with the following properties:

       

       

      UserID="domain\account";
      Pwd="Password";

      URL="http://serverhost/#/signin";

       

      I am getting the follwing error:

       

       

      Exception in thread "main" com.sun.jersey.api.client.ClientHandlerException: java.lang.IllegalArgumentException: URI is not absolute

      at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155)

      at com.sun.jersey.api.client.Client.handle(Client.java:652)

      at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)

      at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)

      at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)

      at com.tableausoftware.documentation.api.rest.util.RestApiUtils.post(RestApiUtils.java:820)

      at com.tableausoftware.documentation.api.rest.util.RestApiUtils.invokeSignIn(RestApiUtils.java:399)

      at java_implement.main(java_implement.java:53)

      Caused by: java.lang.IllegalArgumentException: URI is not absolute

      at java.net.URI.toURL(Unknown Source)

      at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:163)

      at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153)

      ... 7 more

       

       

      Do you have any idea?