技术文章 - CS314949

在 Windchill 中,安装 CPS08 后 wt.auth.Authentication 验证间歇性地失败

已修改: 02-Feb-2021   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

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

说明

  • 安装 CPS08 后, wt.auth.Authentication 间歇性地失败
  • 错误:
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)
  • 方法服务器日志中出现异常:
ERROR : wt.httpgw.HTTPAuthentication  - HTTP login failed: client host = 127.0.0.1
这是文章 314949 的 PDF 版本,可能已过期。最新版本 CS314949