Microsoft KB Archive/307361

= AS/400 Data Queues: ALLOCATE Verb Fails With AP_BAD_SECURITY =

Article ID: 307361

Article Last Modified on 2/19/2007

-

APPLIES TO


 * Microsoft Host Integration Server 2000 Standard Edition

-



This article was previously published under Q307361



SYMPTOMS
An application that uses the AS/400 Data Queue ActiveX Control may experience Advanced Program-to-Program Communications (APPC) ALLOCATE verb errors after it successfully connects to a number of data queues on an AS/400 computer.

The ALLOCATE verbs fail with the following return codes:

primary return_code = 0001 (PARAMETER_CHECK)

secondary return_code = 00000013 (AP_BAD_SECURITY)

In the reported instance of this problem, the ALLOCATE failure occurred while the application is attempting to connect to a fifth data queue. The first four data queue connections did not experience any problems due to the failures of subsequent connection attempts.



CAUSE
The AS/400 Data Queue ActiveX Control routine that is responsible for generating the APPC ALLOCATE verb was incorrectly causing the ALLOCATE's security parameter to be overwritten with invalid values under certain circumstances.



RESOLUTION
To resolve this problem, obtain the latest service pack for Host Integration Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

328152 How to Obtain the Latest Host Integration Server 2000 Service Pack

The English version of this fix should have the following file attributes or later:

NOTE: Because of file dependencies, the most recent fix that contains the preceding files may also contain additional files.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Host Integration Server 2000 Service Pack 1.



MORE INFORMATION
The following is an example of a failing ALLOCATE: APPC ALLOCATE request APPC APPC Type:Sync                                  VerbID:00014011 APPC APPC  Verb Parameter Block at address 0012EF1C APPC 01000000 00000000 00000000 06000000     <................> APPC 48E45003 40E55003 00000000 00000000      APPC 00000000 00000000 53313041 39323938     <........S10A9298> APPC D8D7C3E2 E4D7D740 30F0F6F0 40404040      APPC 40404040 40404040 40404040 40404040     <@@@@@@@@@@@@@@@@> APPC 40404040 40404040 40404040 40404040     <@@@@@@@@@@@@@@@@> APPC 40404040 40404040 40404040 40404040     <@@@@@@@@@@@@@@@@> APPC 40404040 40404040 06000000 00000000     <@@@@@@@@........> ^^-- Invalid security parameter value APPC 00000000 C5D7C1F9 F0F9F140 4040C5D7     <....EPA9091@@@EP> APPC C1C3C540 40404040 00000000 00000000      APPC 00000000 00000000 00000000 00000000     <................> APPC 00000000 00000000 00000000              <............ > APPC APPC ALLOCATE response, result = PARAMETER_CHECK APPC APPC Type:Sync                                  VerbID:00014011 APPC APPC  Verb Parameter Block at address 0012EF1C APPC 01000000 00010000 00000013 06000000     <................> ^^^^    ^^^^^^^^ APPC  48E45003 40E55003 00000000 00000000      APPC 00000000 00000000 53313041 39323938     <........S10A9298> APPC D8D7C3E2 E4D7D740 30F0F6F0 40404040      APPC 40404040 40404040 40404040 40404040     <@@@@@@@@@@@@@@@@> APPC 40404040 40404040 40404040 40404040     <@@@@@@@@@@@@@@@@> APPC 40404040 40404040 40404040 40404040     <@@@@@@@@@@@@@@@@> APPC 40404040 40404040 06000000 00000000     <@@@@@@@@........> APPC 00000000 C5D7C1F9 F0F9F140 4040C5D7     <....EPA9091@@@EP> APPC C1C3C540 40404040 00000000 00000000      APPC 00000000 00000000 00000000 00000000     <................> APPC 00000000 00000000 00000000              <............ > The primary and secondary return codes are highlighted (^^^) in the ALLOCATE response above.

The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Keywords: kbbug kbfix kbhostintegserv2000presp1fix kbhostintegserv2000sp1fix KB307361

-

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

© Microsoft Corporation. All rights reserved.