我使用本地(内部)ip地址创建了一个Worklight数据库,而我的server.xml引用了我的内部ip地址,而不是我的外部地址。那有关系吗?这是我在控制台日志中发现的错误 - 我只想注意,我的端口:446在我的防火墙中没有打开。这会导致这个错误吗?
[2/10/15 20:23:09:975 EST] 00001815 com.ibm.worklight.admin.actions.BaseTransaction I Result: WLNativeSales360: defaultServer///(MY INTERNAL IP): Commit
[2/10/15 20:23:09:975 EST] 00001815 com.ibm.worklight.admin.actions.BaseTransaction I WLNativeSales360: defaultServer///(MY INTERNAL IP): 2015-02-11T01:23:09.969Z: Operation to deploy adapter SQLAdapter was commited
[2/10/15 20:23:09:989 EST] 00001815 SystemErr R 53587426 WorklightManagementPU-db2 INFO [pool-3-thread-3] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.
[2/10/15 20:46:04:498 EST] 000017e0 com.ibm.ws.webcontainer.servlet I SRVE0242I: [WLNativeSales360] [/WLNativeSales360] [GadgetAPIServlet]: Initialization successful.
[2/10/15 20:46:04:784 EST] 000017e0 SystemOut O com.ibm.net.SocketKeepAliveParameters
[2/10/15 20:49:14:785 EST] 000017e0 com.worklight.adapters.sql.SQLConnectionManager E FWLSE0012E: ERROR: Could not connect to database. Cannot create PoolableConnectionFactory ([jcc][t4][2043][11550][3.63.123] Exception java.net.ConnectException: Error opening socket to server /(MY EXTERNAL IP) on port 446 with message: Connection timed out. ERRORCODE=-4499, SQLSTATE=08001). [project WLNativeSales360]
[2/10/15 20:54:43:076 EST] 000018b0 com.worklight.adapters.sql.SQLConnectionManager E FWLSE0012E: ERROR: Could not connect to database. Cannot create PoolableConnectionFactory ([jcc][t4][2043][11550][3.63.123] Exception java.net.ConnectException: Error opening socket to server /(MY EXTERNAL IP) on port 446 with message: Connection timed out. ERRORCODE=-4499, SQLSTATE=08001). [project WLNativeSales360]
[2/10/15 20:59:21:796 EST] 000018b0 com.worklight.adapters.sql.SQLConnectionManager E FWLSE0012E: ERROR: Could not connect to database. Cannot create PoolableConnectionFactory ([jcc][t4][2043][11550][3.63.123] Exception java.net.ConnectException: Error opening socket to server /(MY EXTERNAL IP) on port 446 with message: Connection timed out. ERRORCODE=-4499, SQLSTATE=08001). [project WLNativeSales360]
[2/11/15 5:29:54:423 EST] 00000055 com.ibm.puremeap.listeners.AppCenterServletContextListener I cleaning the database leaks at Wed Feb 11 05:29:54 EST 2015
答案 0 :(得分:0)
这是实际错误:
异常java.net.ConnectException:打开服务器的套接字时出错 /(MY EXTERNAL IP)在端口446上显示消息:连接超时。 ERRORCODE = -4499,SQLSTATE = 08001)