|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MB/MQ Migration Issue.. |
« View previous topic :: View next topic » |
Author |
Message
|
mbguy |
Posted: Thu Apr 16, 2009 2:42 am Post subject: MB/MQ Migration Issue.. |
|
|
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 |
|
 |
Gaya3 |
Posted: Thu Apr 16, 2009 3:22 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
|
Back to top |
|
 |
mbguy |
Posted: Thu Apr 16, 2009 10:25 pm Post subject: |
|
|
Apprentice
Joined: 23 Jul 2008 Posts: 25
|
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 |
|
 |
fjb_saper |
Posted: Fri Apr 17, 2009 11:07 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|