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 » Integration Bus , Computer node

Post new topic  Reply to topic
 Integration Bus , Computer node « View previous topic :: View next topic » 
Author Message
SphereOfLove
PostPosted: Tue May 13, 2014 4:51 am    Post subject: Integration Bus , Computer node Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

ExceptionList
======2014-05-13 08:26:34.273428========

( ['MQROOT' : 0x4f3669a0]
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\slot1\S000_P\src\DataFlowEngine\MessageServices\ImbDataFlowNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 1153 (INTEGER)
(0x03000000:NameValue):Function = 'ImbDataFlowNode::createExceptionList' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmComputeNode' (CHARACTER)
(0x03000000:NameValue):Name = 'MyFlow#FCMComposite_1_11' (CHARACTER)
(0x03000000:NameValue):Label = 'MyFlow.Compute1' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Node throwing exception' (CHARACTER)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\slot1\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlStatementGroup.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 666 (INTEGER)
(0x03000000:NameValue):Function = 'SqlStatementGroup::execute' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2488 (INTEGER)
(0x03000000:NameValue):Text = 'Error detected, rethrowing' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '.MyFlow_Compute2.Main' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '14.5' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'SET OutputRoot.XMLNSC.Body.records[I].TRANSM_NO = InputRoot.XMLNSC.Body.records[I].TRANSM_NO;' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\slot1\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlFieldRef.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 2175 (INTEGER)
(0x03000000:NameValue):Function = 'SqlFieldReference::navigateAbsoluteToParentOfFirst' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2498 (INTEGER)
(0x03000000:NameValue):Text = 'Navigation error' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '.MyFlow_Compute2.Main' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '14.9' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 2 (INTEGER)
(0x03000000:NameValue):Text = '4' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\slot1\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlFieldRef.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 1048 (INTEGER)
(0x03000000:NameValue):Function = 'SqlPathElement::navigateCursorFirst' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2436 (INTEGER)
(0x03000000:NameValue):Text = 'Array subscript error' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 2 (INTEGER)
(0x03000000:NameValue):Text = '2' (CHARACTER)
)
)
)
)
)
)

( ['xmlnsc' : 0x53bb53b0]
(0x01000000:Folder):Body = (
(0x01000000:Folder):records = (
(0x03000000:PCDataField):TRANSM_NO = '1009' (CHARACTER)
)
(0x01000000:Folder):records = (
(0x03000000:PCDataField):TRANSM_NO = '1008' (CHARACTER)
)
(0x01000000:Folder):records = (
(0x03000000:PCDataField):TRANSM_NO = '1010' (CHARACTER)
)
)
)

------


I am trying to pick up a list retained in an XML file using fileInput Node, and using computer node to propagate one item at a time to be inserted in a table. The Computer node is throwing the above mentioned exception and just processes only first record from the list.

Please advise!

CODE


CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN

-- CALL CopyEntireMessage();
DECLARE ListCount Integer;
DECLARE I integer 1;
SET ListCount = CARDINALITY(InputRoot.XMLNSC.Body.*[]);

WHILE I <= ListCount DO
CALL CopyMessageHeaders();
SET OutputRoot.XMLNSC.Body.records[I].TRANSM_NO = InputRoot.XMLNSC.Body.records[I].TRANSM_NO;
PROPAGATE;
SET I = I + 1;
END WHILE;
RETURN FALSE;
-- RETURN TRUE;
END;
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue May 13, 2014 5:05 am    Post subject: Reply with quote

Jedi Council

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

There is a problem on the output side of this line
Code:

SET OutputRoot.XMLNSC.Body.records[I].TRANSM_NO = InputRoot.XMLNSC.Body.records[I].TRANSM_NO;

_________________
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
SphereOfLove
PostPosted: Tue May 13, 2014 5:20 am    Post subject: Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

May be i am not getting the point, or may need further advice

If I remove the Propagate statement and change return false to return true.
It gives me all the list data, but i can not send a complete list to invoke a web service which takes one record at a time.

What should i do?
Back to top
View user's profile Send private message
Esa
PostPosted: Tue May 13, 2014 5:44 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Hint: OutputRoot.XMLNSC.Body will have only one 'record'...
Back to top
View user's profile Send private message
SphereOfLove
PostPosted: Tue May 13, 2014 5:58 am    Post subject: Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

Esa wrote:
Hint: OutputRoot.XMLNSC.Body will have only one 'record'...


That is true, if i use propagate statement, the OutputRoot.XMLNSC.Body should propagate one record at a time and then execute all the following nodes and then should come back to process next record.
But it only produces one record and then throws the exception i posted earlier.
Back to top
View user's profile Send private message
Esa
PostPosted: Tue May 13, 2014 6:02 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

SphereOfLove wrote:

But it only produces one record and then throws the exception i posted earlier.


No, it fails to produce the record because of the error in your code...
Back to top
View user's profile Send private message
SphereOfLove
PostPosted: Tue May 13, 2014 6:32 am    Post subject: Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

Esa wrote:
SphereOfLove wrote:

But it only produces one record and then throws the exception i posted earlier.


No, it fails to produce the record because of the error in your code...


Thank you Guys,
I have corrected the code
Code:
WHILE I <= ListCount DO
           CALL CopyMessageHeaders();
          SET OutputRoot.XMLNSC.Body.records.TRANSM_NO = InputRoot.XMLNSC.Body.records[I].TRANSM_NO;
           SET I = I + 1;
           PROPAGATE;
        END WHILE;
      RETURN FALSE;
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue May 13, 2014 6:32 am    Post subject: Reply with quote

Jedi Council

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

Esa wrote:
SphereOfLove wrote:

But it only produces one record and then throws the exception i posted earlier.


No, it fails to produce the record because of the error in your code...


As is indicated in my reply but has totally been ignored.

Opps. Two edits with the same timestamp. Looks like problem solved.
_________________
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
Esa
PostPosted: Tue May 13, 2014 6:48 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

smdavies99 wrote:

As is indicated in my reply but has totally been ignored.

Far from ignored but extended with further going tease
Back to top
View user's profile Send private message
SphereOfLove
PostPosted: Tue May 13, 2014 7:58 am    Post subject: Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

Esa wrote:
smdavies99 wrote:

As is indicated in my reply but has totally been ignored.

Far from ignored but extended with further going tease


Thank you!

You were right too.. Thank you again..
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 » Integration Bus , Computer 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.