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 » WebSphere Message Broker (ACE) Support » MQTT error - AMQXR0010E

Post new topic  Reply to topic Goto page 1, 2  Next
 MQTT error - AMQXR0010E « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Mon Nov 12, 2012 3:09 am    Post subject: MQTT error - AMQXR0010E Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Hi, coleagues - I have a MQTT question, and find to specific forum for this product. Guess it is some kind on "broker", isn't it ?

I am sending a MQTT_PING() from Rexx to a MQ Telemetry server.

In "/var/mqm/qmgrs/MQXR_SAMPLE_QM/errors/mqxr.log ... I find

Code:
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.


I have the solution for this problem, seting ClientIdentifier properly,
but I have found no PDF, no URL where this error is documented.

Have installed MQ v7.5 local documentacion - search(AMQXR0010E) gives 0 (zero) hits.

Google ( "AMQXR0010E" ) gives zero results ...

>>> Where are "AMQX" error documented ?

Sebastian.
Back to top
View user's profile Send private message Visit poster's website
lancelotlinc
PostPosted: Mon Nov 12, 2012 6:26 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

There are other log messages before and after this one. Please post them, as they contain relevant information.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sebastia
PostPosted: Mon Nov 12, 2012 6:32 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

no, mr Lancelot, there are not
Code:

--------------------------------------------------------------------
November 9, 2012 5:06:20 PM CET[main] com.ibm.mq.MQXRService.MQXRService
AMQXR0015I: MQXR Service started successfully (1 channels running, 0 channels stopped)
--------------------------------------------------------------------
November 9, 2012 5:07:53 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 9, 2012 3:24:24 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 9, 2012 3:25:07 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 9, 2012 3:25:08 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 9, 2012 3:25:09 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 9, 2012 3:25:10 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 9, 2012 3:25:11 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 9, 2012 3:25:14 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 9, 2012 3:25:15 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX pub client was received from ''/9.137.164.151'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 12, 2012 12:59:20 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerSessionV3
AMQXR0010E: An invalid ClientIdentifier REXX sub client was received from ''/9.137.165.197'' in an MQTT CONNECT packet on channel PlainText.
--------------------------------------------------------------------
November 12, 2012 1:04:15 PM CET[ServerWorker0] com.ibm.mq.MQXRService.MQTTServerContext
AMQXR0021W: Client ''MQTTV3Sample'' at network address ''/9.137.165.197'' disconnected abnormally
with exception ''AMQCO1007E: Connection ''/9.137.165.197'' did not send or receive data for ''45000'' milliseconds and has been closed. ''.
--------------------------------------------------------------------
Back to top
View user's profile Send private message Visit poster's website
lancelotlinc
PostPosted: Mon Nov 12, 2012 6:35 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

What is your clean session flag set to?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sebastia
PostPosted: Mon Nov 12, 2012 7:00 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Good question, mr Lancelot.

While I google for the concept, I am sorry to ask ...

... what is the "clean session flag" ?

.... and/or .... How do I display it ?

Never seen one yet .. ()

Sebastian.
Back to top
View user's profile Send private message Visit poster's website
lancelotlinc
PostPosted: Mon Nov 12, 2012 7:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

MQTT clients using a random id that set clean session set to false meaning a durable (persistent) session will be unable to reconnect using the same id. This means that subsequent attempts to access persistent subscriptions on that server can never be fulfilled.

Here is the InfoCentre page that talks about clean sessions:

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/tt60370_.htm

Quote:
You must set the cleanSession mode before connecting; the mode lasts for the whole session. To change its setting, you must disconnect and reconnect the client. If you change modes from using cleanSession=false to cleanSession=true, all previous subscriptions for the client, and any publications that have not been received, are discarded.

_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sebastia
PostPosted: Mon Nov 12, 2012 7:07 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

I have the protocol specs, and it is obviuos to me it is better to use "1" as this flag ...

Code:
if set (1), then the server must discard any previously maintained information about the client and treat the connection as "clean".
The server must also discard any state when the client disconnects.
Back to top
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Mon Nov 12, 2012 7:08 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

.... and by defaults, I was using "0" ...
Code:
 If not set (0), then the server must store the subscriptions of the client after it disconnects
Back to top
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Mon Nov 12, 2012 7:40 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

The error comes from the "id" format.

If I use "id = 'REXX pub client'", as provided by mr Dougie Lawson at
>>>https://github.com/DougieLawson/REXX_MQTT
then I get the indicated error (AMQXR0010E).

If I replace the "blank space(s)" between "rexx" and "pub" and "client" by an underscore, the connect goes fine ...

Same error if id is "REXX-pub-client" ...

By the way - it only happens when my rexx client goes to WMQ v7.5 MQTT.

If I point to "m2m.eclipse.org", all goes fine.

Sebastian.

PD.- by the way, my problem is not the error,
but THE DOCUMENTATION OF MQTT errors ...
Back to top
View user's profile Send private message Visit poster's website
lancelotlinc
PostPosted: Mon Nov 12, 2012 7:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You may find better documentation here:

http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/index.jsp?topic=%2Fcom.ibm.mq.doc%2Ftt60000_.htm


Here is a list of reason codes (which you must derive from the error handler in your enhanced code using the API not the log):

http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/topic/com.ibm.mq.doc/tt80600_.htm
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER


Last edited by lancelotlinc on Mon Nov 12, 2012 8:30 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
sebastia
PostPosted: Mon Nov 12, 2012 8:19 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Thanks, mr Lancelot - it is good to have that page.

But still I am missing "AMQXR0010E" explanation .... jejeje

It is in the MQXR.LOG file !

The good old MQ manuals always had ALL the error codes.

Hope MQTT will follow that line in the future !

Cheers. Sebastian.
Back to top
View user's profile Send private message Visit poster's website
lancelotlinc
PostPosted: Mon Nov 12, 2012 8:26 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

sebastia wrote:
But still I am missing "AMQXR0010E" explanation .... jejeje


What I am saying is, you need more than the log. The log will tell you some things, but you also need the REASON CODE which you get when you write a good error handler.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
andypiper
PostPosted: Tue Nov 13, 2012 11:56 am    Post subject: Reply with quote

Acolyte

Joined: 29 Oct 2001
Posts: 59
Location: London

So I believe there is a "correct" forum for MQTT / Telemetry questions ... although it sounds like you are using WMQ 7.5 so maybe the core WMQ forum would be better. MQTT support was moved out of WMB some time ago.

The "space in client ID" issue is an interesting one. Not sure whether MQXR in MQ or mosquitto (m2m.eclipse.org) is misbehaving here. You might want to talk to the protocol folks via the MQTT.org mailing list to check.


Last edited by andypiper on Wed Nov 14, 2012 8:01 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Tue Nov 13, 2012 12:10 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Every frustration with the documentation should be followed up by clicking on the 'feedback' link at the bottom of every page.

well, unless you're reading the PDfs on the airplane at 30,000 feet. In that case, when you're unhappy with the documentation, the only choice is to throw your tablet or laptop at the flight attendant and then go to jail for 10 years.
Back to top
View user's profile Send private message
sebastia
PostPosted: Fri Nov 16, 2012 2:47 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Andy -

1) thanks for the pointer to the WMQ Telemetry forum for future questions !

2) "space in ID" - I shall ask in MQTT.org mailing list, no problem.

Sebastian.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQTT error - AMQXR0010E
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.