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 Index » IBM MQ Java / JMS » need ur help in this error log

Post new topic  Reply to topic
 need ur help in this error log « View previous topic :: View next topic » 
Author Message
kattics
PostPosted: Tue Mar 14, 2006 10:29 am    Post subject: need ur help in this error log Reply with quote

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
View user's profile Send private message
kattics
PostPosted: Tue Mar 14, 2006 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Tue Mar 14, 2006 3:44 pm    Post subject: Re: need ur help in this error log Reply with quote

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
View user's profile Send private message
JT
PostPosted: Tue Mar 14, 2006 4:20 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

What transport type did you specify in the connection factory, Bindings ?
Back to top
View user's profile Send private message
kattics
PostPosted: Wed Mar 15, 2006 7:47 am    Post subject: code snippet Reply with quote

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
View user's profile Send private message
BenR
PostPosted: Wed Mar 15, 2006 7:54 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2006
Posts: 60
Location: Hursley, UK

What version of MQ?
Back to top
View user's profile Send private message Visit poster's website
kattics
PostPosted: Wed Mar 15, 2006 8:18 am    Post subject: version 5.3 Reply with quote

Novice

Joined: 08 Feb 2006
Posts: 19

using MQ version 5.3
-katti
Back to top
View user's profile Send private message
javagate
PostPosted: Wed Mar 15, 2006 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
kattics
PostPosted: Wed Mar 15, 2006 10:33 am    Post subject: can you elaborate proper security Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Wed Mar 15, 2006 10:49 am    Post subject: Re: code snippet Reply with quote

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
View user's profile Send private message
kattics
PostPosted: Wed Mar 15, 2006 12:57 pm    Post subject: got it guys Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 15, 2006 1:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kattics
PostPosted: Wed Mar 15, 2006 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » need ur help in this error log
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.