在启用 SSO 的 Windchill 上,Windchill 命令失败,HTTP 响应代码:403
适用于
- Windchill PDMLink 11.0 to 12.1
说明
- Windchill 配置了代理 Web 服务器,并且 Windchill 命令在启用 SSO 时失败
运行时屏幕上出现以下错误 windchill --javaargs="-Dwt.auth.trustedAuth.username=<username>" wt.auth.Authentication诊断:
DEBUG wt.httpgw.HTTPLogin - Opening URL connection to https://<hostname>/Windchill/trustedAuth/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login?wt.effectiveUid=<username>
DEBUG wt.httpgw.HTTPLogin - Unexpected content type: text/html;charset=UTF-8
DEBUG wt.httpgw.HTTPLogin - Failed to get input stream from connection
java.io.IOException: Server returned HTTP response code: 403 for URL: https://<hostname>/Windchill/trustedAuth/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login?wt.effectiveUid=<username>
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1974) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1969) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1968) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1536) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) ~[?:?]
at wt.httpgw.HTTPLogin.init(HTTPLogin.java:334) [codebase/:?]
at wt.method.RemoteMethodServer.initAuthenticator(RemoteMethodServer.java:1064) [codebase/:?]
at wt.method.RemoteMethodServer.handleAuthenticationException(RemoteMethodServer.java:1043) [codebase/:?]
at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:907) [codebase/:?]
at wt.auth.Authentication.getUserName(Authentication.java:68) [codebase/:?]
at wt.auth.Authentication.main(Authentication.java:235) [codebase/:?]
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://<hostname>/Windchill/trustedAuth/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login?wt.effectiveUid=<username>
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3114) ~[?:?]
at java.net.URLConnection.getContentType(URLConnection.java:519) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentType(HttpsURLConnectionImpl.java:402) ~[?:?]
at wt.httpgw.HTTPLogin.init(HTTPLogin.java:330) ~[codebase/:?]
... 5 more
DEBUG wt.httpgw.HTTPLogin - HTTP login failed: java.io.IOException: https://<hostname>/Windchill/trustedAuth/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login?wt.effectiveUid=<username>: HTTP response 403, 403
java.io.