Hi,
We have jboss(4.2.1 GA) setup in clustered environment with SQL server database. Every node of server starts just fine. However when we try to access the database, we are getting following error. We have multiple datasources in the application as well.
Caused by: java.lang.IllegalArgumentException: Illegal Capacity: -1
at java.util.ArrayList.<init>(ArrayList.java:111)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.<init>(InternalManagedConnectionPool.java:124)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$SubPoolContext.<init>(JBossManagedConnectionPool.java:372)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getSubPool(JBossManagedConnectionPool.java:807)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:490)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
Can anyone please help us with this issue? Is some configuration missing in the clustering environment?
Thank you for your time and co-operation.
Regards,
Rushit.