Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Problem while connecting to MQ adapter

765402May 6 2011 — edited Feb 26 2020
HI All,

i am using MQ adapter for the first time. i facing some issues and need your help!

i am following http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_mq.htm#BGEJIDEF for the same.

In my BPEL i've an MQ adapter for getting the message, and a file adapter to write the same.

The service is deployed successfully. but i get the following error message in the console -

2011-05-06T17:06:13.719+05:30] [AdminServer] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@eb2d79] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-00000000000004c1,1:27163] [APP: soa-infra] MQSeries Adapter SamplePOC
[QueueProcessor] Exception caught in while loop
[2011-05-06T17:06:13.719+05:30] [AdminServer] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@eb2d79] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-00000000000004c1,1:27163] [APP: soa-infra] MQSeries Adapter SamplePOC
[[
javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/MQ/MQAdapter from JNDI and get a new Connection Handle.
at weblogic.connector.outbound.ConnectionManagerImpl.checkIfPoolIsValid(ConnectionManagerImpl.java:442)
at weblogic.connector.outbound.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:109)
at oracle.tip.adapter.mq.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:120)
at oracle.tip.adapter.mq.inbound.QueueProcessor.checkForNewConnection(QueueProcessor.java:218)
at oracle.tip.adapter.mq.inbound.NonManagedQueueProcessor.startTransaction(NonManagedQueueProcessor.java:51)
at oracle.tip.adapter.mq.inbound.QueueProcessor.run(QueueProcessor.java:245)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)


If i delete this connection and try to connect after creating a new connection i get the below error -


