ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » [RESOLVED]MQJE011: Socket connection attempt refused

Post new topic  Reply to topic
 [RESOLVED]MQJE011: Socket connection attempt refused « View previous topic :: View next topic » 
Author Message
scar
PostPosted: Fri Dec 18, 2009 7:03 am    Post subject: [RESOLVED]MQJE011: Socket connection attempt refused Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

We are on MQ 6 in AIX 5.2

IN java code when we try to create a QMGR object
mqQueueManager = new MQQueueManager(strQueueManager);
I am getting the following error

MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE011: Socket connection attempt refused
MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE011: Socket connection attempt refused
com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE011: Socket connection attempt refused
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:268)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:338)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:774)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:690)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:646)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:471)
at AcctCode1.main(AcctCode1.java:437)


That piece of code was working fine a week back.
I checked for the listener and its working fine.

/home/mqm/scripts $ netstat -an | grep 1414
tcp4 0 0 xxx.xxx.xx.xx.1414 xxx.xxx.xx.xx..3608 ESTABLISHED
tcp4 0 0 xxx.xxx.xx.xx..1414 xxx.xxx.xx.xx..3624 ESTABLISHED
tcp 0 0 xxx.xxx.xx.xx..1414 *.* LISTEN


The QMGR is up and running. I am able to connect to it using RFHUTIL/MQEXPLORER/mqmonntp

And insight is appreciated.


Last edited by scar on Fri Dec 18, 2009 9:17 am; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Dec 18, 2009 8:09 am    Post subject: Re: MQJE011: Socket connection attempt refused Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

scar wrote:
The QMGR is up and running. I am able to connect to it using RFHUTIL/MQEXPLORER/mqmonntp

And insight is appreciated.


Are you able to connect to it with RFHUtilc?

Connection refused often means someone's installed a firewall (or other network device) since last week. Check with your network people.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
scar
PostPosted: Fri Dec 18, 2009 9:13 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

Hostname is not being resolved.
They changed some thing on the network.

Thanks for your reply.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Dec 18, 2009 9:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

scar wrote:
They changed some thing on the network.


They do that a lot.

Glad you got it resolved.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » [RESOLVED]MQJE011: Socket connection attempt refused
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.