Announcement Announcement Module
Collapse
No announcement yet.
Unable to Use TC dbcp Due to StackOverflowError Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to Use TC dbcp Due to StackOverflowError

    During the course of project library upgrading, I replace common-dbcp with tomcat-dbcp after learning TC dbcp's superior. I, however, get an error during the startup.
    ... 45 more
    Caused by: java.lang.StackOverflowError
    at java.util.concurrent.AbstractExecutorService.<init >(AbstractExecutorService.java:43)
    at java.util.concurrent.ThreadPoolExecutor.<init>(Thr eadPoolExecutor.java:584)
    at java.util.concurrent.ThreadPoolExecutor.<init>(Thr eadPoolExecutor.java:480)
    at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>( ConnectionPool.java:111)
    at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreat ePool(DataSourceProxy.java:112)
    at org.apache.tomcat.jdbc.pool.DataSourceProxy.create Pool(DataSourceProxy.java:99)
    at org.apache.tomcat.jdbc.pool.DataSourceProxy.getCon nection(DataSourceProxy.java:123)
    at org.apache.tomcat.jdbc.pool.DataSourceProxy.getCon nection(DataSourceProxy.java:82)
    at org.apache.tomcat.jdbc.pool.PooledConnection.conne ctUsingDataSource(PooledConnection.java:217)
    at org.apache.tomcat.jdbc.pool.PooledConnection.conne ct(PooledConnection.java:174)
    where the TC dbcp configuration is the followings:
    Code:
    	<bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource"
    		destroy-method="close" 
                    p:driverClassName="${jdbc.driverClassName}"
    		p:url="${jdbc.url}" 
                    p:username="${jdbc.username}" 
                    p:password="${jdbc.password}" 
       
                    p:initialSize="1"
                    p:maxActive="5"
                    p:testWhileIdle="false"   
                    p:validationQuery="SELECT 1"
                    p:validationInterval="120000" 
                    p:timeBetweenEvictionRunsMillis="30000"/>
    What is wrong with the configuration?

  • #2
    Hello

    I replace common-dbcp with tomcat-dbcp after learning TC dbcp's superior
    Could you share a link where show tomcat-dbcp is superior?

    Could you post the complete error stack trace? Seems some details are missing.

    Be sure you have correct settings and dependencies

    Comment


    • #3
      Originally posted by dr_pompeii View Post
      Hello


      Could you share a link where show tomcat-dbcp is superior?

      Could you post the complete error stack trace? Seems some details are missing.

      Be sure you have correct settings and dependencies
      Here is its official site http://people.apache.org/~fhanik/jdb...jdbc-pool.html and it is litter bit difficult to find it.

      I use TC so tomcat-dbcp and its only one dependency are already in the run time class path.

      Here is a longer version of the error stack, too long to have it all here. The section has 1025 lines.
      Code:
      Caused by: java.lang.StackOverflowError
      	at java.util.concurrent.AbstractExecutorService.<init>(AbstractExecutorService.java:43)
      	at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:584)
      	at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:480)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:111)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:174)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:667)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:607)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:470)
      	at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:135)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:112)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:99)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:123)
      	at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:82)
      	at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:217)
      ...
      Last edited by vw729; Mar 8th, 2012, 01:25 PM.

      Comment

      Working...
      X