Author |
Message
|
mqmike |
Posted: Mon Feb 14, 2005 7:21 am Post subject: Problems with gskit |
|
|
Acolyte
Joined: 09 Jul 2004 Posts: 63
|
Hi guys.
We currently have a problem on a pre-prod server. We are running Solaris, have MQv5.3 CSD08 installed, gskit version 6.0.5.43 and java version 1.4.2.
I have the following env variables set:
export JAVA_HOME=/opt/mqm/ssl
export PATH=/usr/bin::/usr/bin:/usr/ucb:/etc:/usr/j2se/jre:/opt/mqm/ssl
But I'm getting intermittent errors when I run the gsk commands, see below:
cdcswif1# gsk6cmd
/usr/bin/gsk6cmd: test: argument expected
cdcswif1# gsk6cmd
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 5448524541440E4350500631 FF
#
# Problematic Thread:
Segmentation Fault - core dumped
cdcswif1# gsk6cmd
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 5448524541440E4350500631 FF
#
# Problematic Thread:
Segmentation Fault - core dumped
cdcswif1# gsk6cmd
/usr/bin/gsk6cmd: test: argument expected
cdcswif1# gsk6cmd
No options were specified on the command line invocation.
Object Action Description
---- ------ ---------------------------------------------------------
-keydb -changepw Change the password for a key database
-convert Convert the format of a key database
-create Create a key database
-delete Delete a key database
-stashpw Stash the password of a key database into a file
-list Currently supported types of key database.
-cert -add Add a CA Certificate
-create Create a self-signed certificate
-delete Delete a certificate
-details Show the details of a specific certificate
-export Export a personal certificate and associated private key
into a PKCS12 file or a key database
-extract Extract a certificate from a key database
-getdefault Show the default personal certificate
-import Import a certificate from a key database or a PKCS12 file
-list List certificates in a key database
-modify Modify a certificate (NOTE: the only field that my be
modified is the trust field)
-receive Receive a certificate
-setdefault Set the default personal certificate
-sign Sign a certificate
-certreq -create Create a certificate request
-delete Delete a certificate request from a certificate request
database
-details Show the details of a specific certificate request
-extract Extract a certificate from a certificate request database
-list List all certificate requests in a certificate request
database
-recreate Recreate a certificate request
-version Display ikeycmd version information
-help Display this help text
As you can see the last command worked. This error was coming out before we went to 1.4.2 of Java and we thought that might solve the problem but it doesn't look like it has.
Any ideas? |
|
Back to top |
|
 |
vennela |
Posted: Mon Feb 14, 2005 7:25 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
export PATH=/usr/bin::/usr/bin:/usr/ucb:/etc:/usr/j2se/jre:/opt/mqm/ssl |
It should be
Code: |
export PATH=/opt/mqm/ssl/jre/bin:/usr/bin::/usr/bin:/usr/ucb:/etc:/usr/j2se/jre: |
In one of the other threads I saw that JAVA_HOME should be something like this
Code: |
export JAVA_HOME=/usr/mqm/ssl/jre |
|
|
Back to top |
|
 |
mqmike |
Posted: Mon Feb 14, 2005 7:34 am Post subject: |
|
|
Acolyte
Joined: 09 Jul 2004 Posts: 63
|
Thanks for the quick response.
I got the JAVA_HOME from the MQ docs where it says
"Solaris export JAVA_HOME=/opt/mqm/ssl ".
I've just tried /opt/mqm/ssl/jre in the path and java_home settings and get:
cdcswif1# gsk6cmd -h
/usr/bin/gsk6cmd: test: argument expected
cdcswif1# gsk6cmd -create
/usr/bin/gsk6cmd: test: argument expected
cdcswif1# gsk6cmd -help
/usr/bin/gsk6cmd: test: argument expected |
|
Back to top |
|
 |
Anirud |
Posted: Mon Feb 14, 2005 7:35 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
As per my knowledge, the path should be
on Solaris
Code: |
export JAVA_HOME=/opt/mqm/ssl |
on AIX
Code: |
export JAVA_HOME=/usr/mqm/ssl/jre |
Last edited by Anirud on Tue Feb 15, 2005 11:59 am; edited 2 times in total |
|
Back to top |
|
 |
vennela |
Posted: Mon Feb 14, 2005 7:37 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
I've just tried /opt/mqm/ssl/jre in the path and java_home settings and get: |
Sorry I posted the wrong thing. I realized and later edited my earlier post.
You should prepend your PATH with /opt/mqm/ssl/jre/bin |
|
Back to top |
|
 |
mqmike |
Posted: Mon Feb 14, 2005 7:55 am Post subject: |
|
|
Acolyte
Joined: 09 Jul 2004 Posts: 63
|
I've tried various combinations of JAVA_HOME and PATH and all seem to result in errors (and the occasional success). The file structure /opt/mqm/ssl/jre doesn't exist on our install - we have /opt/mqm/ssl (and this is what IBM instruct us to set things to).
The intermittent Java VM errors concern me:
cdcswif1# gsk6cmd
Segmentation Fault
cdcswif1# gsk6cmd
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 5448524541440E4350500631 FF
#
# Problematic Thread:
Segmentation Fault
cdcswif1# gsk6cmd
Error occurred during initialization of VM
java.lang.StackOverflowError
Do you think there may be some long running threads that might need tidying up? Reboot perhaps? |
|
Back to top |
|
 |
Anirud |
Posted: Mon Feb 14, 2005 7:55 am Post subject: |
|
|
 Master
Joined: 12 Feb 2004 Posts: 285 Location: Vermont
|
From Sys. Admin., Manual
Quote: |
Setting up to use IKEYCMD To run the IKEYCMD command line interface, set up environment variables as follows:
1. Set the JAVA_HOME environment variable:
AIX: export JAVA_HOME=/usr/mqm/ssl/jre
HP-UX: export JAVA_HOME=/opt/mqm/ssl
Linux: export JAVA_HOME=/opt/mqm/ssl/jre
Solaris: export JAVA_HOME=/opt/mqm/ssl
2. Set your PATH to include your JRE executables:
export PATH=$JAVA_HOME/bin:$PATH
3. Set the CLASSPATH environment variable:
AIX
export CLASSPATH=/usr/opt/ibm/gskak/classes/cfwk.zip:$CLASSPATH
export CLASSPATH=/usr/opt/ibm/gskak/classes/gsk6cls.jar:$CLASSPATH
HP-UX
export CLASSPATH=/opt/ibm/gsk6/classes/cfwk.zip:$CLASSPATH
export CLASSPATH=/opt/ibm/gsk6/classes/gsk6cls.jar:$CLASSPATH
Linux
export CLASSPATH=/usr/local/ibm/gsk6/classes/cfwk.zip:$CLASSPATH
export CLASSPATH=/usr/local/ibm/gsk6/classes/gsk6cls.jar:$CLASSPATH
Solaris
export CLASSPATH=/opt/ibm/gsk6/classes/cfwk.zip:$CLASSPATH
export CLASSPATH=/opt/ibm/gsk6/classes/gsk6cls.jar:$CLASSPATH |
Hope this helps. |
|
Back to top |
|
 |
|