java.lang.RuntimeException

Error reading response from server

Solutions on the web20173

  • Error reading response from server
  • via Google Groups by gopichand mummineni, 11 months ago
    Error reading response from server
  • Error reading response from server
  • Stack trace

    • java.lang.RuntimeException: Error reading response from server at io.airlift.http.client.FullJsonResponseHandler.readResponseBytes(FullJsonResponseHandler.java:75) at io.airlift.http.client.FullJsonResponseHandler.handle(FullJsonResponseHandler.java:61) at io.airlift.http.client.FullJsonResponseHandler.handle(FullJsonResponseHandler.java:35) at io.airlift.http.client.jetty.JettyHttpClient.execute(JettyHttpClient.java:345) at com.facebook.presto.client.StatementClient.<init>(StatementClient.java:110) at com.facebook.presto.cli.QueryRunner.startInternalQuery(QueryRunner.java:82) at com.facebook.presto.cli.QueryRunner.startQuery(QueryRunner.java:77) at com.facebook.presto.cli.Console.process(Console.java:287) at com.facebook.presto.cli.Console.runConsole(Console.java:228) at com.facebook.presto.cli.Console.run(Console.java:133) at com.facebook.presto.cli.Presto.main(Presto.java:32) Caused by: java.io.IOException: java.lang.RuntimeException: Failed to establish LoginContext for request https://testserver.company.com:8181/v1/statement at org.eclipse.jetty.client.util.InputStreamResponseListener$Input.toIOException(InputStreamResponseListener.java:326) at org.eclipse.jetty.client.util.InputStreamResponseListener$Input.read(InputStreamResponseListener.java:292) at com.google.common.io.CountingInputStream.read(CountingInputStream.java:62) at java.io.FilterInputStream.read(FilterInputStream.java:107) at com.google.common.io.ByteStreams.copy(ByteStreams.java:70) at com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:115) at io.airlift.http.client.FullJsonResponseHandler.readResponseBytes(FullJsonResponseHandler.java:72) ... 10 more Caused by: java.lang.RuntimeException: Failed to establish LoginContext for request https://testserver.company.com:8181/v1/statement at io.airlift.http.client.spnego.SpnegoAuthentication$1.apply(SpnegoAuthentication.java:135) at org.eclipse.jetty.client.AuthenticationProtocolHandler$AuthenticationListener.onComplete(AuthenticationProtocolHandler.java:152) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185) at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:454) at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:401) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:268) at org.eclipse.jetty.http.HttpParser.parseHeaders(HttpParser.java:1024) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1257) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:158) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:119) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:69) at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:90) at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:114) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:186) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) at java.lang.Thread.run(Thread.java:745) Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:897) at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:760) at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617) 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:755) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) at javax.security.auth.login.LoginContext.login(LoginContext.java:587) at io.airlift.http.client.spnego.SpnegoAuthentication.getSession(SpnegoAuthentication.java:197) at io.airlift.http.client.spnego.SpnegoAuthentication.access$200(SpnegoAuthentication.java:46) at io.airlift.http.client.spnego.SpnegoAuthentication$1.apply(SpnegoAuthentication.java:108) ... 24 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 2 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    2 times, 11 months ago
    Unknown user
    Once, 1 year ago
    11 more bugmates