Highlighted
Absent Member.. Absent Member..
Absent Member..
1958 views

VuGen 11 FlexSession Error

Gaspare

Hi,
 
we are performing PC11 load test based on Flex+Web+WS  scripting.
 
During an AMF call, the following error occurs.
 
"Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly"
 
VuGen Extended Log:
 
tab2_bis.c(276): web_add_header("Content-Type") highest severity level was "warning"   [MsgId: MMSG-26391]
tab2_bis.c(278): t=67954ms: 670-byte response headers for "http://*******************/SASBIDashboard/messagebroker/sasamf" (RelFrameId=1, Internal ID=191)
tab2_bis.c(278):     HTTP/1.1 200 OK\r\n
tab2_bis.c(278):     Date: Fri, 30 Sep 2011 12:47:59 GMT\r\n
tab2_bis.c(278):     Server: Apache/2.2.17 (Win32)\r\n
tab2_bis.c(278):     Cache-Control: no-cache\r\n
tab2_bis.c(278):     Cache-Control: no-cache="set-cookie"\r\n
tab2_bis.c(278):     Pragma: no-cache\r\n
tab2_bis.c(278):     Content-Length: 1091\r\n
tab2_bis.c(278):     Expires: Sat, 25 Dec 1999 00:00:00 GMT\r\n
tab2_bis.c(278):     X-HP-CAM-COLOR: V=1;ServerAddr=ahTPxVgAx1q3M/ShSSjhwQ==;GUID=1|xP81JgXsmd7cd4rFv9nL8oxdm32
tab2_bis.c(278):     TWKDfk3PWiWUJkTKjVDj-4wKhalt0-sGOz5B8|L1NBU0JJRGFzaGJvYXJkL21lc3NhZ2Vicm9rZXIvc2FzYW1m\r\n
tab2_bis.c(278):     Set-Cookie: JSESSIONID=2hlyTF6fLP221WMjlzZgrPBn02TLc6R4JR1nPxvzy5qLsyXTp0bB!2136233994; pa
tab2_bis.c(278):     th=/; HttpOnly=\r\n
tab2_bis.c(278):     X-Powered-By: Servlet/2.5 JSP/2.1\r\n
tab2_bis.c(278):     X-UA-Compatible: IE=EmulateIE7\r\n
tab2_bis.c(278):     Keep-Alive: timeout=5, max=93\r\n
tab2_bis.c(278):     Connection: Keep-Alive\r\n
tab2_bis.c(278):     Content-Type: application/x-amf\r\n
tab2_bis.c(278):     \r\n
tab2_bis.c(278): t=67954ms: 1091-byte response body for "http://*******************/SASBIDashboard/messagebroker/sasamf" (RelFrameId=1, Internal ID=191)
tab2_bis.c(278):     \x00\x03\x00\x00\x00\x02\x00\x0B/2/onStatus\x00\x00\xFF\xFF\xFF\xFF\x11\n
tab2_bis.c(278):     \x81SIflex.messaging.messages.ErrorMessage\x13rootCause\x17destination\x0Fheaders\x1Bcorre
tab2_bis.c(278):     lationId\x17faultString\x13messageId\x13faultCode\x15timeToLive\x19extendedData\x17faultDe
tab2_bis.c(278):     tail\x11clientId\x13timestamp\tbody\x01\x06'ContributionManager\n
tab2_bis.c(278):     \x03\x01\x06I5E914C02-64B3-2391-5234-8BF596234053\x06\x82eDetected duplicate HTTP-based Fl
tab2_bis.c(278):     exSessions, generally due to the remote host disabling session cookies. Session cookies mu
tab2_bis.c(278):     st be enabled to manage the client connection correctly.\x06ID905A209-680A-29D7-1FA3-46049
tab2_bis.c(278):     23748E3\x06UServer.Processing.DuplicateSessionDetected\x05\x00\x00\x00\x00\x00\x00\x00\x00
tab2_bis.c(278):     \x01\x01\x01\x05Bs+\xA6\x08>\x80\x00\x01\x00\x0B/3/onStatus\x00\x00\xFF\xFF\xFF\xFF\x11\n
tab2_bis.c(278):     \x81SIflex.messaging.messages.ErrorMessage\x13rootCause\x17destination\x0Fheaders\x1Bcorre
tab2_bis.c(278):     lationId\x17faultString\x13messageId\x13faultCode\x15timeToLive\x19extendedData\x17faultDe
tab2_bis.c(278):     tail\x11clientId\x13timestamp\tbody\x01\x06!DashboardManager\n
tab2_bis.c(278):     \x03\x01\x06IEE1F8E66-1785-36DF-B117-8BF59944E4B6\x06\x82eDetected duplicate HTTP-based Fl
tab2_bis.c(278):     exSessions, generally due to the remote host disabling session cookies. Session cookies mu
tab2_bis.c(278):     st be enabled to manage the client connection correctly.\x06ID905A209-681E-9B3F-0FAB-93C9A
tab2_bis.c(278):     4CA1EA4\x06UServer.Processing.DuplicateSessionDetected\x05\x00\x00\x00\x00\x00\x00\x00\x00
tab2_bis.c(278):     \x01\x01\x01\x05Bs+\xA6\x08>\x80\x00\x01
tab2_bis.c(278): AMF response message received. The following XML describes the message content: [MsgId: MMSG-200988]
tab2_bis.c(278):
<AMFPacket AMF_version="3">
 <AMFHeaders/>
 <Messages>
  <Message method="/2/onStatus" target="">
   <AMF3>
    <object-externalizable-custom>
     <flex.messaging.messages.ErrorMessage>
      <destination>ContributionManager</destination>
      <messageId>D905A209-680A-29D7-1FA3-4604923748E3</messageId>
      <timestamp>1317386879976</timestamp>
      <timeToLive>0</timeToLive>
      <correlationId>5E914C02-64B3-2391-5234-8BF596234053</correlationId>
      <faultCode>Server.Processing.DuplicateSessionDetected</faultCode>
      <faultString>Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly.</faultString>
     </flex.messaging.messages.ErrorMessage>
    </object-externalizable-custom>
   </AMF3>
  </Message>
  <Message method="/3/onStatus" target="">
   <AMF3>
    <object-externalizable-custom>
     <flex.messaging.messages.ErrorMessage>
      <destination>DashboardManager</destination>
      <messageId>D905A209-681E-9B3F-0FAB-93C9A4CA1EA4</messageId>
      <timestamp>1317386879976</timestamp>
      <timeToLive>0</timeToLive>
      <correlationId>EE1F8E66-1785-36DF-B117-8BF59944E4B6</correlationId>
      <faultCode>Server.Processing.DuplicateSessionDetected</faultCode>
      <faultString>Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly.</faultString>
     </flex.messaging.messages.ErrorMessage>
    </object-externalizable-custom>
   </AMF3>
  </Message>
 </Messages>
