| Author |
Message
|
| Vitor |
Posted: Wed Feb 11, 2015 7:36 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| mqjeff wrote: |
| did you install the IBM jvm? Are you using it? |
Well we did a perfectly normal install, but:
| Code: |
mqbrkrs@lesi001az> java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
|
That doesn't sound very IBM to me, and sounds a lot like a Java that comes with RedHat. I'd welcome informed opinions, and suggested courses of action.... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Feb 11, 2015 7:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| mqjeff wrote: |
| Also, I assume you're running mqsicreateexecutiongroup as the same user that ran mqsicreatebroker? |
It's the same user, mqbrkrs. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| fjb_saper |
Posted: Wed Feb 11, 2015 7:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY
|
| mqjeff wrote: |
If AMS was in play, then I'd think amqsput and amqsget would fail.
Since c level stuff is working, and it's java level stuff that's failing..
did you install the IBM jvm? Are you using it? |
Not if the profile has a cms store defined but no jks store defined...  _________________ MQ & Broker admin |
|
| Back to top |
|
 |
| mqjeff |
Posted: Wed Feb 11, 2015 7:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Well, in theory, mqsi* should be using the stuff set in mqsiprofile, which should be pointing to the jvm under the /opt/ibm/mqsi/whatever
So the JVM shouldn't really be in question. I just twigged on it for the JSSEProvider perhaps missing some stuff.
It's worth (even though you've probably already done this) logging out and logging back in, then explicitly running setmqenv and mqsiprofile.
Ideally mqsiprofile will complain that it's already been applied. |
|
| Back to top |
|
 |
| fjb_saper |
Posted: Wed Feb 11, 2015 7:47 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY
|
check which java.
Then try pointing the java to the jdk/jre coming with the broker installation.
(You will have to change and export the PATH variable), then try again.
Anyways I thought the difference between IBM JVM and non IBM JVM was only felt doing SSL. So why would the broker try some SSL stuff if no AMS is in play on a server connection???
And check your user profile setup. I would have expected mqsiprofile to set up the IBM JVM in your path...  _________________ MQ & Broker admin |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Feb 11, 2015 7:51 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| fjb_saper wrote: |
| check which java. |
You say that like I'm going to know what you mean.....
...isn't it the java -version that I posted?
| fjb_saper wrote: |
Then try pointing the java to the jdk/jre coming with the broker installation.
(You will have to change and export the PATH variable), then try again.
|
I got this as a PATH:
| Code: |
PATH=/bin:/opt/mqm/gskit8/bin:/opt/mqm/bin:/opt/mqm/samp/bin:/opt/IBM/mqsi/9.0.0.2/bin:/usr/local/bin:/var/mqm/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/mqbrkrs/bin:/usr/bin/X11:/sbin:.
|
which don't have no stinkin' Java that I can see.
I also have:
| Code: |
MQSI_JARPATH=/opt/IBM/mqsi/9.0.0.2/classes:/opt/IBM/mqsi/9.0.0.2/messages
MQSI_JREPATH=/opt/IBM/mqsi/9.0.0.2/jre17
|
which to the untrained eye look to be pointing to some Java stuff that comes with IIB. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Feb 11, 2015 7:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| mqjeff wrote: |
It's worth (even though you've probably already done this) logging out and logging back in, then explicitly running setmqenv and mqsiprofile.
Ideally mqsiprofile will complain that it's already been applied. |
I can't log in and log out, but I can exit and sudo back into the mqbrkrs id at which point it looks like mqsiprofile runs (the version pops up) and my shell gets a load of env variables it didn't have before.
Still a problem running that command.
Still no problem running others.
Still banging my head against hard, flat objects and calling for the damnation of the people who invented Java and the people doing these wretched installs, in no particular order.
(Before anyone suggests it, a PMR is in place but I thought I'd try an elephant hunt here as well). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| mqjeff |
Posted: Wed Feb 11, 2015 8:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
| Vitor wrote: |
| mqjeff wrote: |
It's worth (even though you've probably already done this) logging out and logging back in, then explicitly running setmqenv and mqsiprofile.
Ideally mqsiprofile will complain that it's already been applied. |
I can't log in and log out, but I can exit and sudo back into the mqbrkrs id at which point it looks like mqsiprofile runs (the version pops up) and my shell gets a load of env variables it didn't have before. |
is /opt/mqm/gskit8/bin still listed before /opt/IBM/mqsi/9.0.0.2/bin in PATH?
Does it make a different if you manually edit PATH to put /opt/IBM/mqsi/9.0.0.2/bin before /opt/mqm/gskit8/bin ?
it feels like an install problem, or a shell problem - that the JVM in use doesn't have the right things. |
|
| Back to top |
|
 |
