Microsoft KB Archive/300685

= OLEDB Provider error message: The Conversation Was Deallocated with AP_ABEND =

Article ID: 300685

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft Host Integration Server 2000 Standard Edition
 * Microsoft SNA Server 4.0 Service Pack 1
 * Microsoft SNA Server 4.0 Service Pack 2
 * Microsoft SNA Server 4.0 Service Pack 3
 * Microsoft SNA Server 4.0 Service Pack 4
 * Microsoft OLE DB Provider for AS/400 and VSAM 4.0 SP2
 * Microsoft OLE DB Provider for AS/400 and VSAM 4.0 SP3
 * Microsoft Host Integration Server 2004 Standard Edition

-



This article was previously published under Q300685



SYMPTOMS
The error &quot;Conversation was Deallocated with AP_ABEND&quot; occurs when you are running an application (or sending code from an Active Server Pages page) to connect via TCP/IP through SNA Server's OLEDB Provider for AS400/VSAM to an AS400.

The application will run fine the first time. If you disconnect and rerun the application, the error occurs. However, if you disconnect again and rerun the same application another time, everything works fine. (The error occurs every other time.)

Another symptom of the problem is an error in the AS400 QSYSOPR Log &quot;DDM TCP/IP server error occurred with reason code 7&quot;. The complete error entry is as follows:

Message ID. . . . . . : CPD3E33 Severity. . . . . . . : 40 Message type. . . . . : Diagnostic Date sent. . . . . . : 03/06/01 Time sent. . . . . . : 07:55:37 Message. . . . : DDM TCP/IP server error occurred with reason code 7. Cause. . . . . : An error with reason code 7 occurred during DRDA/DDM TCP/IP server processing. The name of the server program is QRWTLSTN. The reason codes and their meanings are as follows: 1 -- Resolve to the QRWTLSTN program failed. 2 -- Retrieval of the QRWTLSTN program lock failed. 3 -- Submit job to start the server job failed. 4 -- Allocation of the QRWTLSTN program failed. 5 -- Starting of the server job failed. 6 -- Ending of the server job failed. 7 -- Activation of the server job failed. 8 -- Processing of the start server request failed.



RESOLUTION
The problem can be resolved by changing the &quot;Maximum number of uses&quot; value in the QRWTSRVR job to &quot;1&quot; (the default is 200).

First verify what MAXUSE value you are currently using by performing the following:  From an AS400 command prompt, type wrksbsd (qsys/qsyswrk) and press ENTER. Press DOWN ARROW to QSYSWRK and type 5 (for &quot;Display&quot;). Select option 10 - Prestart Job Entries. Press DOWN ARROW to QRWTSRVR and type 5 (Display). Look at the &quot;Maximum number of uses&quot; value.

If the value is greater than 1, type the following at an AS400 command prompt, and then press ENTER:

CHGPJE SBSD(QSYS/QSYSWRK) PGM(QSYS/QRWTSRVR) MAXUSE(1)

This change will take effect immediately.

<div class="moreinformation_section">

MORE INFORMATION
The &quot;Maximum number of uses&quot; setting is for the maximum number of requests that can be handled by each prestart job in the pool before the job will be ended.

Steps to Reproduce Behavior
The problem can be reproduced using the RLIO_VB.exe sample application (which is included with SNA Server and Host Integration Server):
 * 1) Run RLIO_VB.exe (which is located in the <SNAROOT>\System folder.
 * 2) Click Connect, type the path for UDL to connect to AS400, and then press ENTER.
 * 3) Click Open RS (Record Set), type a valid RS, and then click OK.
 * 4) Click Close RS.
 * 5) Click Disconnect.
 * 6) Try to use the same UDL file to reconnect. The error will occur.

Additional query words: HIS 2000 HIS2004

Keywords: kbinfo KB300685

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.