jfinal连接sql server 2008 r2生成类的时候总是连接不上

下面是我的代码及错误信息:请各位大神帮忙看看什么情况

config.properties

t02.jpg

t11.jpg

t00.jpg

Build TableMeta ...


2017-11-02 09:48:47

[WARN]-[Thread: C3P0PooledConnectionPoolManager[identityToken->1hge2639rxyqg5f1vx79qy|181f93f8]-AdminTaskTimer]-[com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector.run()]: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@7e244b5 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!


2017-11-02 09:48:47

[WARN]-[Thread: C3P0PooledConnectionPoolManager[identityToken->1hge2639rxyqg5f1vx79qy|181f93f8]-AdminTaskTimer]-[com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector.run()]: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@7e244b5 -- APPARENT DEADLOCK!!! Complete Status: 

Managed Threads: 3

Active Threads: 3

Active Tasks: 

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@e2a235c

on thread: C3P0PooledConnectionPoolManager[identityToken->1hge2639rxyqg5f1vx79qy|181f93f8]-HelperThread-#1

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@70777447

on thread: C3P0PooledConnectionPoolManager[identityToken->1hge2639rxyqg5f1vx79qy|181f93f8]-HelperThread-#0

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@32731b00

on thread: C3P0PooledConnectionPoolManager[identityToken->1hge2639rxyqg5f1vx79qy|181f93f8]-HelperThread-#2

Pending Tasks: 

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@22f1b6e0

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@2b1d3e0c

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@cd49bf1

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@5a49f1cb

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@2ca174bc

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@1bf6f988

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@73785e0f

Pool thread stack traces:

Thread[C3P0PooledConnectionPoolManager[identityToken->1hge2639rxyqg5f1vx79qy|181f93f8]-HelperThread-#1,5,main]

java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:75)

java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)

java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)

java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)

java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)

java.net.Socket.connect(Socket.java:579)

com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:454)

com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1018)

com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:817)

com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:700)

com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:842)

com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)

com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)

com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)

com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)

com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)

com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)

com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)

com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)

Thread[C3P0PooledConnectionPoolManager[identityToken->1hge2639rxyqg5f1vx79qy|181f93f8]-HelperThread-#0,5,main]

java.lang.Thread.sleep(Native Method)

com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:860)

com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:700)

com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:842)

com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)

com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)

com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)

com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)

com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)

com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)

com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)

com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)

Thread[C3P0PooledConnectionPoolManager[identityToken->1hge2639rxyqg5f1vx79qy|181f93f8]-HelperThread-#2,5,main]

java.lang.Thread.sleep(Native Method)

com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:860)

com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:700)

com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:842)

com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)

com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)

com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)

com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)

com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)

com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)

com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)

com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)

com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)


评论区

JFinal

2017-11-02 10:52

这个是警告信息,不是错误, 换成 DruidPlugin 即可

热门反馈

扫码入社