Author |
Message
|
Blaaberg |
Posted: Fri Jun 06, 2014 1:07 am Post subject: MH05 - reason code 2495 (MQRC_MODULE_NOT_FOUND) |
|
|
Novice
Joined: 14 Oct 2011 Posts: 12
|
I have set up a new Windows Server 2008 R2 64bit with WMQ 7.5.0.3
We use MH05 to get event messages from event queues but I cant get it to work on this installation.
The Error:
C:\Users\ovoinst>cmd /C "C:/ProgramData/HP/HP BTO Software/bin/instrumentation/xmqdspev" -m MQSBLRXW74 -q SYSTEM.ADMIN.PERFM.EVENT
Version: 7.5.0.3
Xmqdspev v1.2 - Developed by Oliver Fisse (IBM)
MQCONN ended with reason code 2495
Link to this reason code: http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.csqsao.doc/fm20540_1.htm?cp=SSFKSJ_7.0.1%2F1-28-46-1-0-428&lang=en
It says that a shared Java library could not be loaded.
The download website says it should work with WMQ7.5 and I have have installed jre-6u4-windows-x64.
I have another WinServer 2008 R2 64bit with WMQ7.0.1 where it works with the same jre installed. I also testet the new server with version 7.0.1 but the same error.
I have tried following the instructions from this link but no luck:
http://www-01.ibm.com/support/docview.wss?uid=swg21607934
Have anybody seen this before or can help me a little? |
|
Back to top |
|
|
Michael Dag |
Posted: Fri Jun 06, 2014 2:52 am Post subject: |
|
|
Jedi Knight
Joined: 13 Jun 2002 Posts: 2602 Location: The Netherlands (Amsterdam)
|
Does your MQ_JAVA_LIB_PATH contain both MQInstallPath\java\lib64 and MQInstallPath\java\lib ?
try and remove the lib64 reference _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
|
fjb_saper |
Posted: Fri Jun 06, 2014 5:25 am Post subject: |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20729 Location: LI,NY
|
What is the value of your JAVA_HOME environment variable and where does it point to (is that a 64 bit or a 32 bit version of java)? Is it an IBM java implementation or a non IBM java implementation? Server (bindings) connection or client connection with SSL? _________________ MQ & Broker admin |
|
Back to top |
|
|
Blaaberg |
Posted: Tue Jun 10, 2014 5:51 am Post subject: |
|
|
Novice
Joined: 14 Oct 2011 Posts: 12
|
Hi there
The JAVA_LIB_PATH was D:\WMQ\java\lib64;D:\WMQ\java\lib
When I removed the 64bit reference manually it worked.
Dont know if its a bug but irritating to remember that on 64bit servers.
Anyway thanks
Michael Dag wrote: |
Does your MQ_JAVA_LIB_PATH contain both MQInstallPath\java\lib64 and MQInstallPath\java\lib ?
try and remove the lib64 reference |
|
|
Back to top |
|
|
paustin_ours |
Posted: Mon Mar 16, 2015 7:48 am Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
same with me. when i removed the 64lib it worked |
|
Back to top |
|
|
fjb_saper |
Posted: Tue Mar 17, 2015 5:30 am Post subject: |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20729 Location: LI,NY
|
paustin_ours wrote: |
same with me. when i removed the 64lib it worked |
And what is the result of java -version?
Looks to me that you are running a 32 bit java executable by default ...
What is the content of your JAVA_HOME environment variable? _________________ MQ & Broker admin |
|
Back to top |
|
|
LouML |
Posted: Wed Sep 23, 2015 5:48 am Post subject: |
|
|
Partisan
Joined: 10 Nov 2005 Posts: 305 Location: Jersey City, NJ / Bethpage, NY
|
I'm not sure if I should have opened a new topic or add to this one I found.
We’re running MQ Server 8.0.0.2 on Linux RedHat with Java version 1.7.0_75
Code: |
[mqm@mqm3d mh05]$ uname -a
[mqm@mqm3d mh05]$ Linux mqm3d 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 12:19:26 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux
[mqm@mqm3d mh05]$
[mqm@mqm3d mh05]$ java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.0.0.1.el6_6-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
[mqm@mqm3d mh05]$
|
I’ve modified the xmqdspev.sh file with:
Code: |
export MQ_COMMAND_TOOLS=/apps/mqm/etc/mq_admin/SupportPacs/mh05 |
and uncommented the following:
Code: |
java -Djava.library.path=/opt/mqm/java/lib64 -cp /opt/mqm/java/lib64/com.ibm.mq.jar:/opt/mqm/java/lib64/com.ibm.mq.pcf.jar:$MQ_COMMAND_TOOLS/com.ibm.xmq.events.jar com.ibm.xmq.events.Xmqdspev $* |
When I try to run MH05 with 64bit java, I get the following:
Code: |
[mqm@mqm3d mh05]$ ./xmqdspev.sh -m QMMQDEV -q SYSTEM.ADMIN.QMGR.EVENT
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/MQException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getMethod0(Class.java:2856)
at java.lang.Class.getMethod(Class.java:1668)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.MQException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
[mqm@mqm3d mh05]$
|
Then I modified the xmqdspev.sh file to change from 64bit to 32bit:
Code: |
java -Djava.library.path=/opt/mqm/java/lib -cp /opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:$MQ_COMMAND_TOOLS/com.ibm.xmq.events.jar com.ibm.xmq.events.Xmqdspev $* |
This time I get the reason code 2495 when trying to run MH05.
Code: |
[mqm@mqm3d mh05]$ ./xmqdspev.sh -m QMMQDEV -q SYSTEM.ADMIN.QMGR.EVENT
Xmqdspev v1.3 - Developed by Oliver Fisse (IBM)
OpenJDK 64-Bit Server VM warning: You have loaded library /opt/mqm/java/lib/libmqjbnd.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
MQCONN ended with reason code 2495
[mqm@mqm3d mh05]$
|
I have no issues running MH04, which is setup the same way.
Code: |
[mqm@mqm3d mh05]$ cat /apps/mqm/etc/mq_admin/SupportPacs/mh05/xmqdspev.sh | grep -v '#'
export MQ_COMMAND_TOOLS=/apps/mqm/etc/mq_admin/SupportPacs/mh05
java -Djava.library.path=/opt/mqm/java/lib64 -cp /opt/mqm/java/lib64/com.ibm.mq.jar:/opt/mqm/java/lib64/com.ibm.mq.pcf.jar:$MQ_COMMAND_TOOLS/com.ibm.xmq.events.jar com.ibm.xmq.events.Xmqdspev $*
[mqm@mqm3d mh05]$
[mqm@mqm3d mh05]$ cat /apps/mqm/etc/mq_admin/SupportPacs/mh04/xmqqstat.sh | grep -v '#'
export MQ_COMMAND_TOOLS=/apps/mqm/etc/mq_admin/SupportPacs/mh04
java -Djava.library.path=/opt/mqm/java/lib -cp /opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:$MQ_COMMAND_TOOLS/com.ibm.xmq.utilities.jar com.ibm.xmq.utilities.Xmqqstat $*
[mqm@mqm3d mh05]$
[mqm@mqm3d mh05]$ cat /apps/mqm/etc/mq_admin/SupportPacs/mh04/xmqqstab.sh | grep -v '#'
export MQ_COMMAND_TOOLS=/apps/mqm/etc/mq_admin/SupportPacs/mh04
java -Djava.library.path=/opt/mqm/java/lib -cp /opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:$MQ_COMMAND_TOOLS/com.ibm.xmq.utilities.jar com.ibm.xmq.utilities.Xmqqstab $*
[mqm@mqm3d mh05]$
[mqm@mqm3d mh05]$
[mqm@mqm3d mh05]$ /apps/mqm/etc/mq_admin/SupportPacs/mh05/xmqdspev.sh
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/MQException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getMethod0(Class.java:2856)
at java.lang.Class.getMethod(Class.java:1668)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.MQException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
[mqm@mqm3d mh05]$
[mqm@mqmgw3d ~]$ /apps/mqm/etc/SupportPacs/mh04/xmqqstab.sh
Xmqqstab v1.0 - Display statistics for a list of Websphere MQ local queues
(c) Copyright IBM Corp. 2010, all rights reserved
Xmqqstab displays and reports statistics for a list of Websphere MQ
local queues.
Usage: Xmqqstab -m qmgr-name [-q q-list] [-n] [-r] [(-c chl-name -x conn-name
[-u ciph-suite] | -v | -l | -b chl-tbl-name)]
Options:
-b chl-tbl-name Use the named client channel table
-c chl-name Channel name for client connection
-l Use the MQCHLTAB/MQCHLLIB environment variables
-m qmgr-name Name of the queue manager hosting the queue(s)
-n Display only queues with non-zero queue depth
-q q-list List of queues to display statistics for
-r Display and reset dequeue and enqueue counts
-u ciph-suite Cipher suite for SSL connection
-v Use the MQSERVER environment variable
-x conn-name Connection name as host(port) for client connection
q-list: list of queue names separated by space
Wildcards * and ? may be used for queue names. * replaces one or more
characters, ? replaces a single character.
Statistics displayed
--------------------
CQD Current queue depth LGETDATE Last GET date
PQF Percentage queue full LGETTIME Last GET time
MxQD Maximum queue depth LPUTDATE Last PUT date
OIC Open input count LPUTTIME Last PUT time
OUC Open output count QOM Oldest message age
MDC Message dequeue count G GET enabled/disabled
MEC Message enqueue count P PUT enabled/disabled
UNC Number of uncommitted changes
Send bug reports, comments, etc... to Oliver Fisse (ISSW) at fisse@us.ibm.com
This tool is provided in good faith and AS-IS. There is no warranty
or further service implied or committed via IBM product service channels.
[mqm@mqmgw3d ~]$
[mqm@mqm3d mh05]$ /apps/mqm/etc/mq_admin/SupportPacs/mh04/xmqqstat.sh
Xmqqstat v1.1 - Display realtime statistics about a Websphere MQ local queue
(c) Copyright IBM Corp. 2010, all rights reserved
Xmqqstat displays the statistics listed below in realtime for a
WebSphere MQ local queue on a set interval.
Usage: Xmqqstat -m qmgr-name -q q-name [-d duration] [-e] [-f filename] [-h]
[-i interval] [-p lines] [-s] [-t] [(-c chl-name -x conn-name
[-u ciph-suite] | -v | -l | -b chl-tbl-name)]
Options:
-b chl-tbl-name Use the named client channel table
-c chl-name Channel name for client connection
-d duration Run for a specific duration (seconds)
-e Display extended data
-f file-name Record statistics to a file
-h Display handles information accessing the queue
-i interval Interval (seconds) at which to display statistics
-l Use the MQCHLTAB/MQCHLLIB environment variables
-m qmgr-name Name of the queue manager hosting the queue
-p lines Number of lines per page (without header)
-q q-name Name of the local queue to display statistics for
-s Do not display statistics if no activity
-t Display time
-u ciph-suite Cipher suite for SSL connection
-v Use the MQSERVER environment variable
-x conn-name Connection name as host(port) for client connection
Statistics displayed
--------------------
Time Current time OUC Open output count
MxML Maximum message size MDC Message dequeue count
MxQD Maximum queue depth MEC Message enqueue count
G GET enabled/disabled UNC Number of uncommitted changes
P PUT enabled/disabled CQD Current queue depth
OIC Open input count
PQF Percentage queue full QOM Queue oldest message age
TQF Time to queue full OQTS Time messages remain on queue (short)
TQE Time to queue empty OQTL Time messages remain on queue (long)
PID Process id USER ID User id
TID Thread id B Queue opened for browse
AT Application type INP Queue opened for input and mode
CHL Channel name I Queue opened for inquire
APPL TAG Application tag O Queue opened for output
CONN Connection name S Queue opened for set
ASID Address space id TASK CICS task number
PSTI Program spec table id TRAN CICS transaction id
PSB Program spec block name
Send bug reports, comments, etc... to Oliver Fisse (IBM) at fisse@us.ibm.com
This tool is provided in good faith and AS-IS. There is no warranty
or further service implied or committed via IBM product service channels.
[mqm@mqm3d mh05]$
|
_________________ Yeah, well, you know, that's just, like, your opinion, man. - The Dude |
|
Back to top |
|
|
mqjeff |
Posted: Wed Sep 23, 2015 6:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It looks like you need to change your 64bit classpath...
Code: |
java -Djava.library.path=/opt/mqm/java/lib64 -cp /opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:$MQ_COMMAND_TOOLS/com.ibm.xmq.events.jar com.ibm.xmq.events.Xmqdspev $* |
changing the ..mqm/java/lib64 in the classpath to ../mqm/java/lib
Also, any time you have an issue with a SupportPac, it's a good idea to contact the author/maintainer... _________________ chmod -R ugo-wx / |
|
Back to top |
|
|
fjb_saper |
Posted: Wed Sep 23, 2015 6:07 am Post subject: |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20729 Location: LI,NY
|
Have you tried changing the class path to
Code: |
-cp /opt/mqm/java/lib/*:.:$MQ_COMMAND_TOOLS/com.ibm.xmq.events.jar |
How does that work for you? _________________ MQ & Broker admin |
|
Back to top |
|
|
LouML |
Posted: Wed Sep 23, 2015 6:11 am Post subject: |
|
|
Partisan
Joined: 10 Nov 2005 Posts: 305 Location: Jersey City, NJ / Bethpage, NY
|
mqjeff wrote: |
It looks like you need to change your 64bit classpath...
Code: |
java -Djava.library.path=/opt/mqm/java/lib64 -cp /opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:$MQ_COMMAND_TOOLS/com.ibm.xmq.events.jar com.ibm.xmq.events.Xmqdspev $* |
changing the ..mqm/java/lib64 in the classpath to ../mqm/java/lib
Also, any time you have an issue with a SupportPac, it's a good idea to contact the author/maintainer... |
That was a typo. I actually had it correct when I tried it. _________________ Yeah, well, you know, that's just, like, your opinion, man. - The Dude |
|
Back to top |
|
|
LouML |
Posted: Wed Sep 23, 2015 6:15 am Post subject: |
|
|
Partisan
Joined: 10 Nov 2005 Posts: 305 Location: Jersey City, NJ / Bethpage, NY
|
fjb_saper wrote: |
Have you tried changing the class path to
Code: |
-cp /opt/mqm/java/lib/*:.:$MQ_COMMAND_TOOLS/com.ibm.xmq.events.jar |
How does that work for you? |
Still no good.
Again, I have no issues with MH04 (by the same author with the same type of configuration).
Strange thing, when I use 32 bit with no options, I get the help page.
Code: |
[mqm@mqm3d mh05]$ ./xmqdspev.sh
__ __ _
\ \/ /_ __ ___ __ _ __| |___ _ __ _____ __
\ /| '_ ` _ \ / _` |/ _` / __| '_ \ / _ \ \ / /
/ \| | | | | | (_| | (_| \__ \ |_) | __/\ V /
/_/\_\_| |_| |_|\__, |\__,_|___/ .__/ \___| \_/
|_| |_|
Xmqdspev v1.3 - Display IBM WebSphere MQ Events
Copyright (c) IBM Corp. 2011-2015, all rights reserved
Xmqdspev reads, interprets and displays IBM WebSphere MQ generated
event messages from SYSTEM.ADMIN.* event queues.
Usage: Xmqdspev -m qmgr-name -q q-name [-d] [-f file] [-n num] [-r]
[-w [-i interval] [-s]] ([-a timestamp] | [-p timestamp])
[-e email-config] [-g grep-string] [-o event-list]
[(-c chl-name -x conn-name [-u ciph-suite] [-y user-id]
[-z pw] | -v | -l | -b chl-tbl-name)]
Xmqdspev -m qmgr-name -t topic-string [-d] [-f file] [-w [-i interval]]
[-e email-config] [-g grep-string] [-o event-list]
[(-c chl-name -x conn-name [-u ciph-suite] [-y user-id]
[-z pw] | -v | -l | -b chl-tbl-name)]
Options:
-a timestamp Display event messages dated after timestamp
-b chl-tbl-name Use the named client channel table
-c chl-name Channel name for client connection
-d Display details for commands & configuration events
-e email-config Email configuration file name to email events
-f file Output events to a file
-g grep-string Display only events matching a string
-i interval Wait interval (ms) to poll the event queue
-l Use the MQCHLTAB/MQCHLLIB environment variables
-m qmgr-name Name of the queue manager
-n num Display the first <num> event messages
-o event-list Omit specific events (comma delimited)
-p timestamp Display event messages dated before timestamp
-q q-name Name of the event queue
-r Destructively get event messages
-s Skip past the last event message
-t topic-string Topic string events are published on
-u ciph-suite Cipher suite for SSL connection
-v Use the MQSERVER environment variable
-w Wait mode
-x conn-name Connection name as host(port) for client connection
-y user-id User id used to connect to the queue manager
-z pw Password associated with the user-id
Send bug reports, comments, etc... to Oliver Fisse (IBM) at fisse@us.ibm.com
This tool is provided in good faith and AS-IS. There is no warranty
or further service implied or committed via IBM product service channels.
[mqm@mqm3d mh05]$
|
When I use it with options, it fails.
Code: |
[mqm@mqm3d mh05]$ ./xmqdspev.sh -m QMMQDEV -q SYSTEM.ADMIN.QMGR.EVENT -d
Xmqdspev v1.3 - Developed by Oliver Fisse (IBM)
OpenJDK 64-Bit Server VM warning: You have loaded library /opt/mqm/java/lib/libmqjbnd.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
MQCONN ended with reason code 2495
[mqm@mqm3d mh05]$
|
When I use 64 bit, it fails both ways.
Also, for MH04, 32bit works. _________________ Yeah, well, you know, that's just, like, your opinion, man. - The Dude |
|
Back to top |
|
|
fjb_saper |
Posted: Wed Sep 23, 2015 6:18 am Post subject: |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20729 Location: LI,NY
|
I had it work for 32 bits on windows... _________________ MQ & Broker admin |
|
Back to top |
|
|
mqjeff |
Posted: Wed Sep 23, 2015 6:23 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Does it work if you use a client connection instead of a bindings connection? _________________ chmod -R ugo-wx / |
|
Back to top |
|
|
LouML |
Posted: Wed Sep 23, 2015 6:29 am Post subject: |
|
|
Partisan
Joined: 10 Nov 2005 Posts: 305 Location: Jersey City, NJ / Bethpage, NY
|
mqjeff wrote: |
Does it work if you use a client connection instead of a bindings connection? |
Yes, it does! (I mean once I take care of the permissions!).
Code: |
[mqm@mqm3d mh05]$ /apps/mqm/etc/mq_admin/SupportPacs/mh05/xmqdspev.sh -m QMMQDEV -q SYSTEM.ADMIN.QMGR.EVENT -d -c NMS.SVRCONN -x "mqdev(1414)"
Xmqdspev v1.3 - Developed by Oliver Fisse (IBM)
MQCONN ended with reason code 2035
[mqm@mqm3d mh05]$
|
Strange.
Also, further comparison testing with MH04. Only works when I use 32bit. When I change xmqstat.sh and xmqstab.sh to use 64bit, they both fail. _________________ Yeah, well, you know, that's just, like, your opinion, man. - The Dude |
|
Back to top |
|
|
mqjeff |
Posted: Wed Sep 23, 2015 6:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You should try the IBM jvm rather than the OpenJDK jvm. _________________ chmod -R ugo-wx / |
|
Back to top |
|
|
|