5 Replies Latest reply on Aug 6, 2018 2:38 AM by Naveen B

    Tabcmd error - uncaught exception RuntimeException: java.net.SocketTimeoutException: Read timed out

    Boran Morvaj

      Hello everyone!

       

      I hope you can share some insights about the error I started encountering recently.

       

      I am using tabcmd to generate pdf reports from Tableau workbook that is on Tableau Server (2018.1).

       

      This process has been working fine for more than a year. Recently it started to give the following error:

       

       

      java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out

      at com.tableausoftware.tabcmd.http.HttpRequest.connect(HttpRequest.java:457)

      at com.tableausoftware.tabcmd.http.HttpPostRequest.connect(HttpPostRequest.java:161)

      at com.tableausoftware.tabcmd.http.HttpMultipartPostRequest.connect(HttpMultipartPostRequest.java:101)

      at com.tableausoftware.tabcmd.session.Session.execute(Session.java:492)

      at com.tableausoftware.tabcmd.session.Session.execute(Session.java:479)

      at com.tableausoftware.tabcmd.VizqlSession.<init>(VizqlSession.java:123)

      at com.tableausoftware.tabcmd.commands.Export.getPDFResponse(Export.java:188)

      at com.tableausoftware.tabcmd.commands.Export.export(Export.java:138)

      at com.tableausoftware.tabcmd.commands.Export.execute(Export.java:89)

      at com.tableausoftware.tabcmd.Tabcmd.run(Tabcmd.java:259)

      at com.tableausoftware.tabcmd.Tabcmd.main(Tabcmd.java:164)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)

      at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)

      at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)

      at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58)

      Caused by: java.net.SocketTimeoutException: Read timed out

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

      at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1944)

      at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1939)

      at java.security.AccessController.doPrivileged(Native Method)

      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1938)

      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)

      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)

      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)

      at com.tableausoftware.tabcmd.http.HttpRequest.connect(HttpRequest.java:454)

      ... 18 more

      Caused by: java.net.SocketTimeoutException: Read timed out

      at java.net.SocketInputStream.socketRead0(Native Method)

      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)

      at java.net.SocketInputStream.read(SocketInputStream.java:171)

      at java.net.SocketInputStream.read(SocketInputStream.java:141)

      at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)

      at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)

      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)

      at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)

      at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)

      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)

      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)

      at sun.net.www.protocol.http.HttpURLConnection.getHeaderFields(HttpURLConnection.java:3023)

      at com.tableausoftware.tabcmd.http.HttpRequest.updateCookies(HttpRequest.java:430)

      at com.tableausoftware.tabcmd.http.HttpRequest.connect(HttpRequest.java:453)

      ... 18 more

       

      The command I am using is:

       

      tabcmd export --pagesize a4 --pdf "path_to_tableau_server_worbook" -f "path_to_pdf" --timeout 120 --no-cookie -s "tableau_server_IP" -t "site_name" -u "username" -p "password"

       

       

      Anyone has idea what is causing this?

       

      Thanks!