</AMFPacket>
 [MsgId: MMSG0]
tab2_bis.c(278): Error: Server returned error for message #1 : description="AMF call returned an error, described in XML seen in extended log"  [MsgId: MERR-200987]
tab2_bis.c(278): There was an error during the FLEX AMF Call ("AMF3_call_5") [MsgId: MMSG-200981]
tab2_bis.c(278): Notify: Transaction "DISRI_BP01_TR02_TabRicercaTecnologia" ended with "Fail" status (Duration: 8.0412 Wasted Time: 0.0718). [MsgId: MMSG-16871]
Ending action tab2_bis. [MsgId: MMSG-15918]
Ending iteration 1.
 
-----------------------------------
 
Can anyone help me?
 
BR
 
0 Likes
2 Replies
Highlighted
Established Member..
Established Member..

Re: VuGen 11 FlexSession Error

Hi gasMarino,

 

You have to do 2 things

1.Have to choose Externable Serialization Objects under  Vuser>Run time settings

2.Have to Correlate JSession Id 

 

-Raj

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: VuGen 11 FlexSession Error

Problem Solution:   modifying the script in VuGen and adding to all crashing steps - the following parameter : "IsParseResponse=No",
solved the issue.

flex_amf_call("AMF3_call_3",
"Gateway=http://stg-systeminventory.health.ge.com/SystemInventory/"
"messagebroker/amf",
"Snapshot=t30.inf",
"IsParseResponse=No",

 

 

 

you can refer to http://www.sindubindu.com/2014/03/need-help-for-flex-vugen-scripting.html

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.