| fjb_saper |
Posted: Wed Feb 11, 2015 8:04 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY
|
at command prompt run
This will return to you the path where java is run from.
You may want to prepend the path like in the following command:
| Code: |
| export PATH=${MQSI_JREPATH}/bin:${PATH} |
and run which java again.
At which point this should point to the IBM jdk/jre.
Then run java -version to verify and try the command again.  _________________ MQ & Broker admin |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Feb 11, 2015 8:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| mqjeff wrote: |
| it feels like an install problem, or a shell problem - that the JVM in use doesn't have the right things. |
That's where I started from _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Feb 11, 2015 8:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| fjb_saper wrote: |
at command prompt run
This will return to you the path where java is run from.
You may want to prepend the path like in the following command:
| Code: |
| export PATH=${MQSI_JREPATH}/bin:${PATH} |
and run which java again.
At which point this should point to the IBM jdk/jre.
Then run java -version to verify and try the command again.  |
| Code: |
mqbrkrs@lesi001az> which java
/usr/bin/java
mqbrkrs@lesi001az> export PATH=${MQSI_JREPATH}/bin:${PATH}
mqbrkrs@lesi001az> which java
/opt/IBM/mqsi/9.0.0.2/jre17/bin/java
mqbrkrs@lesi001az> java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470sr6fp1-20140108_01(SR6 FP1))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References 20140106_181350 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR6_20140106_1601_B181350
JIT - r11.b05_20131003_47443.02
GC - R26_Java726_SR6_20140106_1601_B181350_CMPRSS
J9CL - 20140106_181350)
JCL - 20140103_01 based on Oracle 7u51-b11
mqbrkrs@lesi001az> mqsicreateexecutiongroup LESI001AZ -e ABC
BIP1124I: Creating execution group 'ABC' on broker 'LESI001AZ'...
BIP1117I: The execution group was created successfully.
The broker has initialized the execution group.
BIP8071I: Successful command completion.
|
You're awesome. I thank you and @mqjeff for your assistance; I'm off to print this thread out and staple it to the people responsible for the install script. Then ask for volunteers about who wants to be the elephant, and be the stuffed head on my wall..... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| smdavies99 |
Posted: Wed Feb 11, 2015 9:17 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
You forgot to arm yourself with a 4 Bore Elephant Gun.
That would make the stapling a lot easier. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Feb 11, 2015 9:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| smdavies99 wrote: |
| You forgot to arm yourself with a 4 Bore Elephant Gun |
If I want anything 4 bore, I'll take four members of the Enterprise Architecture Review Committee _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| mqjeff |
Posted: Wed Feb 11, 2015 9:30 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
| smdavies99 wrote: |
You forgot to arm yourself with a 4 Bore Elephant Gun.
That would make the stapling a lot easier. |
A Webley .577 is a nice handy thing to keep around. |
|
| Back to top |
|
 |
| Vitor |
Posted: Wed Feb 11, 2015 9:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| mqjeff wrote: |
| smdavies99 wrote: |
You forgot to arm yourself with a 4 Bore Elephant Gun.
That would make the stapling a lot easier. |
A Webley .577 is a nice handy thing to keep around. |
I'm fully Second Amended. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
|
|