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 IndexWebSphere Message Broker (ACE) SupportJava exception on mqsilist

Post new topicReply to topic
Java exception on mqsilist View previous topic :: View next topic
Author Message
MrSmith
PostPosted: Fri Feb 20, 2015 7:44 am Post subject: Java exception on mqsilist Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

OK system config is as follows :- linuxmate 17 (based on latest ubuntu)
appreciate Ubuntu is not officially supported but plenty of developers are using it...apparently even in IBM

Version 8.0.0.1b of WebsphereMQ (64bit)
Version 8.0.0.5 of Toolkit (32bit)
Version 8.0.0.5 Runtime (64 bit)
Installed Sun JDK 1.7_67 (64bit)
Obviously the JRE 1.6 is installed as part of Websphere software

get the following error which would imply it doesnt like the classes from the CLASSPATH but as can see the version being "accessed" within the bash shell is the IBM one, any ideas anyone have looked on Goggle and here...

Code:
[b]kevin@kevin-linuxmate17vm ~ $ mqsilist
BIP8075E: A Java exception was caught from class 'com/ibm/broker/config/util/MQSIList.main'. The text is 'java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/mq/MQException, offset=6'.
A Java exception was caught via the JNI.
Check preceding messages for related errors and retry the operation. If the exception still occurs, contact your IBM support center.
kevin@kevin-linuxmate17vm ~ $ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460sr16-20140418_01(SR16))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr16-20140416_196573 (JIT enabled, AOT enabled)
J9VM - 20140416_196573
JIT  - r9_20130920_46510ifx5
GC   - GA24_Java6_SR16_20140416_1614_B196573)
JCL  - 20140406_01
kevin@kevin-linuxmate17vm ~ $ [/b]


can post CLASSPATH env if required or any others but having looked through LD_LIBPATH etc and the ones expected seem to be there

TIA
_________________
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Feb 20, 2015 9:19 am Post subject: Reply with quote

Grand High Poobah

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

Before running mqsilist try following:
Code:
 which java
export PATH=${MQSI_JREPATH}/bin:${PATH}
which java
mqsilist

And let us know about the result...

_________________
MQ & Broker admin


Last edited by fjb_saper on Thu Mar 26, 2015 8:16 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
MrSmith
PostPosted: Tue Feb 24, 2015 3:27 am Post subject: Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

fjb_saper

First just to let you know the setting of mqsiprofile and setmqenv etc etc is all done in th bashrc file not .profile although the below has been done manually...

If i run "which java" as you requested i get
Code:
/usr/bin/jav



if I run java -version i get
Code:
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mod



if i then call mqsiprofile and then "which java" i get
Code:
/opt/ibm/mqsi/8.0.0.5/jre16/bin/java


- which the ibm installed jvm correct??

if i then do java -version i get, which is the ibm installed JRE
Code:
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460sr16-20140418_01(SR16))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr16-20140416_196573 (JIT enabled, AOT enabled)
J9VM - 20140416_196573
JIT  - r9_20130920_46510ifx5
GC   - GA24_Java6_SR16_20140416_1614_B196573)
JCL  - 20140406_0


if i check the environment variables i get the following for MQSI and PATH respectively the latter showing that the IBM path is the leading place to "find" classes
Code:
MQSI_REGISTRY=/var/mqsi
MQSI_VERSION=8.0.0.5
MQSI_JREPATH=/opt/ibm/mqsi/8.0.0.5/jre16
MQSI_WORKPATH=/var/mqsi
MQSI_SECURITY_PROVIDER_PATH=/opt/ibm/mqsi/8.0.0.5/SecurityProviders
MQSI_PROCESSOR_ARCHITECTURE=64
MQSI_CATALINA_HOME=/opt/ibm/mqsi/8.0.0.5/catalina
PROSPECTIVE_MQSI_FILEPATH=/opt/ibm/mqsi/8.0.0.5
MQSI_FAD=6
MQSI_VERSION_F=5
MQSI_JARPATH=/opt/ibm/mqsi/8.0.0.5/classes:/opt/ibm/mqsi/8.0.0.5/messages
MQSI_FILEPATH=/opt/ibm/mqsi/8.0.0.5
MQSI_VERSION_M=0
MQSI_WEBADMIN_HOME=/opt/ibm/mqsi/8.0.0.5/webadmin
MQSI_LILPATH=/opt/ibm/mqsi/8.0.0.5/lil:/opt/ibm/mqsi/8.0.0.5/jplugin
MQSI_VERSION_V=8
MQSI_VERSION_R=0
MQSI_EXMLTCONFIGPATH=/opt/ibm/mqsi/8.0.0.5/exmltConfig


