[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debug Log Incomplete



Arturo,

Are these two programs (that you called 'Pgm A' and 'Pgm B') both running in the same job and same activation group? And, are the programs calling each other?

For example, if Pgm A calls http_debug(), then calls Pgm B, and Pgm B calls http_debug(), then Pgm B's settings will replace Pgm A's settings, and subsequent output will go to the 2nd debug log. why? Because the logging, et al, is not in Pgm A or B. It's in HTTPAPIR4. So they are just making calls to HTTPAPIR4... So when one program calls and it results in variables set inside HTTPAPI, then the next program calls HTTPAPI and it results in the same variables being set, the values are being replaced.

Of course, if the programs are running in separate jobs, or separate activation groups (even within the same job) or if Pgm A is completely finishing it's HTTP work before calling Pgm B, then theres no conflict -- and in that case the problem would be elsewhere.

-SK


On 2/3/2015 9:47 AM, Arturo wrote:
    Hi Team,
    Need help in figuring out why debug log is not complete. Two programs
    call the same API using http_post_xml. Each pgm writes to two different
    debug logs.
    Pgm A

    http_debug(*on: '/tmp/sv_PM_debuglog.txt');
     Pgm B

    http_debug(*on: '/tmp/sv_PM1_debuglog.txt');
    Log for pgm A does not write all the http api logging.

    HTTPAPI Ver 1.24 released 2012-01-23

    OS/400 Ver V7R1M0

    https_init(): entered

    SetError() #25: SSL environment was already initialized!
    Log for PGM B does log everything:

    HTTPAPI Ver 1.24 released 2012-01-23

    OS/400 Ver V7R1M0

    https_init(): entered

    SetError() #25: SSL environment was already initialized!

    http_persist_open(): entered

    http_long_ParseURL(): entered

    DNS resolver retrans: 2

    DNS resolver retry : 2

    DNS resolver options: x'00000136'

    DNS default domain:

    DNS server found:

    DNS server found:

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

    Dump of server-side certificate information:

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

    Cert Validation Code = 0

    -----BEGIN CERTIFICATE-----

    MIIFFzCCA/+gAwIBAgIDAdvfMA0GCSqGSIb3DQEBBQUAMEAxCzAJBgNVBAYTAlVT

    MRcwFQYDVQQKEw5HZW9UcnVzdCwgSW5jLjEYMBYGA1UEAxMPR2VvVHJ1c3QgU1NM

    IENBMB4XDTEyMTIwMjA3MzczMVoXDTE1MDIwMjIxNDM1OVowgakxKTAnBgNVBAUT

    IFFIbEotRU1RUE5ld0VySDktTkNBM2hjTjBuWWwzalVmMQswCQYDVQQGEwJVUzEQ

    MA4GA1UECBMHR2VvcmdpYTEQMA4GA1UEBxMHQXRsYW50YTEZMBcGA1UEChMQU2hv

    cFZpc2libGUsIExMQzEUMBIGA1UECxMLU2hvcHZpc2libGUxGjAYBgNVBAMMESou

    c2hvcHZpc2libGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA

    0uOl+3qXqkE6LzTTxAOjgfeXg6DoY9P9BiLboUYawuyfqboRrHory1vEUKyor/ka

    Gvesy3FYkwu0ndF3sB5HaK9sknS87eWjEOKBKMgbUZEWi/aTvaVJF+VKdD3mzkOy

    q0rUoRPoZrbBZ54ymYXYLhq2ZkXM6gRfBuF3qqfQvayp0Jk5OId/r6HKhDpHffug

    BdNx9MhB1zUp+mNG1fptTBnaAfmcFAxxDVNjds402gQdv2pocHwIbnEaeVtE3PYW

    24QCM0QYUDykcgqgpsWULiu/HnQjwK13vZPzC0fb8uuY3svKYpddcZxn0iy6XkS/

    -----END CERTIFICATE-----

    Serial Number: 01:DB:DF

    Common Name: *.callee.com

    Country: US

    State/Province: Georgia

    Locality: Atlanta

    Org Unit: Company, LLC

    Org: Company

    Issuer CN: GeoTrust SSL CA

    Issuer Country: US

    Issuer Org: GeoTrust, Inc.

    Version: 3

    not before: 20121202013731

    Unknown Field: 01:37:31 02-12-2012

    not after: 20150202154359

    Unknown Field: 15:43:59 02-02-2015

    pub key alg: 1.2.840.113549.1.1.5

    Protocol Used: TLS Version 1

    http_persist_post(): entered

    http_persist_req(POST) entered.

    http_long_ParseURL(): entered

    do_oper(POST): entered

    There are 0 cookies in the cache

    POST /ProductService.asmx/CreateProductsWithProcessingOptions HTTP/1.1

    Host: apistaging.company.com

    User-Agent: http-api/1.24

    Content-Type: application/x-www-form-urlencoded

    Content-Length: 655

    �

    senddoc(): entered

    ClientName=SAMPLE++++++++++++&guid=123456789++++&InboundProductsXML=%3C
    Products%3E%3CProduct%3E%3CProductPartNo%3E1340222%3C%2FProductPartNo%3
    E%3CProductQuantity%3E5%3C%2FProductQuantity%3E%3CProductStockStatusID%
    3E2%3C%2FProductStockStatusID%3E%3CPrice%3E%3CPriceSale%3E0%3C%2FPriceS
    ale%3E%3CPriceOnSale%3E0%3C%2FPriceOnSale%3E%3C%2FPrice%3E%3CProductOpt
    ionGroups%3E%3CProductOptionGroup%3E%3CProductOptionGroupName%3E1340222
    %3C%2FProductOptionGroupName%3E%3CProductOptions%3E%3C%2FProductOptions
    %3E%3C%2FProductOptionGroup%3E%3C%2FProductOptionGroups%3E%3C%2FProduct
    %3E%3C%2FProducts%3E&ProcessingOptions=AllowUpdates%3Dtrue

    recvresp(): entered

    HTTP/1.1 200 OK

    Cache-Control: private, max-age=0

    Content-Type: text/xml; charset=utf-8

    Server: Microsoft-IIS/7.0

    X-AspNet-Version: 4.0.30319

    X-Powered-By: ASP.NET

    Date: Sun, 01 Feb 2015 17:05:50 GMT

    Content-Length: 361

    �

    SetError() #13: HTTP/1.1 200 OK

    recvresp(): end with 200

    recvdoc parms: identity 361

    header_load_cookies() entered

    recvdoc(): entered

    SetError() #0:

    <?xml version="1.0" encoding="utf-8"?>

    <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

    <ResponseHasErrors>false</ResponseHasErrors>

    <ResponseCode>SUCCESS</ResponseCode>

    <ResponseDescription />

    <ResponseCustomReturn1 />

    <ResponseCustomReturn2>4293</ResponseCustomReturn2>

    </Response>

    http_close(): entered
    Any ideas why this is happening?
    Thank you
    Art



-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------