Thanks Mark for the report, no not at all. I will push out a fix today.

Filip

Mark Shifman wrote:
I installed the new Tomcat connection pool and it worked ok yesterday. First 
thing this morning it
threw this exception below. (I snipped out a bunch of stuff but can send the 
whole thing if it would
help)
My resource definition from context.xml is

<Resource name="jdbc/prot" auth="Container"
                type="javax.sql.DataSource" 
driverClassName="oracle.jdbc.OracleDriver"
                factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
                url="jdbc:oracle:thin:@xxx.xxx.med.yale.edu:1521:xxx"
                username="xxx"
                password="xxx"
                initialSize="3"
                maxActive="10"
                maxIdle="10"
                maxWait="10000"
                removeAbandoned="false"
                removeAbandonedTimeout="180"
                logAbandoned="false"
                timeBetweenEvictionRunsMillis="10000"
                validationQuery="SELECT 1 from dual"
                testOnBorrow="true"/>

Have I done something stupid that lets stale connections hang around? I old 
dbcp pool worked fine.

Thanks in advance.
Mark Shifman

java.lang.reflect.UndeclaredThrowableException
        at $Proxy0.getConnection(Unknown Source)
        at 
org.apache.commons.dbutils.QueryRunner.prepareConnection(QueryRunner.java:189)
...
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
...
Caused by: java.sql.SQLException: java.lang.NegativeArraySizeException
        at oracle.net.ano.CryptoDataPacket.decryptAndChecksum(CryptoDataPacket)
        at oracle.net.ano.CryptoDataPacket.receive(CryptoDataPacket)
        at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
        at oracle.net.ns.NetInputStream.read(Unknown Source)
        at oracle.net.ns.NetInputStream.read(Unknown Source)
        at oracle.net.ns.NetInputStream.read(Unknown Source)
        at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:931)
        at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
        at oracle.jdbc.ttc7.Oclose.receive(Oclose.java:101)
        at oracle.jdbc.ttc7.TTC7Protocol.close(TTC7Protocol.java:684)
        at oracle.jdbc.driver.OracleStatement.close(OracleStatement.java:700)
        at 
oracle.jdbc.driver.OraclePreparedStatement.privateClose(OraclePreparedStatement.java:489)
        at 
oracle.jdbc.driver.OraclePreparedStatement.close(OraclePreparedStatement.java:396)
        at 
oracle.jdbc.driver.OracleCallableStatement.close(OracleCallableStatement.java:982)
        at 
oracle.jdbc.driver.OracleConnection.close_statements(OracleConnection.java:2369)
        at oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:1448)
        at 
org.apache.tomcat.jdbc.pool.PooledConnection.disconnect(PooledConnection.java:103)
        at 
org.apache.tomcat.jdbc.pool.PooledConnection.reconnect(PooledConnection.java:93)
        at 
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:473)
        at 
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:380)
....



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to