当前位置: 代码迷 >> Java Web开发 >> 打开端口 50,000 上服务器 /192.168.1.100 的套接字时出错,消息为:Connection timed out: connect。 ERROR解决办法
  详细解决方案

打开端口 50,000 上服务器 /192.168.1.100 的套接字时出错,消息为:Connection timed out: connect。 ERROR解决办法

热度:1168   发布时间:2016-04-17 00:28:33.0
打开端口 50,000 上服务器 /192.168.1.100 的套接字时出错,消息为:Connection timed out: connect。 ERROR
Caused by: com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2043][11550][3.59.81] 异常 java.net.ConnectException:打开端口 50,000 上服务器 /192.168.1.100 的套接字时出错,消息为:Connection timed out: connect。 ERRORCODE=-4499, SQLSTATE=08001
at com.ibm.db2.jcc.am.dd.a(dd.java:319)
at com.ibm.db2.jcc.am.dd.a(dd.java:337)
at com.ibm.db2.jcc.t4.wb.a(wb.java:400)
at com.ibm.db2.jcc.t4.wb.<init>(wb.java:78)
at com.ibm.db2.jcc.t4.a.y(a.java:317)
at com.ibm.db2.jcc.t4.b.a(b.java:1801)
at com.ibm.db2.jcc.am.jb.a(jb.java:588)
at com.ibm.db2.jcc.am.jb.<init>(jb.java:540)
at com.ibm.db2.jcc.t4.b.<init>(b.java:303)
at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:214)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:456)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
... 45 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at com.ibm.db2.jcc.t4.x.run(x.java:34)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.db2.jcc.t4.wb.a(wb.java:386)
... 57 more
2011-8-6 9:36:24 org.apache.catalina.core.ApplicationContext log
信息: Set web app root system property: 'audit_mas.root' = [E:\Tomcat\webapps\Audit\]
2011-8-6 9:36:24 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [E:\Tomcat\webapps\Audit\WEB-INF\classes\log4j.properties]
2011-8-6 9:36:24 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-8-6 9:36:24 org.apache.catalina.core.StandardContext start
严重: Context [/Audit] startup failed due to previous errors
2011-8-6 9:36:24 org.apache.catalina.core.ApplicationContext log
信息: Shutting down log4j
2011-8-6 9:36:24 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
2011-8-6 9:36:25 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2011-8-6 9:36:25 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
log4j:ERROR Could not find value for key log4j.appender.stdout
log4j:ERROR Could not instantiate appender named "stdout".
2011-8-6 9:36:27 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext


------解决方案--------------------
连接不上数据库,是不是用户名/密码/URL之类的弄错了,仔细看看。
  相关解决方案