Httpput – EXCEPTION_ACCESS_VIOLATION

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Httpput – EXCEPTION_ACCESS_VIOLATION

  • Creator
    Topic
  • #48798
    Neil Swinton
    Participant

      Hi,

      I am getting this error when I try to call httpput in qdx 5.3. The code was seeming to work against a test server, but when run against a live server I get the failure. The applicable part of the log, and some of the source code is below:

      Any Ideas ?


      CODE:

      proc FrameWebMessage { MessageToSend } {

      set XML_VERSION [concat ]

      set END_MSG [concat }  }]

      set BEGIN_MSG [concat   { URL http://999.50.45.34 } {HEADERS {Content-Type  application/x-www-form-urlencoded}   } {DATA {command=]

      set CONNECTION_INFO [ concat $BEGIN_MSG$XML_VERSION$MessageToSend$END_MSG]

      return $CONNECTION_INFO

      }

      ……

              set msg_to_be_posted [concat “

      ” “USERNAME” “

      ” “PASSWORD” “

      2000

      “]

      set CONNECTION_INFO [FrameWebMessage $msg_to_be_posted]

      if { [catch {set returned_message [ httppost $CONNECTION_INFO ]} msgError ] } {

      #     failed to send for some reason

      echo “failed to send to Web” $msgError

      set localError msgError

      return “ERROR”

      } else {

      # Message sent Ok. Look in the retunred buffer and extract the token.

      echo “send OK, Look at return ” $msgError


      LOG

      AssynchOut] [0.0.451633] Writing message to Protocol Driver upoc

      [tps :tps :INFO/1:WebAssynchOut] tds.string = Output_to_Web {MSGID message0} {CONTEXT pdupoc_write} {ARGS {}} {MODE run} {VERSION 3.0}

      111

      Output To Web – Run

      In XML Login

      Set Connection

      httppost { URL http://195.50.45.34 } {HEADERS {Content-Type application/x-www-form-urlencoded} } {DATA {command=} }

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: Calling InitSocket with fdSocket = 0xFFFFFFFF

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: …&& pszPrivateKeyFile='(null)’,  iKeyFileENGINE=1, ulTimeOut_ms=-1

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: InitSocket, Handle = 0xffffffff, eSSLStatus = 0

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: InitSocket…pszPrivateKeyFile='(null)’,  iKeyFileENGINE=1, ulTimeOut_ms=-1

      [ssl :open:DBUG/2:WebAssynchOut] __cSocket: Setting _psslConnection = NULL

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: …Setting ulTimeOut_ms = -1

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: Initializing Socket System

      [ssl :open:DBUG/3:WebAssynchOut] calling SSL_load_error_strings

      [ssl :open:DBUG/3:WebAssynchOut] calling ERR_load_ERR_strings

      [ssl :open:DBUG/3:WebAssynchOut] calling OpenSSL_add_ssl_algorithms

      [ssl :open:DBUG/3:WebAssynchOut] calling OpenSSL_add_all_algorithms

      [ssl :open:DBUG/2:WebAssynchOut] __cSocket: Creating CLEAR Socket with handle = 0xFFFFFFFF, iFileType = -1

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: Making new socket

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: Created socket handle 0x03bc with PF_INET, SOCK_STREAM, Proto: 6

      [ssl :open:DBUG/2:WebAssynchOut] __cSocket: Setting socket Options-I (SO_REUSEADDR = On)

      [ssl :open:DBUG/2:WebAssynchOut] __cSocket: Setting socket Options-II (TCP_NODELAY = On)

      [ssl :open:DBUG/2:WebAssynchOut] __cSocket: Setting socket Options-III (SO_DONTLINGER = On)

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: …After InitSocket, _fdSocket = 0x03BC

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: hieGetHostByName…

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: …hieGetHostByName done.

      [ssl :init:DBUG/4:WebAssynchOut] __cClientSocket: ‘bConnectOnCreation’ -NOT- specified DELAYING connection

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: hieGetHostByName…

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: …hieGetHostByName done.

      [ssl :clse:DBUG/3:WebAssynchOut] __cSocket : ** Closing ** handle 0x000003bc.

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: hieGetHostByName…

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: …hieGetHostByName done.

      [ssl :clse:DBUG/3:WebAssynchOut] __cSocket : ** Closing ** handle 0xffffffff.

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: hieGetHostByName…

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: …hieGetHostByName done.

      [ssl :clse:DBUG/3:WebAssynchOut] __cSocket : ** Closing ** handle 0xffffffff.

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: hieGetHostByName…

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: …hieGetHostByName done.

      [ssl :clse:DBUG/3:WebAssynchOut] __cSocket : ** Closing ** handle 0xffffffff.

      [ssl :open:DBUG/4:WebAssynchOut] __cClientSocket: in Connect ()

      [ssl :open:DBUG/4:WebAssynchOut] __cClientSocket: …Creating O/S SOcket

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: Making new socket

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: Created socket handle 0x0404 with PF_INET, SOCK_STREAM, Proto: 6

      [ssl :open:DBUG/2:WebAssynchOut] __cSocket: Setting socket Options-I (SO_REUSEADDR = On)

      [ssl :open:DBUG/2:WebAssynchOut] __cSocket: Setting socket Options-II (TCP_NODELAY = On)

      [ssl :open:DBUG/2:WebAssynchOut] __cSocket: Setting socket Options-III (SO_DONTLINGER = On)

      [ssl :open:DBUG/4:WebAssynchOut] __cClientSocket: ClientSocket ‘connect’ing handle 0x0404 to ‘195.050.045.034 : 00080’

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: Setting BLOCKING

      [ssl :open:DBUG/4:WebAssynchOut] __cClientSocket:    Connect() calling crt ‘connect()’

      [ssl :open:DBUG/4:WebAssynchOut] __cClientSocket:    Blocking crt ‘connect()’ succeeded

      [ssl :open:DBUG/4:WebAssynchOut] __cClientSocket: …connected handle 0x0404 to port 80

      [ssl :open:DBUG/4:WebAssynchOut] __cClientSocket: Connect calling SetUpSSL…

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: SetUpSSL, Handle=0x0404 Port=80 _eSSLENGINE=0 (NoSSL)

      [ssl :open:DBUG/4:WebAssynchOut] __cClientSocket: Connect …Done calling SetUpSSL….  Ret=0

      [ssl :wrte:DBUG/2:WebAssynchOut] __cSocket:  –CLEAR WRITE– 194 bytes on Socket Handle 0x0404…

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg – SelectForWrite on Socket Handle 0x0404…

      [ssl :wrte:DBUG/3:WebAssynchOut] Selecting for Write, timeout=4294967295us

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: …Selecting, timeout=NULL

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: Returning from Selecting, retVal = 0

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg –            SelectForWrite done

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg –               ‘send’ done, iRetVal = 194

      [ssl :wrte:DBUG/2:WebAssynchOut] __cSocket:  –CLEAR WRITE– 0 bytes on Socket Handle 0x0404…

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg – SelectForWrite on Socket Handle 0x0404…

      [ssl :wrte:DBUG/3:WebAssynchOut] Selecting for Write, timeout=4294967295us

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: …Selecting, timeout=NULL

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: Returning from Selecting, retVal = 0

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg –            SelectForWrite done

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg –               ‘send’ done, iRetVal = 0

      [ssl :wrte:DBUG/2:WebAssynchOut] __cSocket:  –CLEAR WRITE– 2 bytes on Socket Handle 0x0404…

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg – SelectForWrite on Socket Handle 0x0404…

      [ssl :wrte:DBUG/3:WebAssynchOut] Selecting for Write, timeout=4294967295us

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: …Selecting, timeout=NULL

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: Returning from Selecting, retVal = 0

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg –            SelectForWrite done

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg –               ‘send’ done, iRetVal = 2

      [ssl :wrte:DBUG/2:WebAssynchOut] __cSocket:  –CLEAR WRITE– 29 bytes on Socket Handle 0x0404…

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg – SelectForWrite on Socket Handle 0x0404…

      [ssl :wrte:DBUG/3:WebAssynchOut] Selecting for Write, timeout=4294967295us

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: …Selecting, timeout=NULL

      [ssl :open:DBUG/3:WebAssynchOut] __cSocket: Returning from Selecting, retVal = 0

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg –            SelectForWrite done

      [ssl :wrte:DBUG/3:WebAssynchOut] __cSocket:  SendMsg –               ‘send’ done, iRetVal = 29

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: SetUpSSL, Handle=0x0404 Port=80 _eSSLENGINE=0 (NoSSL)

      [ssl :read:DBUG/3:WebAssynchOut] __cSocket:  –CLEAR READ– 1024 bytes of Socket Handle 0x0404…

      [ssl :read:DBUG/3:WebAssynchOut] __cSocket : ‘recv’ 1024…

      [ssl :read:DBUG/1:WebAssynchOut] __cSocket:  –RecvUpTo returning 25 bytes of Socket Handle 0x0404…

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: SetUpSSL, Handle=0x0404 Port=80 _eSSLENGINE=0 (NoSSL)

      [ssl :read:DBUG/3:WebAssynchOut] __cSocket:  –CLEAR READ– 1024 bytes of Socket Handle 0x0404…

      [ssl :read:DBUG/3:WebAssynchOut] __cSocket : ‘recv’ 1024…

      [ssl :read:DBUG/1:WebAssynchOut] __cSocket:  –RecvUpTo returning 389 bytes of Socket Handle 0x0404…

      [ssl :open:DBUG/1:WebAssynchOut] __cSocket: SetUpSSL, Handle=0x0404 Port=80 _eSSLENGINE=0 (NoSSL)

      [ssl :read:DBUG/3:WebAssynchOut] __cSocket:  –CLEAR READ– 1024 bytes of Socket Handle 0x0404…

      [ssl :read:DBUG/3:WebAssynchOut] __cSocket : ‘recv’ 1024…

      [ssl :read:DBUG/1:WebAssynchOut] __cSocket:  –RecvUpTo returning 0 bytes of Socket Handle 0x0404…

      [ssl :clse:DBUG/3:WebAssynchOut] __cSocket : ** Closing ** handle 0x00000404.

      09/25/2006 14:59:19

      [pti :sign:WARN/0:WebAssynchOut] Thread 4 received signal EXCEPTION_ACCESS_VIOLATION:

       The thread attempted to read from or write to a virtual address for which it does not have the appropriate access.

    • The forum ‘Cloverleaf’ is closed to new topics and replies.