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 » MQRC 2142 on Pub/Sub

Post new topic  Reply to topic
 MQRC 2142 on Pub/Sub « View previous topic :: View next topic » 
Author Message
jayZ
PostPosted: Sat Jul 23, 2016 8:25 pm    Post subject: MQRC 2142 on Pub/Sub Reply with quote

Acolyte

Joined: 03 Jun 2008
Posts: 71

I'm stuck on a probably simple issue that could use a second set of eyes. Any help would be much appreciated.

The flow is pretty simple (File Input -> MQ Header Node -> Compute Node -> Publish Node). Something is wrong with the way I'm creating the RFH2 header and its causing the flow to fail. I've followed the details in some of the other threads, but can't see what's going on. Chalk it up to rust I guess...


Code:
Code:
      SET OutputRoot.Properties = InputProperties;
      SET OutputRoot.MQMD = InputRoot.MQMD;
                 --(Setting the MQMD format in the header node)
      --SET OutputRoot.MQMD.Format = MQFMT_RF_HEADER_2;
      --CREATE NEXTSIBLING OF OutputRoot.MQMD DOMAIN('MQRFH2');
        SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = 2;
        SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = MQFMT_STRING;
        SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCISD = 1208;      
      SET OutputRoot.MQRFH2.psc.Command = MQPS_PUBLISH;
      SET OutputRoot.MQRFH2.psc.Topic = 'Items';      
      SET OutputRoot.DFDL.ItemFeed = InputRoot.DFDL.ItemFeed;