the PATH and CLASSPATH are :-
Code:
CLASSPATH=/opt/ibm/mqsi/8.0.0.5/messages:
/opt/ibm/mqsi/8.0.0.5/classes:
/opt/ibm/mqsi/8.0.0.5/classes/ConfigManagerProxy.jar:
/opt/ibm/mqsi/8.0.0.5/classes/brokerutil.jar:
/opt/mqm/java/lib/com.ibm.mq.jar:
/opt/mqm/java/lib/com.ibm.mqjms.jar:
/opt/mqm/samp/wmqjava/samples:
/opt/mqm/samp/jms/samples:
/var/mqsi/common/wsrr


and

Code:
PATH=/opt/ibm/mqsi/8.0.0.5/jre16/bin:
/opt/ibm/mqsi/8.0.0.5/bin:
/opt/ibm/mqsi/8.0.0.5/isadc:
/opt/mqm/bin:/usr/local/sbin:
/usr/local/bin:/usr/sbin:
/usr/bin:/sbin:/bin:/usr/games:/usr/local/game


this to me would imply that when i then call mqsilist i am looking at the ibm based classes etc so why still the unsuppoerted version error
Code:
BIP8075E: A Java exception was caught from class 'com/ibm/broker/config/util/MQSIList.main'. The text is 'java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/mq/MQException, offset=6'.
A Java exception was caught via the JNI.
Check preceding messages for related errors and retry the operation. If the exception still occurs, contact your IBM support center.


The only thing i have just noticed is that the last part of the error is mentioning com/ibm/mqMQException so is it more to do with the MQ installation than the Broker runtime?

The MQ install is a 64bit V8.0.0.1b
_________________
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Feb 24, 2015 8:28 am Post subject: Reply with quote

Grand High Poobah

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

MrSmith wrote:

if i then call mqsiprofile and then "which java" i get
Code:
/opt/ibm/mqsi/8.0.0.5/jre16/bin/java


- which the ibm installed jvm correct??

if i then do java -version i get, which is the ibm installed JRE
Code:
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460sr16-20140418_01(SR16))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr16-20140416_196573 (JIT enabled, AOT enabled)
J9VM - 20140416_196573
JIT  - r9_20130920_46510ifx5
GC   - GA24_Java6_SR16_20140416_1614_B196573)
JCL  - 20140406_0


if i check the environment variables i get the following for MQSI and PATH respectively the latter showing that the IBM path is the leading place to "find" classes
Code:
MQSI_REGISTRY=/var/mqsi
MQSI_VERSION=8.0.0.5
MQSI_JREPATH=/opt/ibm/mqsi/8.0.0.5/jre16
MQSI_WORKPATH=/var/mqsi
MQSI_SECURITY_PROVIDER_PATH=/opt/ibm/mqsi/8.0.0.5/SecurityProviders
MQSI_PROCESSOR_ARCHITECTURE=64
MQSI_CATALINA_HOME=/opt/ibm/mqsi/8.0.0.5/catalina
PROSPECTIVE_MQSI_FILEPATH=/opt/ibm/mqsi/8.0.0.5
MQSI_FAD=6
MQSI_VERSION_F=5
MQSI_JARPATH=/opt/ibm/mqsi/8.0.0.5/classes:/opt/ibm/mqsi/8.0.0.5/messages
MQSI_FILEPATH=/opt/ibm/mqsi/8.0.0.5
MQSI_VERSION_M=0
MQSI_WEBADMIN_HOME=/opt/ibm/mqsi/8.0.0.5/webadmin
MQSI_LILPATH=/opt/ibm/mqsi/8.0.0.5/lil:/opt/ibm/mqsi/8.0.0.5/jplugin
MQSI_VERSION_V=8
MQSI_VERSION_R=0
MQSI_EXMLTCONFIGPATH=/opt/ibm/mqsi/8.0.0.5/exmltConfig


