Author |
Message
|
mike2315 |
Posted: Tue May 26, 2015 8:38 am Post subject: Getting 2156 error in vb.net put message to remote queue |
|
|
Newbie
Joined: 14 Apr 2004 Posts: 4 Location: New York
|
I intalled MQ 8 on Vertual server copied programs on new server getting 2156 error when put message into queue. Any Idea what can cause the error????
Thanks |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue May 26, 2015 8:45 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Did you research ReasonCode 2156? From a $ or C: prompt, type 'mqrc 2156'. Or, go to google, and search for mq+2156. The explanations you will find there are clear.
What version of mq was the old server? Did the program work before? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mike2315 |
Posted: Tue May 26, 2015 9:02 am Post subject: |
|
|
Newbie
Joined: 14 Apr 2004 Posts: 4 Location: New York
|
The old server 5.3 Windows 2003 server new Server is Windows 2012 R2 MQ version 8
I search google I found following but not sure what to do.
MQRC_RESPONSE_RECORDS_ERROR
Explanation
An MQOPEN or MQPUT1 call was issued to open a distribution list (that is, the RecsPresent field in MQOD is greater than zero), but the MQRR response records are not specified correctly. One of the following applies:• ResponseRecOffset is not zero and ResponseRecPtr is not zero and not the null pointer.
• ResponseRecPtr is not a valid pointer.
• ResponseRecPtr or ResponseRecOffset points to storage that is not accessible.
This reason code occurs in the following environments: AIX®, HP-UX, IBM® i, Solaris, Windows, plus IBM MQ clients connected to these systems.
Completion Code
MQCC_FAILED
Programmer response
Ensure that at least one of ResponseRecOffset and ResponseRecPtr is zero. Ensure that the field used points to accessible storage. |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 26, 2015 9:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mike2315 wrote: |
The old server 5.3 Windows 2003 server new Server is Windows 2012 R2 MQ version 8 |
That's a big, big change in MQ versions. That's a fairly serious change in Windows architecture. I bet the VB.NET you're using isn't current either.
mike2315 wrote: |
I search google I found following but not sure what to do. |
I'd start with:
mike2315 wrote: |
Programmer response
Ensure that at least one of ResponseRecOffset and ResponseRecPtr is zero. Ensure that the field used points to accessible storage. |
I'd make sure the .NET assemblies match the new MQ not the old one. I'd make sure that the fields mentioned in the response are validly defined and initialized.
Basically I'd review the VB like it was brand new and bug fix. You've changed so much infrastructure it might as well be. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mike2315 |
Posted: Tue May 26, 2015 9:33 am Post subject: |
|
|
Newbie
Joined: 14 Apr 2004 Posts: 4 Location: New York
|
I am using MQ.dll on vb.net program to open and put message in the queue. Probably this dll is outdated. Any suggestions where to get most current dll for MQ 8 on Windows 2012
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 26, 2015 10:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mike2315 wrote: |
I am using MQ.dll on vb.net program to open and put message in the queue. Probably this dll is outdated. Any suggestions where to get most current dll for MQ 8 on Windows 2012 |
Should be part of the MQ 8 install on that server. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|