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 » WebSphere Message Broker (ACE) Support » MB/MQ Migration Issue..

Post new topic  Reply to topic
 MB/MQ Migration Issue.. « View previous topic :: View next topic » 
Author Message
mbguy
PostPosted: Thu Apr 16, 2009 2:42 am    Post subject: MB/MQ Migration Issue.. Reply with quote

Apprentice

Joined: 23 Jul 2008
Posts: 25

i had a java file which is used for putting messages into a particular Queue
this is was working fine previously.but recently we had migrated from Mb 5.0 to 6.1 and MQ 5.3 to 7.0 and also from 32 bit to 64 bit.

now this java application when running is giving an Mq exception saying

MQJE001: Completion Code '2', Reason '2495'

I checkd it in google and also in this forum but could not get any useful information
can anyone say when do we get this exception .
Is this because of the change in 32 bit to 64 bit
Wil MB6.1 and MQ 7.0 work fine on 64bit..?
any suggestion ..
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Apr 16, 2009 3:22 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Please check MQ error log files and FDC file (if any) and provide the information.

http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14226298

http://www-01.ibm.com/support/docview.wss?rs=404&context=SS7K4U&dc=DB560&dc=DB520&uid=swg21376804&loc=en_US&cs=UTF-8&lang=en&rss=ct404websphere


http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
mbguy
PostPosted: Thu Apr 16, 2009 10:25 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Jul 2008
Posts: 25

Gaya3 wrote:
Please check MQ error log files and FDC file (if any) and provide the information.

http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14226298

http://www-01.ibm.com/support/docview.wss?rs=404&context=SS7K4U&dc=DB560&dc=DB520&uid=swg21376804&loc=en_US&cs=UTF-8&lang=en&rss=ct404websphere


http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp




Gayatri,
This is the info of the log4j log file.
we could not see any error in the Mq error logs..

[ReadSOLTMMExtract ] (16 04 2009 16:37:40) INFO - Read_SOL_TMM_to_CU program begins execution...
[ReadSOLTMMExtract ] (16 04 2009 16:37:40) INFO - ............................................
[ReadSOLTMMExtract ] (16 04 2009 16:37:40) INFO - QMGR name : ISSQM
[ReadSOLTMMExtract ] (16 04 2009 16:37:40) INFO - queue name : CUP.SOL_TO_UNIFY.TMM.INPUTQ
[ReadSOLTMMExtract ] (16 04 2009 16:37:40) INFO - OutputDirName : /unfint/CentralUnify/Extracts/SOL/Archive/TMM
[ReadSOLTMMExtract ] (16 04 2009 16:37:40) INFO - InputDirName : /unfint/CentralUnify/Extracts/SOL/TMM
[ReadSOLTMMExtract ] (16 04 2009 16:37:40) INFO - connecting
[ReadSOLTMMExtract ] (16 04 2009 16:37:40) INFO - in connect
[ReadSOLTMMExtract ] (16 04 2009 16:37:41) ERROR - Error in queue manager connect....
[ReadSOLTMMExtract ] (16 04 2009 16:37:41) ERROR - QMGR Name : ISSQM
[ReadSOLTMMExtract ] (16 04 2009 16:37:41) ERROR - CC : 2
[ReadSOLTMMExtract ] (16 04 2009 16:37:41) ERROR - RC : 2495

when we try o compile the java Program it says

ReadSOLTMMExtract.java:357: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
private void mqClose() throws MQException { // close the queue
^
ReadSOLTMMExtract.java:140: cannot access com.ibm.mq.jmqi.JmqiObject
file com/ibm/mq/jmqi/JmqiObject.class not found
new MQQueueManager(qmgrName1, MQC.MQCNO_STANDARD_BINDING);
^
ReadSOLTMMExtract.java:144: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp) {
^
ReadSOLTMMExtract.java:162: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp) {
^
ReadSOLTMMExtract.java:170: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp1) {
^
ReadSOLTMMExtract.java:197: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException ex) {
^
ReadSOLTMMExtract.java:317: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp1) {
^
ReadSOLTMMExtract.java:323: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException ex) {
^
ReadSOLTMMExtract.java:330: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp1) {
^
ReadSOLTMMExtract.java:362: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp) {
^
Note: ReadSOLTMMExtract.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
10 errors




I had also compiled it using the -deprecation ..it says


ReadSOLTMMExtract.java:357: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
private void mqClose() throws MQException { // close the queue
^
ReadSOLTMMExtract.java:140: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
new MQQueueManager(qmgrName1, MQC.MQCNO_STANDARD_BINDING);
^
ReadSOLTMMExtract.java:140: cannot access com.ibm.mq.jmqi.JmqiObject
file com/ibm/mq/jmqi/JmqiObject.class not found
new MQQueueManager(qmgrName1, MQC.MQCNO_STANDARD_BINDING);
^
ReadSOLTMMExtract.java:144: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp) {
^
ReadSOLTMMExtract.java:162: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp) {
^
ReadSOLTMMExtract.java:170: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp1) {
^
ReadSOLTMMExtract.java:186: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
MQC.MQOO_OUTPUT
^
ReadSOLTMMExtract.java:187: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
+ MQC.MQOO_SET_IDENTITY_CONTEXT
^
ReadSOLTMMExtract.java:188: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
+ MQC.MQOO_BIND_ON_OPEN;
^
ReadSOLTMMExtract.java:190: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
MQC.MQOO_OUTPUT
^
ReadSOLTMMExtract.java:191: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
+ MQC.MQOO_SET_IDENTITY_CONTEXT
^
ReadSOLTMMExtract.java:192: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
+ MQC.MQOO_BIND_ON_OPEN;
^
ReadSOLTMMExtract.java:197: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException ex) {
^
ReadSOLTMMExtract.java:211: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
MQC.MQPMO_SET_IDENTITY_CONTEXT
^
ReadSOLTMMExtract.java:212: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
+ MQC.MQPMO_FAIL_IF_QUIESCING
^
ReadSOLTMMExtract.java:213: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
+ MQC.MQPMO_SYNCPOINT;
^
ReadSOLTMMExtract.java:273: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
messageObject.messageId = MQC.MQMI_NONE;
^
ReadSOLTMMExtract.java:274: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
messageObject.correlationId = MQC.MQCI_NONE;
^
ReadSOLTMMExtract.java:275: warning: com.ibm.mq.MQC in com.ibm.mq has been deprecated
messageObject.persistence = MQC.MQPER_PERSISTENT;
^
ReadSOLTMMExtract.java:317: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp1) {
^
ReadSOLTMMExtract.java:323: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException ex) {
^
ReadSOLTMMExtract.java:330: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp1) {
^
ReadSOLTMMExtract.java:362: cannot resolve symbol
symbol : class MQException
location: class ReadSOLTMMExtract
} catch (MQException mqExp) {
^
10 errors
13 warnings


it says
com.ibm.mq.MQC in com.ibm.mq has been deprecated
any idea on which class we need to use intead of com.ibm.mq.MQC
i have no idea on java programing need some help..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Apr 17, 2009 11:07 pm    Post subject: Reply with quote

Grand High Poobah

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

If you have no idea on java programming you will need the help of a java programmer. Some of the imports have changed and the jar files have changed some. So yes you will need to implement the changes and recompile. AFAIK the changes are in the documentation. Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MB/MQ Migration Issue..
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.