Author |
Message
|
kattics |
Posted: Tue Mar 14, 2006 10:29 am Post subject: need ur help in this error log |
|
|
Novice
Joined: 08 Feb 2006 Posts: 19
|
[MqConnTest] - SUCCESS: MQ Connection Factory
[MqConnTest] - EXCEPTION: MQ failure
javax.jms.JMSSecurityException: MQJMS2013: invalid security authentication suppl
ied for MQQueueManager
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2268)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1749)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:144)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:54)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueue
ConnectionFactory.java:106)
at MqConnTest.<init>(MqConnTest.java:6
at MqConnTest.main(MqConnTest.java:105) |
|
Back to top |
|
 |
kattics |
Posted: Tue Mar 14, 2006 10:31 am Post subject: |
|
|
Novice
Joined: 08 Feb 2006 Posts: 19
|
Hi guys in the above code,I want to security details to be furnished in order to get a connection from MQ client to MQ Server.
Thanks for your help in advance.
-katti |
|
Back to top |
|
 |
mvic |
Posted: Tue Mar 14, 2006 3:44 pm Post subject: Re: need ur help in this error log |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
Is it possible to post source for a small testcase that is demonstrating this problem? |
|
Back to top |
|
 |
JT |
Posted: Tue Mar 14, 2006 4:20 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
What transport type did you specify in the connection factory, Bindings ? |
|
Back to top |
|
 |
kattics |
Posted: Wed Mar 15, 2006 7:47 am Post subject: code snippet |
|
|
Novice
Joined: 08 Feb 2006 Posts: 19
|
try
{
factory = new MQQueueConnectionFactory();
factory.setTransportType( JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
factory.setQueueManager( "TEST.QMGR");
factory.setHostName( "80.20.35.113" );
factory.setPort( 22000 );
factory.setChannel("TEST.SERVER");
System.out.println("[MqConnTest] - SUCCESS: MQ Connection Factory");
connection = factory.createQueueConnection();
System.out.println("[MqConnTest] - SUCCESS: MQ anonymous connection");
session = connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
System.out.println("[MqConnTest] - SUCCESS: JMS session");
Q = session.createQueue("TEST.REQUEST");
System.out.println("[MqConnTest] - SUCCESS: JMS Queue BCSWFA.REQUEST");
receiver = session.createReceiver(Q);
System.out.println("[MqConnTest] - SUCCESS: obtained receiver");
sender = session.createSender(Q);
System.out.println("[MqConnTest] - SUCCESS: obtained sender");
connection.start();
System.out.println("[MqConnTest] - SUCCESS: started queue connection");
}
catch (JMSException e)
{
System.out.println("[MqConnTest] - EXCEPTION: MQ failure");
e.printStackTrace();
Exception le = e.getLinkedException();
System.out.println("*******************************************");
System.out.println("Exception results in details");
System.out.println("*******************************************");
if(le!=null)
le.printStackTrace();
throw e;
}
*************************************************************
Hi guys this is my code which is trying to connect to Queue Manager on the server.I established the MQSERVER env variable also defining the channel name type connection(TCP/IP here in my case) and server address with port number.
If you can suggets anything that is missing that will be great help.thanks
in advance
-katti |
|
Back to top |
|
 |
BenR |
Posted: Wed Mar 15, 2006 7:54 am Post subject: |
|
|
Acolyte
Joined: 31 Jan 2006 Posts: 60 Location: Hursley, UK
|
|
Back to top |
|
 |
kattics |
Posted: Wed Mar 15, 2006 8:18 am Post subject: version 5.3 |
|
|
Novice
Joined: 08 Feb 2006 Posts: 19
|
using MQ version 5.3
-katti |
|
Back to top |
|
 |
javagate |
Posted: Wed Mar 15, 2006 10:20 am Post subject: |
|
|
 Disciple
Joined: 15 Nov 2004 Posts: 159
|
Do you have the proper security to the qmgr? _________________ WebSphere Application Server 7.0 z/OS &
MQ 6.0. I work with WebSphere in the real world not in some IBM lab. |
|
Back to top |
|
 |
kattics |
Posted: Wed Mar 15, 2006 10:33 am Post subject: can you elaborate proper security |
|
|
Novice
Joined: 08 Feb 2006 Posts: 19
|
Hi
I expected that it is something related to security issues.But i am not clear how to handle that.I am able to telnet to that ipaddress at that port. but using this program I couldn't.if you guys any security issue that to be handled please let me know.thanks
-katti |
|
Back to top |
|
 |
mvic |
Posted: Wed Mar 15, 2006 10:49 am Post subject: Re: code snippet |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
I don't see any security information being provided explicitly in the program, so perhaps the security failure is as a result of a server-side policy. Others in the past have recommended turning on qmgr auth events, and seeing what auth failure messages are written as a result of the failure.
Also take some time to look through http://www.google.co.uk/search?q=MQJMS2013 |
|
Back to top |
|
 |
kattics |
Posted: Wed Mar 15, 2006 12:57 pm Post subject: got it guys |
|
|
Novice
Joined: 08 Feb 2006 Posts: 19
|
Hi guys
This is my first MQ JMS program and got it executed.I need to set CCSID for 437 and then it got executed.
Thanks a lot for your help and guidance
-Katti |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Mar 15, 2006 1:10 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You should not have had to set the CCSID but it certainly helps if it is different from the qmgrs.
However on a client connection it is always better to pass something:
Code: |
qcf.createConnection(username, passwd); |
You might get into trouble in V6 if you don't.
You can still pass empty string...though.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
kattics |
Posted: Wed Mar 15, 2006 1:19 pm Post subject: |
|
|
Novice
Joined: 08 Feb 2006 Posts: 19
|
actually I added createQueueConnection("username","password");
what you said is true.CCSID is not responsible for that.after I commented,I am able to access the server.
Thanks a lot for you suggestion.
-katti |
|
Back to top |
|
 |
|