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 IndexIBM MQ Java / JMSProblem connecting to channel - AMQ5653: The user '?' is not

Post new topicReply to topic
Problem connecting to channel - AMQ5653: The user '?' is not View previous topic :: View next topic
Author Message
jordiluis
PostPosted: Tue Feb 09, 2021 2:52 am Post subject: Problem connecting to channel - AMQ5653: The user '?' is not Reply with quote

Newbie

Joined: 09 Feb 2021
Posts: 2
Location: Santiago de Compostela, Spain

In production environment i'm having the error
Quote:
Caused by: com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED')
. when i try to connect to a channel. In the IBM MQ logs appear
Quote:
AMQ5653: The user '?' is not defined
.

But if i create a docker with the ibmmq image, i connect without problems. So i think my connectionFactory is good, because if i change the username or password in properies.yml appears a log telling the authentication failed.

Code:
ibm:
   mq:
     queueManager: QM1
     channel: HIPOS.APP.SVRCONN
     connName: localhost(1414)
     user: app
     password: hawaiia
     destination-topic: EXAMPLE.CONF.TOPIC
     slowValidationThresholdTime: 20000


The question is, if in production i have the user 'example1', why in the logs of IBM MQ appears '?'.
[/code][/quote]
Back to top
View user's profile Send private message
hughson
PostPosted: Tue Feb 09, 2021 8:51 pm Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1552
Location: Bay of Plenty, New Zealand

Just to confirm what you are asking:

Are you say that with the properties.yml you showed in your question, the failure message contains the user ID you expect, but in production it contains the question mark?

Can you show us the failing configuration? Maybe you have a typo that you have not noticed.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
jordiluis
PostPosted: Tue Feb 09, 2021 11:35 pm Post subject: Reply with quote

Newbie

Joined: 09 Feb 2021
Posts: 2
Location: Santiago de Compostela, Spain

Yes, that's what happends.

Here is the properties.yml for production:

Code:
ibm:
   mq:
     queueManager: QM.APP
     channel: CH.WAS
     connName: axprowmqapp1.central.udc.grp(1712)
     user: uigsmqpro
     destination-topic: /PubApp/App/HIPER/Configuracion
     slowValidationThresholdTime: 2000


The password it's in another .yml file because it being resolved as a PMP resource:

Code:
ibm.mq.password: pmp.User PRO Aplication Service.uigsmqpro


Thanks,
Jordi
Back to top
View user's profile Send private message
hughson
PostPosted: Wed Feb 10, 2021 12:02 am Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1552
Location: Bay of Plenty, New Zealand

jordiluis wrote:
The password it's in another .yml file because it being resolved as a PMP resource


If you do this alternate file for the password in your testing environment, does it cause the same issue? Have you ruled that difference out?

Also, your original question said your user id was 'example1' but here you have a user id of 'uigsmqpro'. Where does user id 'example1' come into the picture?

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSProblem connecting to channel - AMQ5653: The user '?' is not
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.