Article - CS314949

After installing CPS08, wt.auth.Authentication fails from time to time in Windchill

Modified: 02-Feb-2021   


Applies To

  • Windchill PDMLink 11.1 M020-CPS08 to M020-CPS14
  • FlexPLM 11.1 M020

Description

  • After installing CPS08, wt.auth.Authentication fails from time to time
  • Error:
DEBUG [main] wt.httpgw.HTTPLogin - Opening URL connection to http://andy.ptc.com/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login
DEBUG [main] wt.httpgw.HTTPLogin - Unexpected content type: text/html; charset=iso-8859-1
DEBUG [main] wt.httpgw.HTTPLogin - Failed to get input stream from connection
java.io.IOException: Server returned HTTP response code: 503 for URL: http://andy.ptc.com/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login
        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:1926)
        at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1921)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1920)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1490)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at wt.httpgw.HTTPLogin.init(HTTPLogin.java:334)
        at wt.method.RemoteMethodServer.initAuthenticator(RemoteMethodServer.java:1060)
        at wt.method.RemoteMethodServer.handleAuthenticationException(RemoteMethodServer.java:1039)
        at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:903)
        at wt.auth.Authentication.getUserName(Authentication.java:68)
        at wt.auth.Authentication.main(Authentication.java:235)
Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://andy.ptc.com/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2982)
        at java.net.URLConnection.getContentType(URLConnection.java:512)
        at wt.httpgw.HTTPLogin.init(HTTPLogin.java:330)
        ... 5 more
DEBUG [main] wt.httpgw.HTTPLogin - HTTP login failed: java.io.IOException: http://andy.ptc.com/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login: HTTP response 503, Service Unavailable
java.io.IOException: http://andy.ptc.com/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login: HTTP response 503, Service Unavailable
        at wt.httpgw.HTTPLogin.init(HTTPLogin.java:349)
        at wt.method.RemoteMethodServer.initAuthenticator(RemoteMethodServer.java:1060)
        at wt.method.RemoteMethodServer.handleAuthenticationException(RemoteMethodServer.java:1039)
        at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:903)
        at wt.auth.Authentication.getUserName(Authentication.java:68)
        at wt.auth.Authentication.main(Authentication.java:235)
wt.util.WTRemoteException: Unable to invoke remote method; nested exception is:
        wt.method.AuthenticationException
        at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:914)
        at wt.auth.Authentication.getUserName(Authentication.java:68)
        at wt.auth.Authentication.main(Authentication.java:235)
  • Exception in MethodServer log:
ERROR : wt.httpgw.HTTPAuthentication  - HTTP login failed: client host = 127.0.0.1
This is a printer-friendly version of Article 314949 and may be out of date. For the latest version click CS314949