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 » Cannot create an element as a sibling of unattached element

Post new topic  Reply to topic
 Cannot create an element as a sibling of unattached element « View previous topic :: View next topic » 
Author Message
eai_guy
PostPosted: Fri Nov 14, 2008 1:21 am    Post subject: Cannot create an element as a sibling of unattached element Reply with quote

Voyager

Joined: 18 Oct 2007
Posts: 90

Hi,

I have a flow which processed message from JMS input node from Tibco EMS server and puts the processed message into another JMS queue.
Today we have strange issue.

One of the message is directly coming out of JMS input node into failure terminal and that our error handler is failing. Error handler works fine if message is transformed to MQ using JMS to MQ transform node.

Problem is when message directly goes to failure terminal without transforming.

My piece of ESQL which fails when message comes directly from JMS failure terminal is as below,
It fails when it is executing highlighted statement


DECLARE mqHeader BOOLEAN EXISTS (InputRoot.MQMD[]);
IF mqHeader <> TRUE THEN
SET MSGID = InputRoot.JMSTransport.Transport_Folders.Header_Values.JMSMessageID ;
-------------------------------------------------------------------------------------------------
SET OutputRoot.JMSTransport = NULL;
DECLARE REF1 reference to OutputRoot.Properties ;
CREATE NEXTSIBLING of REF1 DOMAIN 'MQMD' NAME 'MQMD';
SET OutputRoot.MQMD.Version = MQMDE_CURRENT_VERSION;



We are getting below exception when it is trying to create nextsibling,

Any help to figure out this will be appreciated, thanks


ExceptionList
RecoverableException
File:CHARACTER:/build/S610_P/src/DataFlowEngine/ImbDataFlowNode.cpp
Line:INTEGER:739
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmJniNode
Name:CHARACTER:PAYMENT_SETTLEMENT_VALIDATION#FCMComposite_1_2
Label:CHARACTER:PAYMENT_SETTLEMENT_VALIDATION.Settlement_JMSInput
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
RecoverableException
File:CHARACTER:/build/S610_P/src/DataFlowEngine/ImbComputeNode.cpp
Line:INTEGER:464
Function:CHARACTER:ImbComputeNode::evaluate
Type:CHARACTER:ComIbmComputeNode
Name:CHARACTER:#FCMComposite_1_1.ESF#FCMComposite_1_2

Label:CHARACTER:FlowNameESF.ExceptionLogger
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
RecoverableException
File:CHARACTER:/build/S610_P/src/DataFlowEngine/ImbRdl/ImbRdlStatementGroup.cpp

Line:INTEGER:602
Function:CHARACTER:SqlStatementGroup::execute
Type:CHARACTER:ComIbmComputeNode
Name:CHARACTER:#FCMComposite_1_1.ESF#FCMComposite_1_2

Label:CHARACTER:.ESF.ExceptionLogger

Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:2488
Text:CHARACTER:Error detected, rethrowing
Insert
Type:INTEGER:5
Text:CHARACTER:.ESF_ExceptionLogger.Main
Insert
Type:INTEGER:5
Text:CHARACTER:67.3
Insert
Type:INTEGER:5
Text:CHARACTER:CREATE NEXTSIBLING OF REF1 DOMAIN 'MQMD' NAMESPACE '' NAME 'MQMD';

RecoverableException
File:CHARACTER:/build/S610_P/src/DataFlowEngine/ImbParser.cpp

Line:INTEGER:1613
Function:CHARACTER:ImbSyntaxElement::createAfter

Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:2333
Text:CHARACTER:Cannot create an element as a sibling of unattached element

Insert
Type:INTEGER:5
Text:CHARACTER:(0x01000000):Root

Insert
Type:INTEGER:5
Text:CHARACTER:
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Fri Nov 14, 2008 2:01 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi eai_guy,

Your previous line of code is not moving REF1 to Properties, it remains at Root and that acts like a document, hence not allowing you to create a sibling.

You should check what structure is arriving at that point, perhaps do a propagate and write to a trace file.

Regards.
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Fri Nov 14, 2008 3:20 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You should always check LASTMOVE after declaring a REFERENCE.
'DECLARE myRef REFERENCE TO myFieldRef' is like a MOVE - it will fail if myRef cannot be associated with myFieldRef.
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 » Cannot create an element as a sibling of unattached element
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.