Trace Logs:
Code:
( ['GENERICROOT' : 0x4a0af890]
  (0x01000000:Name):Properties = ( ['MQPROPERTYPARSER' : 0x4fd39280]
    (0x03000000:NameValue):MessageSet             = '' (CHARACTER)
    (0x03000000:NameValue):MessageType            = '{}:ItemFeed' (CHARACTER)
    (0x03000000:NameValue):MessageFormat          = '' (CHARACTER)
    (0x03000000:NameValue):Encoding               = 546 (INTEGER)
    (0x03000000:NameValue):CodedCharSetId         = 1208 (INTEGER)
    (0x03000000:NameValue):Transactional          = FALSE (BOOLEAN)
    (0x03000000:NameValue):Persistence            = FALSE (BOOLEAN)
    (0x03000000:NameValue):CreationTime           = GMTTIMESTAMP '2016-07-24 04:13:05.476' (GMTTIMESTAMP)
    (0x03000000:NameValue):ExpirationTime         = -1 (INTEGER)
    (0x03000000:NameValue):Priority               = -1 (INTEGER)
    (0x03000000:NameValue):ReplyIdentifier        = X'000000000000000000000000000000000000000000000000' (BLOB)
    (0x03000000:NameValue):ReplyProtocol          = 'ADAPTOR' (CHARACTER)
    (0x03000000:NameValue):Topic                  = 'Items' (CHARACTER)
    (0x03000000:NameValue):ContentType            = '' (CHARACTER)
    (0x03000000:NameValue):IdentitySourceType     = '' (CHARACTER)
    (0x03000000:NameValue):IdentitySourceToken    = '' (CHARACTER)
    (0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
    (0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
    (0x03000000:NameValue):IdentityMappedType     = '' (CHARACTER)
    (0x03000000:NameValue):IdentityMappedToken    = '' (CHARACTER)
    (0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
    (0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
  )
  (0x01000000:Name):MQMD       = ( ['MQHMD' : 0x3ec1e980]
    (0x03000000:NameValue):Encoding       = 546 (INTEGER)
    (0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
    (0x03000000:NameValue):Version        = 1 (INTEGER)
    (0x03000000:NameValue):Report         = 0 (INTEGER)
    (0x03000000:NameValue):MsgType        = 8 (INTEGER)
    (0x03000000:NameValue):Expiry         = -1 (INTEGER)
    (0x03000000:NameValue):Feedback       = 0 (INTEGER)
    (0x03000000:NameValue):Priority       = -1 (INTEGER)
    (0x03000000:NameValue):Persistence    = 0 (INTEGER)
    (0x03000000:NameValue):MsgId          = X'000000000000000000000000000000000000000000000000' (BLOB)
    (0x03000000:NameValue):CorrelId       = X'000000000000000000000000000000000000000000000000' (BLOB)
    (0x03000000:NameValue):ReplyToQ       = '' (CHARACTER)
    (0x03000000:NameValue):ReplyToQMgr    = '' (CHARACTER)
    (0x03000000:NameValue):Transactional  = FALSE (BOOLEAN)
    (0x03000000:NameValue):PutDate        = DATE '2016-07-24' (DATE)
    (0x03000000:NameValue):PutTime        = GMTTIME '04:13:05.476' (GMTTIME)
    (0x03000000:NameValue):Format         = 'MQHRF2' (CHARACTER)
  )
  (0x01000000:Name):MQRFH2     = ( ['MQHRF2' : 0x4320f6e0]
    (0x03000000:NameValue):Version        = 2 (INTEGER)
    (0x03000000:NameValue):Format         = 'MQSTR   ' (CHARACTER)
    (0x03000000:NameValue):NameValueCCISD = 1208 (INTEGER)
    (0x01000000:Name     ):psc            = (
      (0x01000000:Name):Command = (
        (0x02000000:Value): = 'Publish' (CHARACTER)
      )
      (0x01000000:Name):Topic   = (
        (0x02000000:Value): = 'Items' (CHARACTER)
      )
    )
    (0x01000000:Name     ):mcd            = (
      (0x01000000:Name):Msd  = (
        (0x02000000:Value): = 'dfdl' (CHARACTER)
      )
      (0x01000000:Name):Set  = (
        (0x02000000:Value): = '' (CHARACTER)
      )
      (0x01000000:Name):Type = (
        (0x02000000:Value): = '{}:ItemFeed' (CHARACTER)
      )
      (0x01000000:Name):Fmt  = (
        (0x02000000:Value): = '' (CHARACTER)
      )
    )
  )
  (0x01000000:Name):DFDL       = ( ['dfdl' : 0x2f38b580]
    (0x01000000:Name):ItemFeed = (
      (0x01000000:Name):Items = (
        (0x03000000:NameValue):id              = '1234' (CHARACTER)
        (0x03000000:NameValue):SKU             = '1234SKU' (CHARACTER)
        (0x03000000:NameValue):Name            = 'Cowbell' (CHARACTER)
        (0x03000000:NameValue):description     = 'I gotta have more cowbell!' (CHARACTER)
        (0x03000000:NameValue):price           = '100' (CHARACTER)
        (0x03000000:NameValue):link            = 'http://www.funnyordie.com' (CHARACTER)
        (0x03000000:NameValue):condition       = ' new' (CHARACTER)
        (0x03000000:NameValue):availability    = ' backordered' (CHARACTER)
        (0x03000000:NameValue):brand           = ' Walken' (CHARACTER)
        (0x03000000:NameValue):productCategory = ' Home Improvement' (CHARACTER)
        (0x03000000:NameValue):productType     = 'Cowbell' (CHARACTER)
      )
    )
  )
)


I've run both IIB and MQ traces, but nothing is telling me what's wrong with this message.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sat Jul 23, 2016 10:23 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

From this
https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.tro.doc/q042030_.htm

There is a list of things to check.

The first thing I saw was that your MQMD.Version = 1. That should be =2 (IMHO).

What are the settings in the MQHeader node?

Have you tried removing it and adding this line of ESQL
Code:

Create lastchild of OutputRoot name 'MQMD' domain 'MQMD';

and seeing what changes ensue

You might like to consider using an ALIAS Queue to do the publishing and writing to that using an MQOutput Node rather than a Publish node.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jul 24, 2016 9:52 am    Post subject: Reply with quote

Grand High Poobah

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

Could have to do with the fact that you're not doing any header chaining...
_________________
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 » WebSphere Message Broker (ACE) Support » MQRC 2142 on Pub/Sub
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.