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 » IBM MQ Java / JMS » Completion Code 2, Reason 2009...Very Urgent

Post new topic  Reply to topic
 Completion Code 2, Reason 2009...Very Urgent « View previous topic :: View next topic » 
Author Message
shantha
PostPosted: Mon Jul 19, 2004 12:34 am    Post subject: Completion Code 2, Reason 2009...Very Urgent Reply with quote

Apprentice

Joined: 11 Dec 2003
Posts: 41

HI ,
I ahve mqseries 5.3 installed on my system.
it is on windows.Everything was working finr till now.
For some reason I had to restart my system,.
I started getting this error when I am trying to put the message to the queue.I am using Java code to put the message.

MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE007: IO error reading message data
MQJE001: Completion Code 2, Reason 2009
An MQSeries error occurred : Completion code 2 Reason code 2009

After that I uninstalled ,restarted the system and re installed mqseries.
Still I get the same error.
CAn any one please help me
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jul 19, 2004 2:18 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

2009 MQRC_CONNECTION_BROKEN

I suggest reading the MQSeries manuals for this reason code and following the advice therein. That's why IBM provided them.
Back to top
View user's profile Send private message
shantha
PostPosted: Mon Jul 19, 2004 2:45 am    Post subject: Reply with quote

Apprentice

Joined: 11 Dec 2003
Posts: 41

I checked all the conditions.

The host name is the local host.I am tryign to run on my local system.So I have given the local ip address.
The lsitener is running on 1414 port number.
The channel I have used is default chanel System.dev.svrconn.
But the channel status shows as inactive ,when i try to c form the mq explorer

This is the code

import com.ibm.mq.*;
import java.io.FileReader;
import java.io.*;
import java.util.*;

public class testsend{

public testsend()

{
String hostname = "15.42.228.123";
String channel = "SYSTEM.DEF.SVRCONN";
String qManager = "IMVDEAIQM";
MQQueueManager qMgr;
String outString = null;
String FileName = "BUDGETCHECKOUTPUT.xml";
try
{

MQEnvironment.hostname = hostname;
MQEnvironment.channel = channel;
MQEnvironment.port = 1414;
qMgr = new MQQueueManager(qManager);
int openOptions = MQC.MQOO_OUTPUT;
MQQueue q = qMgr.accessQueue("Test",openOptions , null, null, null);
MQMessage msg = new MQMessage();
msg.format = MQC.MQFMT_STRING;
int i = 1;
String s = null;
BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream(FileName)));
outString=br.readLine();
while (( s = br.readLine()) != null)
{
if(i==1)
outString = s.trim();
else
outString += s.trim();
i++;
}
//outString = "1001;Shoban;Kumar;650;6575800;5873:650;555;Eng;SE;sh@ssl.com";
br.close();
msg.correlationId = generateMessageId().getBytes();
System.out.println("correlation id =" + new String(msg.correlationId));
msg.writeString(outString);
MQPutMessageOptions pmo = new MQPutMessageOptions();
q.put(msg,pmo);
System.out.println("Message Sent!");
q.close();
qMgr.disconnect();
}//try
catch(MQException ex)
{
System.out.println("An MQSeries error occurred : Completion code " +
ex.completionCode + " Reason code " + ex.reasonCode);
}
catch (java.io.IOException ex)
{
System.out.println("An error occurred while writing to the message buffer: " + ex);
}
}//putMessage()

// Method that returns unique Message ID

public String generateMessageId(){
String MesId = null;
try
{
GregorianCalendar gc = new GregorianCalendar();
MesId = (new Integer(gc.get(Calendar.DATE))).toString();
MesId = MesId + (new Integer(gc.get(Calendar.MONTH))).toString();
MesId = MesId + (new Integer(gc.get(Calendar.YEAR))).toString().substring(2);
MesId = MesId + (new Integer(gc.get(Calendar.HOUR))).toString();
MesId = MesId + (new Integer(gc.get(Calendar.MINUTE))).toString();
MesId = MesId + (new Integer(gc.get(Calendar.SECOND))).toString();
}
catch(Exception e){}
return "18100311122";
}
public static void main(String args[])
{
new testsend();
}
}