the PATH and CLASSPATH are :-
Code:
CLASSPATH=/opt/ibm/mqsi/8.0.0.5/messages:
/opt/ibm/mqsi/8.0.0.5/classes:
/opt/ibm/mqsi/8.0.0.5/classes/ConfigManagerProxy.jar:
/opt/ibm/mqsi/8.0.0.5/classes/brokerutil.jar:
/opt/mqm/java/lib/com.ibm.mq.jar:
/opt/mqm/java/lib/com.ibm.mqjms.jar:
/opt/mqm/samp/wmqjava/samples:
/opt/mqm/samp/jms/samples:
/var/mqsi/common/wsrr


and

Code:
PATH=/opt/ibm/mqsi/8.0.0.5/jre16/bin:
/opt/ibm/mqsi/8.0.0.5/bin:
/opt/ibm/mqsi/8.0.0.5/isadc:
/opt/mqm/bin:/usr/local/sbin:
/usr/local/bin:/usr/sbin:
/usr/bin:/sbin:/bin:/usr/games:/usr/local/game


this to me would imply that when i then call mqsilist i am looking at the ibm based classes etc so why still the unsuppoerted version error
Code:
BIP8075E: A Java exception was caught from class 'com/ibm/broker/config/util/MQSIList.main'. The text is 'java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/mq/MQException, offset=6'.
A Java exception was caught via the JNI.
Check preceding messages for related errors and retry the operation. If the exception still occurs, contact your IBM support center.


The only thing i have just noticed is that the last part of the error is mentioning com/ibm/mqMQException so is it more to do with the MQ installation than the Broker runtime?

The MQ install is a 64bit V8.0.0.1b


Well there is your problem. See if there is an IBM available upgrade for your version of the broker to Java 7 as this seems to be the minimum required for MQ 8. If you have multiple versions of mq think about downgrading the broker's mq qmgr to version 7.5 (still works with java 6)...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
MrSmith
PostPosted: Thu Mar 26, 2015 6:43 am Post subject: Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

fjb_saper

Am not still not seeing the problem - having checked on goggle there would appear to be only two versions of the JRE supported
based on this link here
http://www-969.ibm.com/software/reports/compatibility/clarity-reports/report/html/softwareReqsForProduct?deliverableId=1281962721693&osPlatform=Linux#!

and then selecting the java link which says thus
Quote:

IBM Runtime Environment, Java Technology Edition 6.0.1 (J9 2.6) 6.0.1 (J9 2.6) 8.0.0.3
support icon support icon
No
(1)

View


so based on the fact that my previous posting said the java when mqsiprofile has been run is
Quote:

IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr16-20140416_196573 (JIT enabled, AOT enabled)

i would presume that the RE 1.6.0 IBM J9 2.4 is wrong version it talks about because the above from the website says J9 2.6???

- but if thats case this is the version its own product is shipping with the software so how can i get round this?? i install a runtime given to me by IBM, apply fixpacks supplied to me by IBM, but somehow have to upgrade their own supplied JRE....not sure how this is done tbh???
_________________
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 26, 2015 8:20 am Post subject: Reply with quote

Grand High Poobah

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

What you need to do is upgrade the broker to work with java 7.
Open a PMR on that...
I am sure there exits somewhere a procedure for that...
The chart shows that MQ8 is supported @ FP 8.0.0.4 so, if that fix pack does not apply java 7, and you run into trouble with mqsilist etc... open a PMR

