|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| Authentication error | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | Chander Mohan | 
			  
				|  Posted: Fri Feb 16, 2007 7:13 am    Post subject: Authentication error |   |  |  
		  | Novice
 
 
 Joined: 16 Feb 2007Posts: 22
 
 
 | 
			  
				| I am trying to write a java module to read a file and then send a message. I get a MQ 2035 error.
 
 The code is very similar to what we execute in the surveyor-rulemdb.ear but that runs under Weblogic.
 
 Since I run this as a Java module do I need access to MQ?
 
 If I run /opt/mqm/samp/bin/amqsputc FMC.BRESQUEUE.OUT I can write messages.
 
 So I am not sure why I can run the amqsputc (i.e. IBM C program sample) but not the java code.
 
 
 Error msg 004 jmse: javax.jms.JMSSecurityException: MQJMS2013: invalid security authentication supplied for MQQueueManager
 com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2035
 at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:219)
 at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:179)
 at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:215)
 at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
 at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
 at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:772)
 at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:697)
 at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:657)
 at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153)
 at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:526)
 at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:69)
 at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2007)
 at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1496)
 at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:150)
 at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:60)
 at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:171)
 at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:112)
 at JMSTest_single_message.main(JMSTest_single_message.java:147)
 |  |  
		  | Back to top |  |  
		  |  |  
		  | jefflowrey | 
			  
				|  Posted: Fri Feb 16, 2007 7:17 am    Post subject: |   |  |  
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| um. 
 Is the java code running in an AppServer?
 
 Is that app server running under a different user than the Weblogic server?
 _________________
 I am *not* the model of the modern major general.
 |  |  
		  | Back to top |  |  
		  |  |  
		  | Chander Mohan | 
			  
				|  Posted: Fri Feb 16, 2007 7:43 am    Post subject: |   |  |  
		  | Novice
 
 
 Joined: 16 Feb 2007Posts: 22
 
 
 | 
			  
				| For the C version you can review it in /usr1/surveyor/mq/mqput 
 It is running as a java app.
 
 If I deploy the surveyor-rulemdb.ear to weblogic then it would be running as part of Weblogic.
 
 My Java example is /export/home/kzxnmx/jmstest/runmqs or
 /export/home/kzxnmx/jmstest/run
 
 The C program and java program would run with my id kzxnmx
 
 The surveyor-rulemdb.ear woul run with weblogic id.
 
 The C program and surveyor-rulemdb.ear work but I am missing something in the java program or java works different than C.
 |  |  
		  | Back to top |  |  
		  |  |  
		  | RogerLacroix | 
			  
				|  Posted: Sat Feb 17, 2007 9:33 am    Post subject: |   |  |  
		  |  Jedi Knight
 
 
 Joined: 15 May 2001Posts: 3265
 Location: London, ON  Canada
 
 | 
			  
				| Hi, 
 If the Java program is connecting to the QMgr in client-mode (i.e. remote QMgr) then what UserId did you use on your create connection?
 
 
   
	| Code: |  
	| MQQueueConnectionFactory.createQueueConnection("xxxx", null); |  Is the UserId ("xxxx") known to the remote system?
 
 Is the Java program and the 'C' program using the same channel?  Maybe the MQ Admin for the remote QMgr, put garbage in the channel's MCAUSER field to block any connection attempts.
 
 Finally, there may be a security exit on the channel you are using on the remote queue manager that is blocking your connection.
 
 Regards,
 Roger Lacroix
 Capitalware Inc.
 _________________
 Capitalware: Transforming tomorrow into today.
 Connected to MQ!
 Twitter
 |  |  
		  | 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
 
 |  |  |  |