Article - CS290110

Error "java.net.ProtocolException: Server redirected too many times (20)" when running "windchill wt.auth.Authentication" tool

Modified: 07-Jan-2019   


Applies To

  • Windchill PDMLink 10.2

Description

Error below when running windchill wt.auth.Authentication tool :
DEBUG [main] wt.httpgw.HTTPLogin - Opening URL connection to https://<SERVER>/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login
DEBUG [main] wt.httpgw.HTTPLogin - Unexpected content type: text/html
DEBUG [main] wt.httpgw.HTTPLogin - Failed to get input stream from connection
java.net.ProtocolException: Server redirected too many  times (20)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
          at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675)
          at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671)
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244)
          at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
          at wt.httpgw.HTTPLogin.init(HTTPLogin.java:318)
          at wt.method.RemoteMethodServer.initAuthenticator(RemoteMethodServer.java:957)
          at wt.method.RemoteMethodServer.handleAuthenticationException(RemoteMethodServer.java:936)
          at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:799)
          at wt.auth.Authentication.getUserName(Authentication.java:68)
          at wt.auth.Authentication.main(Authentication.java:235)
Caused by: java.net.ProtocolException: Server redirected too many  times (20)
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1636)
          at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2678)
          at java.net.URLConnection.getContentType(URLConnection.java:522)
          at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentType(HttpsURLConnectionImpl.java:406)
          at wt.httpgw.HTTPLogin.init(HTTPLogin.java:314)
          ... 5 more

 
This is a printer-friendly version of Article 290110 and may be out of date. For the latest version click CS290110