When DB Indexes were not rebuilt - Unable to get a connection for pool

We had DB based partition for dehydration store and we used to drop old partitions every month to purge old data. We dropped partition as usual but forgot to rebuild indexes. Due to this indexes became unusable and connection pool size of db adapter reached maximum value (1000 in this case). Below error was written to log files. 

[2017-07-01T05:49:45.884-07:00] [osb_server1] [ERROR] [OSB-381967] [oracle.osb.transports.jca.jcatransport] [tid: [ACTIVE].ExecuteThread: ’96’ for queue: ‘weblogic.kernel.Default (self-tuning)’] [userId: ] [ecid: 79e678b0-d24f-4750-938a-8fb9e6c2fab2-01e97c36,1:5426731] [APP: Service Bus JCA Transport Provider] [FlowId: 0000LnyCmqJ6YNBrVWYBU81PAaVR00fxSh] Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/CommonServices/Artifacts/business/wsdl/DB_OUT_FMWAuditing.wsdl [ DB_OUT_FMWAuditing_ptt::insert(FmwAuditingCollection,FmwAuditingCollection) ] – WSIF JCA Execute of operation ‘insert’ failed due to: JCA Binding Component connection issue.[[
JCA Binding Component is unable to create an outbound JCA (CCI) connection.
servicebus:/CommonServices/Artifacts/business/wsdl/DB_OUT_FMWAuditing.wsdl [ DB_OUT_FMWAuditing_ptt::insert(FmwAuditingCollection,FmwAuditingCollection) ] – : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: javax.resource.spi.ApplicationServerInternalException: Unable to get a connection for pool = “eis/db/FMWDBConnection”, weblogic.common.resourcepool.ResourceLimitException: Configured maximum limit of (0) on number of threads allowed to wait for a resource reached for pool eis/db/FMWDBConnection
; nested exception is: 
BINDING.JCA-12511
JCA Binding Component connection issue.
JCA Binding Component is unable to create an outbound JCA (CCI) connection.
servicebus:/CommonServices/Artifacts/business/wsdl/DB_OUT_FMWAuditing.wsdl [ DB_OUT_FMWAuditing_ptt::insert(FmwAuditingCollection,FmwAuditingCollection) ] – : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: javax.resource.spi.ApplicationServerInternalException: Unable to get a connection for pool = “eis/db/FMWDBConnection”, weblogic.common.resourcepool.ResourceLimitException: Configured maximum limit of (0) on number of threads allowed to wait for a resource reached for pool eis/db/FMWDBConnection
Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections.
 com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/CommonServices/Artifacts/business/wsdl/DB_OUT_FMWAuditing.wsdl [ DB_OUT_FMWAuditing_ptt::insert(FmwAuditingCollection,FmwAuditingCollection) ] – WSIF JCA Execute of operation ‘insert’ failed due to: JCA Binding Component connection issue.

Even after rebuilding indexes,  resource adapter connection pools were not released and still we were getting error. There are multiple options to recover from this situation.

1) Restart Managed Servers
2) Restart DB Adapter
3) Forcibly reset connections ( dbadapter -> control tab -> outbound connection pools -> Select connection pools to be reset and click on ‘Force Reset’)

We felt that 3rd option is least disruptive and reset all stale connections to resolve issue.

Comments

Popular posts from this blog

HOW WE REDUCED SOA OSB PROVISIONING FROM 4 DAYS TO 4 HOURS

NOT ABLE TO START RABBITMQ CLUSTER: CANNOT DECLARE A QUEUE ‘~S’ ON NODE ‘~S’: ~255P

SOA SUITE 12.2.1.4 INSTALLATION: GOT EXCEPTION WHEN AUTO CONFIGURING THE SCHEMA COMPONENT(S) WITH DATA OBTAINED FROM SHADOW TABLE