【发布时间】:2017-03-21 06:10:16
【问题描述】:
我正在为数据库 (SQL) 部署 Google Search Appliance 连接器。当我运行“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)
我尝试了以下解决方案:
- 删除所有 TCP 动态端口并将值 1433 添加到所有 TCP 端口并重新启动 SQL Server。 我的 SQL Server 配置如下所示:
我没有设置动态端口。
有没有其他方法可以解决这个错误。任何帮助,将不胜感激。
【问题讨论】:
-
检查你的防火墙
-
是的,完全关闭您的 Windows 防火墙进行测试。
-
关闭防火墙会完全解决这个问题吗?我正在做一个项目,我没有权限这样做。我会问我的客户@TerryChambers-Onix
标签: sql-server jdbc tcp connector google-search-appliance