Feedback
Did this article resolve your question/issue?

   

Article

Getting error (9084) decrementing an UNDOable counter variable in Sonic Adapter

Information

 
TitleGetting error (9084) decrementing an UNDOable counter variable in Sonic Adapter
URL Namegetting-error-9084-decrementing-an-undoable-counter-variable-in-sonic-adapter
Article Number000119518
EnvironmentProduct: OpenEdge
Version: 11.7.5
OS: Windows
Question/Problem Description

When a STOP condition occurs within a transaction while waiting for messages from the Sonic Adapter, cleanup code that attempts to run deleteSession from a FINALLY block causes the below error to be thrown from deleteMessage in jms/impl/message.p:

Attempt to reference an UNDO GLOBAL variable after a transaction backout has removed its definition. (9064)

The line of code this occurs on is:
ASSIGN PRGRS-JMS-MESSAGE-COUNT = PRGRS-JMS-MESSAGE-COUNT - 1.

If the cleanup code is not run, this results in memory leaks.
 

Steps to Reproduce1) Setup a Sonic Broker and start the SonicMQ adapter
2) Run the attached repro.p

Note this will only happen once per prowin session. Close and restart the procedure editor to see it again.
Clarifying Information
Error MessageAttempt to reference an UNDO GLOBAL variable after a transaction backout has removed its definition. (9084)
Defect/Enhancement NumberDefect ADAS-21360
Cause
The exact cause is not known at this time.
 
Resolution
None at this time.
 
Workaround
Run the messaging code outside of a transaction.
 
Notes
Last Modified Date1/3/2020 5:33 PM
Attachment 
Files 1. repro.p
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.