我正在为数据库(SQL)部署谷歌搜索设备连接器。当我运行“run.bat”时,我的日志中出现了错误:
java.io.IOException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host "xyz", port 1433 has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
at com.google.enterprise.adaptor.database.DatabaseAdaptor.getDocIds(DatabaseAdaptor.java:235)
at com.google.enterprise.adaptor.DocIdSender.pushFullDocIdsFromAdaptor(DocIdSender.java:69)
at com.google.enterprise.adaptor.GsaCommunicationHandler$PushRunnable.run(GsaCommunicationHandler.java:856)
at com.google.enterprise.adaptor.OneAtATimeRunnable.run(OneAtATimeRunnable.java:69)
at com.google.enterprise.adaptor.ShutdownWaiter$NotificationRunnable.run(ShutdownWaiter.java:183)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
我尝试过以下解决方案:
答案 0 :(得分:0)
确保所有TCP动态端口都设置为0,并且除了当前设置正确的IPALL之外的所有TCP端口都是空白的。
它看起来像是应用程序服务器和SQL Server之间的通信问题。我建议在CMD窗口中使用TELNET检查端口,使用SQL服务器的IP地址或域名。
TELNET pc.name.com 1433
或
TELNET 172.0.0.1 1433
如果在此之后出现空白屏幕,则说明您已成功并且端口已打开。如果没有,则阻止连接的防火墙或网络设置。