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 » MQ Java Error 2184

Post new topic  Reply to topic
 MQ Java Error 2184 « View previous topic :: View next topic » 
Author Message
tcganesh
PostPosted: Thu Sep 26, 2002 6:13 am    Post subject: MQ Java Error 2184 Reply with quote

Novice

Joined: 12 Sep 2002
Posts: 13
Location: New York

I am trying to do a PUT message using MQ Java classes.

Yesterday everything was working fine. But now I get a error message as below.

I would appreciate your inputs.

Attaching Code and Error Message.
import java.io.*;
import com.ibm.mq.*;

public class MQTest3
{
int options = MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_OUTPUT;

public MQTest3 (String manager, String q)
{
try
{
MQQueueManager mgr = new MQQueueManager(manager);
int maxLen = mgr.getMaximumMessageLength();
System.out.println("Max Msg Length for qMgr = " + maxLen);
MQQueue queue = mgr.accessQueue(q, options);

MQMessage msg = new MQMessage();
msg.format = MQC.MQFMT_STRING;
try
{
msg.writeString("This is my first test message from Java...");
}
catch(IOException ignore)
{
ignore.printStackTrace();
}
queue.put(msg);
queue.close();
mgr.disconnect();
}
catch (MQException e)
{
e.printStackTrace();
System.out.println("Completion Code: " + e.completionCode + " reason: " + e.reasonCode);
}
}
public static void main(String args[])
{
new MQTest3(args[0],args[1]);
}
}


ERROR MESSAGE

D:\JavaMQTest\GaneshMQTest>java MQTest3 PAC1 TLQ3
Max Msg Length for qMgr = 4194304
Unable to load message catalog - mqji
com.ibm.mq.MQException: Message catalog not found
at com.ibm.mq.MQQueueManager.accessQueue(MQQueueManager.java:1365)
at com.ibm.mq.MQQueueManager.accessQueue(MQQueueManager.java:1410)
at MQTest3.<init>(MQTest3.java:16)
at MQTest3.main(MQTest3.java:40)
Completion Code: 2 reason: 2184
_________________
Thanks,
Ganesh C
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
bduncan
PostPosted: Thu Sep 26, 2002 8:44 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

You say "yesterday everything was working fine." What changed between yesterday and today? Were any changes made to the code or queue manager configuration, patch level, etc., or did it simply stop working without anything apparently changing?
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
tcganesh
PostPosted: Thu Sep 26, 2002 10:26 am    Post subject: Installed J2EESDK Reply with quote

Novice

Joined: 12 Sep 2002
Posts: 13
Location: New York

I did install Java J2EE SDK for EJB's, JMS other J2EE to work.

Will this affect MQ anyway.

I checked the classpath that too looks fine.

Any other info needed I can help with.
_________________
Thanks,
Ganesh C
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
tcganesh
PostPosted: Thu Sep 26, 2002 10:37 am    Post subject: Remote Queue Missing Remote Q Property Reply with quote

Novice

Joined: 12 Sep 2002
Posts: 13
Location: New York

Thanks Duncan.

I checked all Channel and Q Defns. I found I had cleared the Remote Q Name for Remote Definition.

Once I put in It worked fine.

I appreciate your site I get fast and good response for all Posts.
_________________
Thanks,
Ganesh C
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
vennela
PostPosted: Thu Sep 26, 2002 10:38 am    Post subject: Reply with quote

Jedi Knight

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

Try "MSender.java" program from the repository. Download it and compile it. See if anything goes wrong. Downloading J2EE shouldn't affect I guess. If you are able to run MSender.java then your code has to to be looked into. I don't see particularly anything wrong.

Can you put test messages to the queue you are trying using API Exerciser?

Did you limit the number of messages that TLQ3 can take and did you exceed the limit. ?

Did you "put ihibit" the queue?

---
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vennela
PostPosted: Thu Sep 26, 2002 10:41 am    Post subject: Reply with quote

Jedi Knight

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

Well,

That was quick

Glad you got it to working

---
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ Java Error 2184
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.