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 » error not logging in database when mapping fails at RCD node

Post new topic  Reply to topic
 error not logging in database when mapping fails at RCD node « View previous topic :: View next topic » 
Author Message
SDS
PostPosted: Sun Aug 07, 2011 9:27 pm    Post subject: error not logging in database when mapping fails at RCD node Reply with quote

Apprentice

Joined: 13 Jun 2011
Posts: 47

In case of any transformation failure in the RCD node in a msgflow ,the error is not logged into the Database (Error_Log table). The code is failing into the following Highlighted area in ***** marks.

Code:
IF (EXISTS(InputLocalEnvironment.Destination.HTTP[])) THEN

         CREATE LASTCHILD OF outRef NAME 'MessageId' VALUE COALESCE(InputBody.MessageId,InputLocalEnvironment.Destination.HTTP.RequestIdentifier);
         CREATE LASTCHILD OF outRef NAME 'CorrelId' VALUE '';
         CREATE LASTCHILD OF outRef NAME 'InputQueue' VALUE 'HTTP';
         
      ELSE

                    *****CREATE LASTCHILD OF outRef NAME 'MessageId' VALUE COALESCE(InputRoot.MQRFH2.usr.MessageId,InputBody.MessageId,InputRoot.MQMD.MsgId);*****
      
                        CREATE LASTCHILD OF outRef NAME 'CorrelId' VALUE InputRoot.MQMD.CorrelId;
                        CREATE LASTCHILD OF outRef NAME 'InputQueue' VALUE InputRoot.MQMD.SourceQueue;         

      END IF;


Please help me to resolve the issue. it's URGENT!!!
Back to top
View user's profile Send private message
cvag
PostPosted: Sun Aug 07, 2011 10:03 pm    Post subject: Reply with quote

Centurion

Joined: 17 Mar 2008
Posts: 127

Hi SDS,
what is the exception?
Back to top
View user's profile Send private message
SDS
PostPosted: Sun Aug 07, 2011 10:13 pm    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2011
Posts: 47

The exception list is given below:

Code:
RecoverableException
   File:CHARACTER:F:\build\S000_P\src\DataFlowEngine\ImbDataFlowNode.cpp
   Line:INTEGER:1073
   Function:CHARACTER:ImbDataFlowNode::createExceptionList
   Type:CHARACTER:ComIbmComputeNode
   Name:CHARACTER:TLOG_OR/BJS_ACE_TLOG_OR#FCMComposite_1_10.ACE/ETTP_ACE__PRE_TRANSFORM#FCMComposite_1_1
   Label:CHARACTER:TLOG_OR.BJS_ACE_TLOG_OR.ACE_PreTransformProcessing.ACE Pre Transform Processing
   Catalog:CHARACTER:BIPmsgs
   Severity:INTEGER:3
   Number:INTEGER:2230
   Text:CHARACTER:Node throwing exception
   RecoverableException
         File:CHARACTER:F:\build\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlStatementGroup.cpp
         Line:INTEGER:611
         Function:CHARACTER:SqlStatementGroup::execute
         Type:CHARACTER:ComIbmComputeNode
         Name:CHARACTER:TLOG_OR/BJS_ACE_TLOG_OR#FCMComposite_1_10.ACE/ETTP_ACE__PRE_TRANSFORM#FCMComposite_1_1
         Label:CHARACTER:TLOG_OR.BJS_ACE_TLOG_OR.ACE_PreTransformProcessing.ACE Pre Transform Processing
         Catalog:CHARACTER:BIPmsgs
         Severity:INTEGER:3
         Number:INTEGER:2488
         Text:CHARACTER:Error detected, rethrowing
         Insert
               Type:INTEGER:5
               Text:CHARACTER:ACE.ETTP_ACE__POSLOG_V21_PRE_TRANSFORM_Compute.Main
         Insert
               Type:INTEGER:5
               Text:CHARACTER:14.3
         Insert
               Type:INTEGER:5
               Text:CHARACTER:GetAcePreTransformParameters(theInputRoot, theOutputRoot, theEnvironment);
         RecoverableException
               File:CHARACTER:F:\build\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlRoutine.cpp
               Line:INTEGER:550
               Function:CHARACTER:SqlRoutine::invoke
               Type:CHARACTER:ComIbmComputeNode
               Name:CHARACTER:TLOG_OR/BJS_ACE_TLOG_OR#FCMComposite_1_10.ACE/ETTP_ACE__PRE_TRANSFORM#FCMComposite_1_1
               Label:CHARACTER:TLOG_OR.BJS_ACE_TLOG_OR.ACE_PreTransformProcessing.ACE Pre Transform Processing
               Catalog:CHARACTER:BIPmsgs
               Severity:INTEGER:3
               Number:INTEGER:2934
               Text:CHARACTER:Error occured in procedure
               Insert
                     Type:INTEGER:5
                     Text:CHARACTER:GetAcePreTransformParameters
               RecoverableException
                     File:CHARACTER:F:\build\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlStatementGroup.cpp
                     Line:INTEGER:611
                     Function:CHARACTER:SqlStatementGroup::execute
                     Type:CHARACTER:ComIbmComputeNode
                     Name:CHARACTER:TLOG_OR/BJS_ACE_TLOG_OR#FCMComposite_1_10.ACE/ETTP_ACE__PRE_TRANSFORM#FCMComposite_1_1
                     Label:CHARACTER:TLOG_OR.BJS_ACE_TLOG_OR.ACE_PreTransformProcessing.ACE Pre Transform Processing
                     Catalog:CHARACTER:BIPmsgs
                     Severity:INTEGER:3
                     Number:INTEGER:2488
                     Text:CHARACTER:Error detected, rethrowing
                     Insert
                           Type:INTEGER:5
                           Text:CHARACTER:ACE.GetAcePreTransformParameters
                     Insert
                           Type:INTEGER:5
                           Text:CHARACTER:12.2
                     Insert
                           Type:INTEGER:5
                           Text:CHARACTER:SET theOutputRoot.MRM.CustomerSpecificData.TLogType = 'TLOGRAW';
                     RecoverableException
                           File:CHARACTER:F:\build\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlFieldRef.cpp
                           Line:INTEGER:2064
                           Function:CHARACTER:SqlFieldReference::navigateAbsoluteToParentOfFirst
                           Type:CHARACTER:ComIbmComputeNode
                           Name:CHARACTER:TLOG_OR/BJS_ACE_TLOG_OR#FCMComposite_1_10.ACE/ETTP_ACE__PRE_TRANSFORM#FCMComposite_1_1
                           Label:CHARACTER:TLOG_OR.BJS_ACE_TLOG_OR.ACE_PreTransformProcessing.ACE Pre Transform Processing
                           Catalog:CHARACTER:BIPmsgs
                           Severity:INTEGER:3
                           Number:INTEGER:2498
                           Text:CHARACTER:Navigation error
                           Insert
                                 Type:INTEGER:5
                                 Text:CHARACTER:ACE.GetAcePreTransformParameters
                           Insert
                                 Type:INTEGER:5
                                 Text:CHARACTER:12.6
                           Insert
                                 Type:INTEGER:2
                                 Text:CHARACTER:3
                           ParserException
                                 File:CHARACTER:F:\build\S000_P\src\MTI\MTIforBroker\MtiImbParser2\MtiImbParser.cpp
                                 Line:INTEGER:736
                                 Function:CHARACTER:MtiImbParser::parseRightSibling
                                 Type:CHARACTER:ComIbmMQInputNode
                                 Name:CHARACTER:TLOG_OR/BJS_ACE_TLOG_OR#FCMComposite_1_15
                                 Label:CHARACTER:TLOG_OR.BJS_ACE_TLOG_OR.ACETLOG_INPUT
                                 Catalog:CHARACTER:BIPmsgs
                                 Severity:INTEGER:3
                                 Number:INTEGER:5285
                                 Text:CHARACTER:ImbRecoverableException caught from worker->parseNext.
                                 Insert
                                       Type:INTEGER:5
                                       Text:CHARACTER:ETTP_TLOG_messages_IBM_ACE
                                 Insert
                                       Type:INTEGER:2
                                       Text:CHARACTER:10638
                                 Insert
                                       Type:INTEGER:5
                                       Text:CHARACTER:TLOGRAW
                                 Insert
                                       Type:INTEGER:5
                                       Text:CHARACTER:/Transaction/TransactionRecord13/TenderAmount
                                 ParserException
                                       File:CHARACTER:F:\build\S000_P\src\cpi\pwf\nxd\nxdworker.cpp
                                       Line:INTEGER:462
                                       Function:CHARACTER:NXDWorker::parseNext
                                       Type:CHARACTER:
                                       Name:CHARACTER:
                                       Label:CHARACTER:
                                       Catalog:CHARACTER:BIPmsgs
                                       Severity:INTEGER:3
                                       Number:INTEGER:5421
                                       Text:CHARACTER:TDS General Error
                                       Insert
                                             Type:INTEGER:5
                                             Text:CHARACTER:Transaction
                                       Insert
                                             Type:INTEGER:5
                                             Text:CHARACTER:/Transaction/[CHOICE](4 of unbounded)/TransactionRecord13/Negative
                                       Insert
                                             Type:INTEGER:2
                                             Text:CHARACTER:94
                                       ParserException
                                             File:CHARACTER:F:\build\S000_P\src\cpi\pwf\nxd\nxdsimpletype.cpp
                                             Line:INTEGER:474
                                             Function:CHARACTER:NXDSimpleType::checkObserveELementLength
                                             Type:CHARACTER:
                                             Name:CHARACTER:
                                             Label:CHARACTER:
                                             Catalog:CHARACTER:BIPmsgs
                                             Severity:INTEGER:3
                                             Number:INTEGER:5451
                                             Text:CHARACTER:Element data is longer than required by the model
                                             Insert
                                                   Type:INTEGER:5
                                                   Text:CHARACTER:531^Negative
                                             Insert
                                                   Type:INTEGER:5
                                                   Text:CHARACTER:Decimal
                                             Insert
                                                   Type:INTEGER:2
                                                   Text:CHARACTER:1
                                             Insert
                                                   Type:INTEGER:2
                                                   Text:CHARACTER:94
                                             Insert
                                                   Type:INTEGER:2
                                                   Text:CHARACTER:3


