技术文章 - CS323837
Windchill 中出现“java.net.NoRouteToHostException:没有到主机的路由(主机无法访问)”错误
已修改: 22-Oct-2024
适用于
- FlexPLM 10.2 to 12.1
- Windchill PDMLink 10.2 to 12.1
说明
- java.net.NoRouteToHostException:在 Windchill 启动期间或在服务器状态页面中,没有到主机的路由(主机无法访问)错误
- 使用 SSL/HTTPS 协议在副本服务器上安装保管库文件夹失败并出现错误
ERROR [ajp-nio-127.0.0.1-8010-exec-1] wt.util.jmx.WDSJMXConnector Administrator - Error connecting to WindchillDS JMX java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: CorporateLdap.domain.com; nested exception is: java.net.NoRouteToHostException: No route to host (Host unreachable)] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369)
- FlexPLM 服务器关闭并且 BGMS 日志包含以下错误:
INFO [main] wt.system.err - javax.naming.CommunicationException: ADHostname.domain.com:3268 [Root exception is java.net.NoRouteToHostException: No route to host (Host unreachable)] date/time INFO [main] wt.system.err - at com.sun.jndi.ldap.Connection.<init>(Connection.java:238) date/time INFO [main] wt.system.err - at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137) date/time INFO [main] wt.system.err - at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1609) date/time INFO [main] wt.system.err - at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2749) date/time INFO [main] wt.system.err - Caused by: java.net.NoRouteToHostException: No route to host (Host unreachable) date/time INFO [main] wt.system.err - at java.net.PlainSocketImpl.socketConnect(Native Method) date/time INFO [main] wt.system.err - wt.org.OrganizationServicesIEException: javax.naming.CommunicationException: ADHostname.domain.com:3268 date/time INFO [main] wt.system.err - at wt.org.LdapServices.queryPrincipalsFromLdap(LdapServices.java:955) date/time FATAL [main] wt.method.server - MethodServerMain abort wt.util.WTException: wt.org.OrganizationServicesIEException: javax.naming.CommunicationException: ADHostname.domain.com:3268 date/time ERROR [wt.log4j.jmx.AsyncJDBCAppender.worker-3] wt.log4j.jmx.AsyncJDBCAppender - Exception while flushing connection: default java.sql.SQLRecoverableException: IO Error: Socket read interrupted date/time ERROR [wt.log4j.jmx.AsyncJDBCAppender.worker-3] wt.log4j.jmx.AsyncJDBCAppender - MiscLogEvents: exception raised closing prepared statement java.sql.SQLRecoverableException: Closed Connection at oracle.jdbc.driver.PhysicalConnection.needLine(PhysicalConnection.java:3247)
- Windchill Loader 安装失败,方法服务器日志中出现以下错误消息:
Caused by: java.rmi.ConnectIOException: Exception creating connection to: <hostname>; nested exception is: java.net.NoRouteToHostException: No route to host (Host unreachable) at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:635) at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:209) at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196) at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:132) at wt.cache.CacheManager_Stub.registerSlave(Unknown Source) at wt.cache.RemoteCacheServer.registerSlaveInternal(RemoteCacheServer.java:197) ... 22 more Caused by: java.net.NoRouteToHostException: No route to host (Host unreachable) at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.base/java.net.Socket.connect(Socket.java:609) at java.base/java.net.Socket.connect(Socket.java:558) at java.base/java.net.Socket.<init>(Socket.java:454) at java.base/java.net.Socket.<init>(Socket.java:231) at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40) at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:617)
- 将Active Directory用户添加到多个组时出现错误
- NotificationQueue处于就绪状态,并且未处于执行状态
- BackgroundMethod 服务器日志中的错误
wt.notify.NotificationException: wt.org.OrganizationServicesIEException: javax.naming.CommunicationException: <AD Hostname:port>:3269 Nested exception is: wt.org.OrganizationServicesIEException: javax.naming.CommunicationException: <AD Hostname:port>:3269 at wt.org.LdapServices.queryPrincipalsFromLdap(LdapServices.java:1148) at wt.org.LdapServices.queryPrincipals(LdapServices.java:2511) at jdk.internal.reflect.GeneratedMethodAccessor1048.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399) at com.sun.proxy.$Proxy74.queryPrincipals(Unknown Source) at wt.adapter.delegate.LdapServiceDelegate.queryPrincipals(LdapServiceDelegate.java:188) at wt.org.StandardOrganizationServicesManager._queryPrincipals(StandardOrganizationServicesManager.java:12263) at wt.org.StandardOrganizationServicesManager._queryPrincipals(StandardOrganizationServicesManager.java:12216) at wt.org.StandardOrganizationServicesManager._queryPrincipals(StandardOrganizationServicesManager.java:12201) at wt.org.StandardOrganizationServicesManager.findLikeUsers(StandardOrganizationServicesManager.java:4106) at wt.org.StandardOrganizationServicesManager.findLikeUsers(StandardOrganizationServicesManager.java:4131) at jdk.internal.reflect.GeneratedMethodAccessor1139.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399) at com.sun.proxy.$Proxy73.findLikeUsers(Unknown Source) at wt.notify.TemplateEmailNotification.send(TemplateEmailNotification.java:608) at wt.notify.StandardNotificationManager.processSend(StandardNotificationManager.java:2990) at jdk.internal.reflect.GeneratedMethodAccessor606.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at wt.queue.QueueEntry.execute(QueueEntry.java:231) at wt.queue.ProcessingQueue.execEntry(ProcessingQueue.java:312) at wt.queue.ProcessingQueue.execEntries(ProcessingQueue.java:898) at wt.queue.PollingQueueThread.run(PollingQueueThread.java:103)
这是文章 323837 的 PDF 版本,可能已过期。最新版本 CS323837