[2011-05-06T16:46:26.692+05:30] [AdminServer] [NOTIFICATION] [ADFC-50014] [oracle.adfinternal.controller.util.WebAppConfigFactory] [tid: [ACTIVE].ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-0000000000000176,0] [APP: em] ADFc: Using view 'index.html' as applications home page.
[2011-05-06T16:46:34.857+05:30] [AdminServer] [NOTIFICATION] [SOA-21530] [oracle.integration.platform.blocks.deploy.servlet] [tid: [ACTIVE].ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-000000000000018c,1:27154:2] [APP: soa-infra] CompositeDeploymentServlet-----> received request from user: weblogic
[2011-05-06T16:46:34.857+05:30] [AdminServer] [NOTIFICATION] [SOA-21533] [oracle.integration.platform.blocks.deploy.servlet] [tid: [ACTIVE].ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-000000000000018c,1:27154:2] [APP: soa-infra] User [weblogic] has been successfully authorized.
[2011-05-06T16:46:34.857+05:30] [AdminServer] [NOTIFICATION] [SOA-21534] [oracle.integration.platform.blocks.deploy.servlet] [tid: [ACTIVE].ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-000000000000018c,1:27154:2] [APP: soa-infra] Start unzipping data to base directory: C:\DOCUME~1\rohegde\LOCALS~1\Temp\sar_base_dir_1304680594857.
[2011-05-06T16:46:34.873+05:30] [AdminServer] [NOTIFICATION] [SOA-21535] [oracle.integration.platform.blocks.deploy.servlet] [tid: [ACTIVE].ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-000000000000018c,1:27154:2] [APP: soa-infra] Complete unzipping data.
[2011-05-06T16:46:35.122+05:30] [AdminServer] [NOTIFICATION] [SOA-21540] [oracle.integration.platform.blocks.deploy.servlet] [tid: [ACTIVE].ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-000000000000018c,1:27154:2] [APP: soa-infra] Perform undeployment operation: default/SamplePOC!1.0.
[2011-05-06T16:46:35.122+05:30] [AdminServer] [NOTIFICATION] [SOA-21541] [oracle.integration.platform.blocks.deploy.servlet] [tid: [ACTIVE].ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 2512fcaeb6efafe5:2eae1d73:12fc4feda27:-8000-000000000000018c,1:27154:2] [APP: soa-infra] Calling coordinator to undeploy default/SamplePOC!1.0*soa_077612a1-c82d-418d-809f-426341f75e7c.
[2011-05-06T16:46:35.138+05:30] [AdminServer] [ERROR] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@efae6d] [userId: <anonymous>] [ecid: 0000Iz4zktDApIG5uz_AiX1DkxQy000002,0] [APP: soa-infra] MQSeries Adapter SamplePOC[MQConnectionConfig] >>> Could not create connection to QueueManager: MY_QUEUE_MANAGER
[2011-05-06T16:46:35.138+05:30] [AdminServer] [ERROR] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@1a72e0a] [userId: <anonymous>] [ecid: 0000Iz4zktDApIG5uz_AiX1DkxQy000002,0] [APP: soa-infra] MQSeries Adapter SamplePOC[MQConnectionConfig] >>> Could not create connection to QueueManager: MY_QUEUE_MANAGER
[2011-05-06T16:46:35.154+05:30] [AdminServer] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@efae6d] [userId: <anonymous>] [ecid: 0000Iz4zktDApIG5uz_AiX1DkxQy000002,0] [APP: soa-infra] MQSeries Adapter SamplePOC[QueueProcessor] Exception caught in while loop
[2011-05-06T16:46:35.169+05:30] [AdminServer] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@1a72e0a] [userId: <anonymous>] [ecid: 0000Iz4zktDApIG5uz_AiX1DkxQy000002,0] [APP: soa-infra] MQSeries Adapter SamplePOC[QueueProcessor] Exception caught in while loop
[2011-05-06T16:46:35.169+05:30] [AdminServer] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@efae6d] [userId: <anonymous>] [ecid: 0000Iz4zktDApIG5uz_AiX1DkxQy000002,0] [APP: soa-infra] MQSeries Adapter SamplePOC[[
BINDING.JCA-13001
Failed to connect to QueueManager.
Failed to connect to QueueManager.
[ManagedConnectionImpl] Error while connecting to QueueManager: "MY_QUEUE_MANAGER".
Refer WebSphere MQ Reference Manual for Reason Code 2,009 and fix the cause of the error. Contact oracle support if error is not fixable.

at oracle.tip.adapter.mq.conn.MQConnectionCreator.createMQQueueManager(MQConnectionCreator.java:90)
at oracle.tip.adapter.mq.ManagedConnectionImpl.createPhysicalConnection(ManagedConnectionImpl.java:441)
at oracle.tip.adapter.mq.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:136)
at oracle.tip.adapter.mq.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:127)
at weblogic.connector.security.layer.AdapterLayer.createManagedConnection(AdapterLayer.java:803)
at weblogic.connector.outbound.ConnectionFactory.createResource(ConnectionFactory.java:91)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:418)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:342)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:322)
at weblogic.connector.outbound.ConnectionPool.reserveResource(ConnectionPool.java:620)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:316)
at weblogic.connector.outbound.ConnectionManagerImpl.getConnectionInfo(ConnectionManagerImpl.java:380)
at weblogic.connector.outbound.ConnectionManagerImpl.getConnection(ConnectionManagerImpl.java:320)
at weblogic.connector.outbound.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:129)
at oracle.tip.adapter.mq.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:120)
at oracle.tip.adapter.mq.inbound.QueueProcessor.checkForNewConnection(QueueProcessor.java:218)
at oracle.tip.adapter.mq.inbound.NonManagedQueueProcessor.startTransaction(NonManagedQueueProcessor.java:51)
at oracle.tip.adapter.mq.inbound.QueueProcessor.run(QueueProcessor.java:245)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
Caused by: com.ibm.mq.MQException: Completion Code 2, Reason 2009
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:166)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:196)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:213)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:560)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:509)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:330)
at oracle.tip.adapter.mq.conn.MQConnectionCreator.createMQQueueManager(MQConnectionCreator.java:71)
... 21 more

]]



Connection details - IN the weblogic server i 've provided the following details -

channelName - i have left this blank, since the link says so
hostName
queueManagerName
portNumber

Do i need to provide any more details?

Rest all i have left as it is.
i am working on 11.1.1.4 ..


Thanks in advance...
Let me know if any more details are required.

Regards,
Roshan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2011
Added on May 6 2011
12 comments
2,108 views