javax.resource.spi.ResourceAdapterInternalExceptio n: max connectionsreached - Websphere

This is a discussion on javax.resource.spi.ResourceAdapterInternalExceptio n: max connectionsreached - Websphere ; Hello, I am writing an application to read messages from queues. Everything seems to be working fine, but after a number of un-deployments and deployments I start getting the following exception and have no choice but to restart the application ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: javax.resource.spi.ResourceAdapterInternalExceptio n: max connectionsreached

  1. javax.resource.spi.ResourceAdapterInternalExceptio n: max connectionsreached

    Hello,
    I am writing an application to read messages from queues.
    Everything seems to be working fine, but after a number of
    un-deployments and deployments I start getting the following exception
    and have no choice but to restart the application server.

    Any hint on what the root cause might be?

    Exception stack trace:
    Code:
    2008-02-15 14:47:19,095 WARN  [org.jboss.system.ServiceController:424]
    Problem starting service
    jboss.j2ee:ear=Application-1.0.ear,jar=Application-1.0.jar,name=MDB,service=EJB3
    org.jboss.deployment.DeploymentException: Endpoint activation failed
    ra=jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    activationSpec=javax.jms.Queue:wsmq/Q@@localhost; - nested throwable:
    (javax.resource.spi.ResourceAdapterInternalException: max connections
    reached)
    at
    org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
    at
    org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.activate(JBossMessageEndpointFactory.java:310)
    at
    org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.start(JBossMessageEndpointFactory.java:194)
    at
    org.jboss.ejb3.mdb.MessagingContainer.startProxies(MessagingContainer.java:190)
    at org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:156)
    at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)
    at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
    at
    org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at
    org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at
    org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at org.jboss.system.ServiceController.start(ServiceController.java:435)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy361.start(Unknown Source)
    at
    org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
    at
    org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
    at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
    at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
    at
    org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at
    org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at
    org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy34.start(Unknown Source)
    at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at
    org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at
    org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at
    org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at
    org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    at
    org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
    at
    org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
    at
    org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy35.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at
    org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at
    org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy10.deploy(Unknown Source)
    at
    org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    at
    org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    at
    org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    at
    org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
    at
    org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
    Caused by: javax.resource.spi.ResourceAdapterInternalException: max
    connections reached
    at
    com.ibm.mq.connector.ResourceAdapterConnectionPool.allocateConnection(ResourceAdapterConnectionPool.java:231)
    at
    com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:333)
    at
    org.jboss.resource.deployment.RARDeployment.endpointActivation(RARDeployment.java:271)
    at
    org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:226)
    at
    org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at
    org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
    at
    org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.activate(JBossMessageEndpointFactory.java:305)
    ... 101 more
    
    .............
    
    ObjectName:
    jboss.j2ee:ear=Application-1.0.ear,jar=Application-1.0.jar,name=MDB,service=EJB3
    State: FAILED
    Reason: org.jboss.deployment.DeploymentException: Endpoint activation
    failed ra=jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    activationSpec=javax.jms.Queue:wsmq/Q@@localhost; - nested throwable:
    (javax.resource.spi.ResourceAdapterInternalException: max connections
    reached)
    My current configuration is:
    - JBoss 4.2.2-GA (linux)
    - WS MQ 6.0.2.2 (linux)

    I have configured JBoss the following way:
    - added wmq.jmsra.rar to the $JBOSS_SERVER/deploy directory
    - added com.ibm.mqetclient.jar to the $JBOSS_SERVER/lib directory
    - created $JBOSS_SERVER/deploy/wmq.jmsra-ds.xml as follows

    Code:
    
    
    
    
    
    
    wsmq/Q
    jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    javax.jms.Queue
    
    baseQueueManagerName=QM1
    baseQueueName=Q
    
    
    
    
    
    MQCF
    
    wmq.jmsra.rar
    
    javax.jms.ConnectionFactory
    SYSTEM.DEF.SVRCONN
    127.0.0.1
    1414
    QM1
    CLIENT
    
    My java MDB (EJB3) is:

    Code:
    @MessageDriven(name = "MDB", activationConfig = {
    @ActivationConfigProperty(propertyName = "destination",
    propertyValue = "wsmq/Q"),
    @ActivationConfigProperty(propertyName = "destinationType",
    propertyValue = "javax.jms.Queue"),
    @ActivationConfigProperty(propertyName = "transportType",
    propertyValue = "CLIENT"),
    @ActivationConfigProperty(propertyName = "useJNDI",
    propertyValue = "true"),
    @ActivationConfigProperty(propertyName = "maxPoolDepth",
    propertyValue = "1") }, messageListenerInterface = MessageListener.class)
    @ResourceAdapter("wmq.jmsra.rar")
    public class MDB implements MessageListener {
    
    public void onMessage(Message message) {
    return;
    }
    
    }
    Thanks in advance for any information!
    cheers!

  2. Re: javax.resource.spi.ResourceAdapterInternalExceptio n: max connectionsreached

    Martin Letis wrote:
    > Hello,
    > I am writing an application to read messages from queues.
    > Everything seems to be working fine, but after a number of
    > un-deployments and deployments I start getting the following exception
    > and have no choice but to restart the application server.
    >
    > Any hint on what the root cause might be?
    >
    > Exception stack trace:
    >
    Code:
    > 2008-02-15 14:47:19,095 WARN  [org.jboss.system.ServiceController:424]
    > Problem starting service
    > jboss.j2ee:ear=Application-1.0.ear,jar=Application-1.0.jar,name=MDB,service=EJB3
    >
    > org.jboss.deployment.DeploymentException: Endpoint activation failed
    > ra=jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    > activationSpec=javax.jms.Queue:wsmq/Q@@localhost; - nested throwable:
    > (javax.resource.spi.ResourceAdapterInternalException: max connections
    > reached)
    >     at
    > org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
    >
    >     at
    > org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.activate(JBossMessageEndpointFactory.java:310)
    >
    >     at
    > org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.start(JBossMessageEndpointFactory.java:194)
    >
    >     at
    > org.jboss.ejb3.mdb.MessagingContainer.startProxies(MessagingContainer.java:190)
    >
    >     at
    > org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:156)
    >     at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)
    >     at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
    >     at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >
    >     at java.lang.reflect.Method.invoke(Method.java:585)
    >     at
    > org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
    >
    >     at
    > org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    >
    >     at
    > org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    >
    >     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    >     at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >
    >     at java.lang.reflect.Method.invoke(Method.java:585)
    >     at
    > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    >
    >     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    >     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    >     at
    > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    >
    >     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    >     at
    > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    >
    >     at $Proxy0.start(Unknown Source)
    >     at org.jboss.system.ServiceController.start(ServiceController.java:417)
    >     at org.jboss.system.ServiceController.start(ServiceController.java:435)
    >     at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    >     at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >
    >     at java.lang.reflect.Method.invoke(Method.java:585)
    >     at
    > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    >
    >     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    >     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    >     at
    > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    >
    >     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    >     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    >     at $Proxy361.start(Unknown Source)
    >     at
    > org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
    >     at
    > org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
    >     at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
    >     at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
    >     at
    > org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    >
    >     at
    > org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    >
    >     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    >     at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >
    >     at java.lang.reflect.Method.invoke(Method.java:585)
    >     at
    > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    >
    >     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    >     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    >     at
    > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    >
    >     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    >     at
    > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    >
    >     at $Proxy0.start(Unknown Source)
    >     at org.jboss.system.ServiceController.start(ServiceController.java:417)
    >     at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    >     at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >
    >     at java.lang.reflect.Method.invoke(Method.java:585)
    >     at
    > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    >
    >     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    >     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    >     at
    > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    >
    >     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    >     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    >     at $Proxy34.start(Unknown Source)
    >     at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
    >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >     at
    > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    >
    >     at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >
    >     at java.lang.reflect.Method.invoke(Method.java:585)
    >     at
    > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    >
    >     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    >     at
    > org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    >
    >     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    >     at
    > org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    >
    >     at
    > org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    >
    >     at
    > org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    >
    >     at
    > org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
    >
    >     at
    > org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
    >
    >     at
    > org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    >
    >     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    >     at
    > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    >
    >     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    >     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    >     at $Proxy35.start(Unknown Source)
    >     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    >     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
    >     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    >     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    >     at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
    >     at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >
    >     at java.lang.reflect.Method.invoke(Method.java:585)
    >     at
    > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    >
    >     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    >     at
    > org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    >
    >     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    >     at
    > org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    >
    >     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    >     at
    > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    >
    >     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    >     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    >     at $Proxy10.deploy(Unknown Source)
    >     at
    > org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    >
    >     at
    > org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    >
    >     at
    > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    >
    >     at
    > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
    >
    >     at
    > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
    >
    > Caused by: javax.resource.spi.ResourceAdapterInternalException: max
    > connections reached
    >     at
    > com.ibm.mq.connector.ResourceAdapterConnectionPool.allocateConnection(ResourceAdapterConnectionPool.java:231)
    >
    >     at
    > com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:333)
    >
    >     at
    > org.jboss.resource.deployment.RARDeployment.endpointActivation(RARDeployment.java:271)
    >
    >     at
    > org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:226)
    >
    >     at
    > org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
    >
    >     at
    > org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    >     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    >     at
    > org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
    >
    >     at
    > org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.activate(JBossMessageEndpointFactory.java:305)
    >
    >     ... 101 more
    >
    > ............
    >
    > ObjectName:
    > jboss.j2ee:ear=Application-1.0.ear,jar=Application-1.0.jar,name=MDB,service=EJB3
    >
    >   State: FAILED
    >   Reason: org.jboss.deployment.DeploymentException: Endpoint activation
    > failed ra=jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    > activationSpec=javax.jms.Queue:wsmq/Q@@localhost; - nested throwable:
    > (javax.resource.spi.ResourceAdapterInternalException: max connections
    > reached)
    >
    >
    >
    > My current configuration is:
    > - JBoss 4.2.2-GA (linux)
    > - WS MQ 6.0.2.2 (linux)
    >
    > I have configured JBoss the following way:
    > - added wmq.jmsra.rar to the $JBOSS_SERVER/deploy directory
    > - added com.ibm.mqetclient.jar to the $JBOSS_SERVER/lib directory
    > - created $JBOSS_SERVER/deploy/wmq.jmsra-ds.xml as follows
    >
    >
    Code:
    > 
    >
    > 
    >
    > 
    >  name="jca.wmq:name=wsmqQ">
    > wsmq/Q
    >  optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    >
    > javax.jms.Queue
    > 
    >       baseQueueManagerName=QM1
    >       baseQueueName=Q
    > 
    > 
    >
    > 
    > 
    > MQCF
    > 
    > wmq.jmsra.rar
    >
    > javax.jms.ConnectionFactory
    >  type="java.lang.String">SYSTEM.DEF.SVRCONN
    >  type="java.lang.String">127.0.0.1
    >  type="java.lang.String">1414
    >  type="java.lang.String">QM1
    >  type="java.lang.String">CLIENT
    > 
    >
    >
    >
    > My java MDB (EJB3) is:
    >
    >
    Code:
    > @MessageDriven(name = "MDB", activationConfig = {
    >         @ActivationConfigProperty(propertyName = "destination",
    > propertyValue = "wsmq/Q"),
    >         @ActivationConfigProperty(propertyName = "destinationType",
    > propertyValue = "javax.jms.Queue"),
    >         @ActivationConfigProperty(propertyName = "transportType",
    > propertyValue = "CLIENT"),
    >         @ActivationConfigProperty(propertyName = "useJNDI",
    > propertyValue = "true"),
    >         @ActivationConfigProperty(propertyName = "maxPoolDepth",
    > propertyValue = "1") }, messageListenerInterface = MessageListener.class)
    > @ResourceAdapter("wmq.jmsra.rar")
    > public class MDB implements MessageListener {
    >
    >     public void onMessage(Message message) {
    >         return;
    >     }
    >
    > }
    >
    >
    >
    > Thanks in advance for any information!
    > cheers!

    Have you tried stopping the MDB component of JBoss before deploying?

  3. Re: javax.resource.spi.ResourceAdapterInternalExceptio n: max connectionsreached

    hi

    it actually turned out to be a websphere problem
    it is known to IBM as APAR IC54346 - fixed in pack 6.0.2.3

    bye

+ Reply to Thread