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 » ATOMIC BLOCKS

Post new topic  Reply to topic
 ATOMIC BLOCKS « View previous topic :: View next topic » 
Author Message
WBI_User21
PostPosted: Wed Jun 04, 2008 6:52 am    Post subject: ATOMIC BLOCKS Reply with quote

Voyager

Joined: 12 Jun 2007
Posts: 98

Hi ,
I am trying to remove the element from the atomic row.But I am ending up with the exception which says :
-----------------------------------------------------------------------------
BIP2503
Invalid shared variable operation.
Severity
20 : Error
Explanation
An SQL statement has attempted an operation involving shared variables which is outside the range permitted. You cannot move (by using DETACH/ATTACH) a subtree from one shared variable to another. You cannot use functions with side effects to change shared variables when the expression invoking the function also operates on shared variables.
Response
Correct the logic of the ESQL program and re-deploy the message flow.

--------------------------------------------------------------------------------

The piece of code which is causing the exception is :
SharedMutex2:BEGIN ATOMIC
X: WHILE i < MaxConn DO
SET storeCookie.cookieList[i] = storeCookie.cookieList[i+1];
SET i = i + 1;
END WHILE X;
END;

The italisized line above throws the exception. There was no such error when executed in 6.0.0.1 version of MB. This exception occured when this piece of code was executed in 6.0.0.7.
Please share your view points on these.
-------------------
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Jun 04, 2008 7:44 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

This statement:

Code:
SET storeCookie.cookieList[i] = storeCookie.cookieList[i+1];


is trying to read and write from the same shared variable in the same statement. This is not allowed, and it looks like this was tightened up after 6.0.0.1 . To work around this simply store the value in a local variable and then assign it. e.g:

Code:
SET temp = storeCookie.cookieList[i+1];
SET storeCookie.cookieList[i] = temp;

regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » ATOMIC BLOCKS
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.