|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Exception 2402 & 2059 |
« View previous topic :: View next topic » |
Author |
Message
|
team |
Posted: Fri Jul 27, 2007 4:57 am Post subject: Exception 2402 & 2059 |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
Please could you help me with the following, why the difference in behaviour:
I have searched on the site but fail to resolve the same.
With the code as the following, i get a 2059 error:
10:01:12 [1185526872672] Thread: main Class: SSLHelper sslSocketFactory = null
10:01:12 [1185526872672] Thread: main Class: SSLHelper using default SSLSocketFactory
10:01:12 [1185526872676] Thread: main Class: SSLHelper creating SSL socket
10:01:12 [1185526872690] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE013: Error accessing socket streams ==> MQException constructor(cc, rc, source, msgid, insrt)() entry
10:01:12 [1185526872692] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE013: Error accessing socket streams @(#) javabase/com/ibm/mq/MQException.java, java, j600, j600-L050713 1.83.1.3 05/07/05 10:56:30
10:01:12 [1185526872692] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE013: Error accessing socket streams cc = 2
10:01:12 [1185526872692] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
I changed the code as below and get:
With the code as the following i get the exception to be 2402
HashMap h1 = new HashMap();
h1.put("javax.net.ssl.keyStore", getConfigValue("sslKeyStore"));
h1.put("javax.net.ssl.keyStorePassword", getConfigValue("sslKeyStorePassword"));
h1.put("javax.net.ssl.trustStore", getConfigValue("sslTrustStore"));
h1.put("javax.net.ssl.trustStorePassword", getConfigValue("sslTrustStorePassword"));
Collection c = h1.entrySet();
System.out.println("Collection"+ c.size());
MQEnvironment.sslCertStores = c ;
MQException 2402:
01:46:38 [1185540398816] Thread: main Class: SSLHelper peerName matches
01:46:38 [1185540398831] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2402
MQJE069: Unable to contact CertStore ==> MQException constructor(cc, rc, source, msgid)() entry
01:46:38 [1185540398832] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2402
MQJE069: Unable to contact CertStore @(#) javabase/com/ibm/mq/MQException.java, java, j600, j600-L050713 1.83.1.3 05/07/05 10:56:30
01:46:38 [1185540398832] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2402
MQJE069: Unable to contact CertStore cc = 2
01:46:38 [1185540398832] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2402
MQJE069: Unable to contact CertStore rc = 2402
01:46:38 [1185540398833] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2402
MQJE069: Unable to contact CertStore source = static method in SSLCRL code
01:46:38 [1185540398833] Thread: main, Object: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2402
MQJE069: Unable to contact CertStore msgId = 123
MQJE001: An MQException occurred: Completion Code 2, Reason 2402
The MQException.getCause() function returns the following.
java.lang.ClassCastException: java.util.HashMap$Entry |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 27, 2007 5:00 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Code: |
2402 0x00000962 MQRC_SSL_CERT_STORE_ERROR |
This points at an SSL configuration issue.
If you're not in fact using SSL, don't try and connect with an SSL method and see if that helps with the 2059. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
team |
Posted: Fri Jul 27, 2007 5:05 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
SSl is set up in this case. I have rechecked the keystores and paswords too.. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 27, 2007 5:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
team wrote: |
SSl is set up in this case. I have rechecked the keystores and paswords too.. |
That 2402 indicates you need to take another look!
Is the problem limited to this code? Can other applications use the SSL without problems? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
team |
Posted: Fri Jul 27, 2007 5:09 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
yes, other applications are accessin it well.... |
|
Back to top |
|
 |
team |
Posted: Fri Jul 27, 2007 5:10 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
I have changed the hashmap approach to the following:
System.setProperty("javax.net.ssl.keyStore", getConfigValue("sslKeyStore"));
System.setProperty("javax.net.ssl.keyStorePassword", getConfigValue("sslKeyStorePassword"));
System.setProperty("javax.net.ssl.trustStore", getConfigValue("sslTrustStore"));
System.setProperty("javax.net.ssl.trustStorePassword", getConfigValue("sslTrustStorePassword"));
and now get the 2059 error....
Which shows a more advanced success? I am using the same properties however. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 27, 2007 5:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
team wrote: |
yes, other applications are accessin it well.... |
Ok, that points to a Java coding issue. Which means I need to bow out with an embarassed smile and you need to wait for someone who knows Java!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|