Do you have a folder /opt/ibm/mqsi/8.0.0.5/jre17/bin


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
MrSmith
PostPosted: Fri Mar 27, 2015 2:53 am Post subject: Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

Have checked back through and nope no jre17 only jre16 so looks like its the PMR route then - will they do it though for one person if no one else has reported it and on a release that is only for dev and not supported per se???

Thanks fjb_saper for the extra pair of eyes
_________________
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Mar 27, 2015 4:54 am Post subject: Reply with quote

Grand High Poobah

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

going the absurd route... if you make sure that the MQ jre comes first in your path, can you execute the commands?
All in all you're probably better off with IIB 9 which is running on a 1.7 jre...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
MrSmith
PostPosted: Fri Mar 27, 2015 7:04 am Post subject: Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

fjb_saper wrote:
going the absurd route... if you make sure that the MQ jre comes first in your path, can you execute the commands?
All in all you're probably better off with IIB 9 which is running on a 1.7 jre...


No have tried all the permatations i can think of regarding classpath and path no dice, have downloaded IIB 9 and just doing 10 - in 9 the same JVM at 1.6 J9 seems to still being used!! , not sure on 10 yet but docs seem to say 1.7 so will see. Thx
_________________
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 27, 2015 7:06 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There should be a separate v1.7 JVM available somewhere in the install. Maybe I'm confusing that with the v1.6 jvmfrom older levels that only used v1.5...


Wait. I just went and looked in my IIB v9 runtime and there's a jre17 in there, and no jre16


Did you run mqsilist in a shell that had mqsiprofile applied?
Back to top
View user's profile Send private message
MrSmith
PostPosted: Fri Mar 27, 2015 10:39 am Post subject: Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

mqjeff wrote:
There should be a separate v1.7 JVM available somewhere in the install. Maybe I'm confusing that with the v1.6 jvmfrom older levels that only used v1.5...


Wait. I just went and looked in my IIB v9 runtime and there's a jre17 in there, and no jre16


Did you run mqsilist in a shell that had mqsiprofile applied?


mqjeff - i looked in my IIB9 and nope only jre16 but i have had this "software" a while so maybe its like a very early GA perhaps?? I done a quick (but not too thorough after all its Frdiay night) search for a JVM upgrade no luck though!
_________________
-------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Mar 27, 2015 11:45 am Post subject: Reply with quote

Grand High Poobah

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

MrSmith wrote:
mqjeff wrote:
There should be a separate v1.7 JVM available somewhere in the install. Maybe I'm confusing that with the v1.6 jvmfrom older levels that only used v1.5...


Wait. I just went and looked in my IIB v9 runtime and there's a jre17 in there, and no jre16


Did you run mqsilist in a shell that had mqsiprofile applied?


mqjeff - i looked in my IIB9 and nope only jre16 but i have had this "software" a while so maybe its like a very early GA perhaps?? I done a quick (but not too thorough after all its Frdiay night) search for a JVM upgrade no luck though!


Real strange. My IIB9001 (on windows gives me a java 1.7 :
Code:
java version "1.7.0"
Java(TM) SE Runtime Environment (build pwa6470sr5-20130619_01(SR5))
IBM J9 VM (build 2.6, JRE 1.7.0 Windows 7 amd64-64 Compressed References 20130617_152572 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR5_20130617_1436_B152572
JIT  - r11.b04_20130528_38954ifx1
GC   - R26_Java726_SR5_20130617_1436_B152572_CMPRSS
J9CL - 20130617_152572)
JCL - 20130616_01 based on Oracle 7u25-b12


??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rammer
PostPosted: Tue Apr 19, 2016 3:54 am Post subject: Reply with quote

Partisan

Joined: 02 May 2002
Posts: 359
Location: England

MrSmith - Did you get this fixed if so how? did you have to apply the APAR?
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportJava exception on mqsilist
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.