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 API Support » event items with type MQIT_STRING and binary content

Post new topic  Reply to topic
 event items with type MQIT_STRING and binary content « View previous topic :: View next topic » 
Author Message
gunter
PostPosted: Tue Nov 13, 2007 1:14 am    Post subject: event items with type MQIT_STRING and binary content Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

Hi,

we use MQAI ti read the even queues. This works fine on nearly all machines for years. Lately I discovered a strange output, I found not exspected binary data.

This is the code I use:

Code:
mqInquireItemInfo(bag, selector , i, &outSelector, &type, &compCode, &reason);
...
switch (type)
{
...
    case MQIT_STRING:
        mqInquireString(bag, selector , i, 1023, buffer,
                        &length, NULL, &compCode, &reason);
...
        mqTrim(length, buffer, buffer, &compCode, &reason);
        printf("%s", buffer);
...


The output normally for AMQ9208 is:

hostname (ip-addr)

On one system the output is complete ore partially not printable.
Sometimes I see something like this
02
or
hostname (E1 15 83 7C 14 01)

The hex values sometimes destroy the output format, so there is no right parenthesis.

Is there a mistake in my code?
How do I avoid this nonprintable chars?

Thanks for any help.

Regards Gunter
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Nov 13, 2007 10:53 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Gunter
This has to do with IPV6 / IPV4
Read up on the display of the IPV6 format and you will see that it looks something like that (from memory...so...) ff:fa:1f:3a:5b

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gunter
PostPosted: Wed Nov 14, 2007 5:14 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

We don't use IPV6 and the queuemanager is configured for IPV4.
Even with IPV6 I expect printable chars in a hex notation and not binary.
I checked the AMQERR01.LOG and there are also binaries in it.


Quote:
12.11.2007 09:04:25 - Process(3156.12) User(MUSR_MQADMIN) Program(amqrmppa.exe)
AMQ9208: Fehler beim Empfangen von Host 'host (áƒ|è )'.

ERKLÄRUNG:
Beim Datenempfang von 'host (áƒ|è )' über 'TCP/IP' ist ein Fehler
aufgetreten. Dies ist möglicherweise auf einen Datenübertragungsfehler
zurückzuführen.
AKTION:
Der Rückkehrcode des Aufrufs 'TCP/IP (recv)' lautete '10054' (X'2746').
Notieren Sie diese Werte, und benachrichtigen Sie den Systemadministrator.


Any idea how to get rid from it.

Regards Gunter
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
tleichen
PostPosted: Wed Nov 14, 2007 7:39 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

I would do what the message says and inform the System (or network) Administrator(s).
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 14, 2007 2:57 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Looks like PMR time.
If you're sure it's not shared memory corruption...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » event items with type MQIT_STRING and binary content
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.