簡體   English   中英

無法連接到數據庫Worklight

[英]Could not connect to Database Worklight

我使用本地(內部)IP地址創建了一個Worklight數據庫,並且server.xml引用了內部IP地址而不是外部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

這是實際錯誤:

異常java.net.ConnectException:在端口446上打開到服務器/(MY EXTERNAL IP)的套接字時出錯,並顯示以下消息:連接已超時。 ERRORCODE = -4499,SQLSTATE = 08001)

谷歌的結果

  1. 確保服務器實際運行正常
  2. 我想你可以使用localhost作為數據庫,因為你在本地工作?
  3. 不是網絡專家,但是如果它嘗試使用外部IP進行連接並且端口在防火牆中被阻止,您可能要打開它?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM