Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Solutions on the web

via Oracle Community by user55555, 1 year ago
java.io.IOException: Server returned HTTP response code: 401 for URL: http://HARI:6500/XAIApp/classicxai
java.io.IOException: Server returned HTTP response code: 401 for URL: http://HARI:6500/XAIApp/classicxai	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1170)	at com.splwg.xai.server.WSAuthenticationImpl.getResponse(WSAuthenticationImpl.java:257)	at com.splwg.xai.server.WSAuthenticationImpl.authenticateHTTPHeaderInformation(WSAuthenticationImpl.java:122)	at com.splwg.xai.servlet.XAIWSServlet.attemptClassicAuthentication(XAIWSServlet.java:160)	at com.splwg.xai.servlet.XAIWSServlet.authenticateUser(XAIWSServlet.java:139)	at com.splwg.xai.servlet.XAIWSServlet.doPost(XAIWSServlet.java:81)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)	at java.lang.Thread.run(Thread.java:595)