技术文章 - CS290110
运行“windchill wt.auth.Authentication”工具时出现错误“java.net.ProtocolException:服务器重定向次数过多 (20)”
已修改: 16-Jan-2023
适用于
- Windchill PDMLink 10.2
说明
运行windchill wt时出现以下错误。授权。身份验证工具:
DEBUG [main] wt.httpgw.HTTPLogin - 打开与 https://<SERVER>/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login 的 URL 连接
DEBUG [main] wt.httpgw.HTTPLogin - 意外的内容类型:text/html
DEBUG [main] wt.httpgw.HTTPLogin - 无法从连接获取输入流
java.net.ProtocolException:服务器重定向次数过多 (20)
在 sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)
在 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
在 java.lang.reflect.Constructor.newInstance(Constructor.java:526)
在 sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675)
在 sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673)
在 java.security.AccessController.doPrivileged(本机方法)
在 sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671)
在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244)
在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
在 wt.httpgw.HTTPLogin.init(HTTPLogin.java:318)
在 wt.method.RemoteMethodServer.initAuthenticator(RemoteMethodServer.java:957)
在 wt.method.RemoteMethodServer.handleAuthenticationException (RemoteMethodServer.java:936)
在 wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:799)
在 wt.auth.Authentication.getUserName(Authentication.java:68)
在 wt.auth.Authentication.main(Authentication.java:235)
原因:java.net.ProtocolException:服务器重定向次数过多 (20)
在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1636)
在 sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2678)
在 java.net.URLConnection.getContentType(URLConnection.java:522)
在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentType(HttpsURLConnectionImpl.java:406)
在 wt.httpgw.HTTPLogin.init(HTTPLogin.java:314)
... 还有 5 个
DEBUG [main] wt.httpgw.HTTPLogin - 意外的内容类型:text/html
DEBUG [main] wt.httpgw.HTTPLogin - 无法从连接获取输入流
java.net.ProtocolException:服务器重定向次数过多 (20)
在 sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)
在 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
在 java.lang.reflect.Constructor.newInstance(Constructor.java:526)
在 sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675)
在 sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673)
在 java.security.AccessController.doPrivileged(本机方法)
在 sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671)
在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244)
在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
在 wt.httpgw.HTTPLogin.init(HTTPLogin.java:318)
在 wt.method.RemoteMethodServer.initAuthenticator(RemoteMethodServer.java:957)
在 wt.method.RemoteMethodServer.handleAuthenticationException (RemoteMethodServer.java:936)
在 wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:799)
在 wt.auth.Authentication.getUserName(Authentication.java:68)
在 wt.auth.Authentication.main(Authentication.java:235)
原因:java.net.ProtocolException:服务器重定向次数过多 (20)
在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1636)
在 sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2678)
在 java.net.URLConnection.getContentType(URLConnection.java:522)
在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentType(HttpsURLConnectionImpl.java:406)
在 wt.httpgw.HTTPLogin.init(HTTPLogin.java:314)
... 还有 5 个
这是文章 290110 的 PDF 版本,可能已过期。最新版本 CS290110