Still I get the error

regards
Shantha
Back to top
View user's profile Send private message
gunter
PostPosted: Mon Jul 19, 2004 3:51 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

Your code works with MQ 5.3 on Linux. You should check the channel-configuration and the listener.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
shantha
PostPosted: Mon Jul 19, 2004 3:56 am    Post subject: Reply with quote

Apprentice

Joined: 11 Dec 2003
Posts: 41

HI,
Thanks for verifying
BUt what do I check.
It is the default channel I am using.And it is in the Inactive status.
Even if I start the channnel,It accepts teh request ..and still the stataus is inactive.But the error code is 2009

regards
Shantha
Back to top
View user's profile Send private message
gunter
PostPosted: Mon Jul 19, 2004 4:50 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

Which line trows the exception?
Try out amqsputc from samples.
It doesn't make sense to start a SVRCONN channel, this will be done by the system if a client connects.
Make sure the listener is running and accepts incomming connections.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 19, 2004 10:51 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

If you are on Unix:
If the listener is started with the wrong authority(root) everything will look fine but you will not be able to connect.

Make sure the listener is started by a user in the mqm group.

Just my 2cts
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Mon Jul 19, 2004 10:58 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Also look in the event viewer and see if any error messages are logged.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shantha
PostPosted: Mon Jul 19, 2004 9:04 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Dec 2003
Posts: 41

HI All,

I am running it on windows.
And my login user is a part of mqm group.
And I don't find any error message logged in event viewwr also.
Is there any other check I need to do.
It was working absolutely fine....
ONly after I reinstalled ,I am getting this problem
Is there any thing wrong I have done in uninstalling and reinstalling.
Any suggestions for this.

regards
Shantha
Back to top
View user's profile Send private message
shantha
PostPosted: Mon Jul 19, 2004 9:27 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Dec 2003
Posts: 41

hi all,

I checked the event viewer.
I get following error

A communications error for TCP/IP occurred.

An unexpected error occurred in communications.

The return code from the TCP/IP (ioctlsocket) call was 10038 (X'2736'). Record these values and tell the systems administrator.

Does this make any sense

Thanks for all the help

regards
Shantha
Back to top
View user's profile Send private message
gunter
PostPosted: Mon Jul 19, 2004 9:48 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

Search 10038 or MQNOREMPOOL on this site, you'll find the information to fix your problem.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
shantha
PostPosted: Mon Jul 19, 2004 9:53 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Dec 2003
Posts: 41

There was a suggestion to set the environment varaible MQNOMOREPOOL to 1 .I did that still I get the same error

Shantha
Back to top
View user's profile Send private message
gunter
PostPosted: Mon Jul 19, 2004 10:16 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

I'm afraid, I can't really help with this problem. It looks like a windows specific network problem. Make sure you have installed the latest CSD and check additional fixpacs for this problem. Make sure your system fits all requirements.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
fschofer
PostPosted: Tue Jul 20, 2004 12:18 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

please try to connect to your queue using the mqseries
sample put program to check if your listener ist working.

SET MQSERVER = SYSTEM.DEF.SVRCONN/TCP/15.42.228.123(1414)

amqsputc Test IMVDEAIQM

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
shantha
PostPosted: Tue Jul 20, 2004 12:21 am    Post subject: Reply with quote

Apprentice

Joined: 11 Dec 2003
Posts: 41

HI all,
Thanks a lot.
I solved the problem
I stopped the service,Killed all the process,restarted my system
and created a new listener it worked.

Thanks a lot once again for all the help
Shantha
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 » IBM MQ Java / JMS » Completion Code 2, Reason 2009...Very Urgent
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.