The exception was created intentionally to receive the error at error database but it is throwing error for the line :

Code:
CREATE LASTCHILD OF outRef NAME 'MessageId' VALUE COALESCE(InputRoot.MQRFH2.usr.MessageId,InputBody.MessageId,InputRoot.MQMD.MsgId)


While checking I saw that If I delete "InputBody.MessageId" part from the above line, the code is running fine. But if I replace it with InputRoot.MRM.MessageId that is also giving error & control comes back to Throw node. Please let me know how can I resolve the issue.
Back to top
View user's profile Send private message
cvag
PostPosted: Sun Aug 07, 2011 10:28 pm    Post subject: Reply with quote

Centurion

Joined: 17 Mar 2008
Posts: 127

This is not the problem with the statement.

It clearly showing as Parser Exception
Issue is with the element value assigning.
Code:
Element data is longer than required by the model
/Transaction/TransactionRecord13/TenderAmount


Check the element and its value against the messagedefinition.
Back to top
View user's profile Send private message
SDS
PostPosted: Sun Aug 07, 2011 10:33 pm    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2011
Posts: 47

parser exception was created intentionally to check whether it is getting logged in Error Database or not.

I need to log this error in the database error table.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Aug 07, 2011 10:49 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.

On the input node, what is the parser Options-->Parse Timing set to?

IMHO, I think you are seeing the effect of 'On Demand' parsing.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » error not logging in database when mapping fails at RCD node
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.