Announcement Announcement Module
Collapse
No announcement yet.
Air Server.Processing.DuplicateSessionDetected Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Air Server.Processing.DuplicateSessionDetected

    Hi

    I am porting a Flex webapp to Flash mobile Air and I am encountering Air Server.Processing.DuplicateSessionDetected errors
    when listening for JMS topic messages in the Flex client (jms-message-destination). I do not get these errors in the webapp version of the Flex client.

    When I turn on BlazeDS logging, for the Flash Mobile AIR client I see multiple "[BlazeDS]FlexSession created with id xxxxxxxxxxx for an Http-based client connection."
    messages which then causes the error:

    BlazeDS]FlexSession with id 'EB5AB5175CD20AEB8BE0CD71C9D8FB2F' for an Http-based client connection has been invalidated.
    [BlazeDS]FlexSession with id '8A1EAB4680E9470C9EF9CB831B254FD0' for an Http-based client connection has been invalidated.
    [BlazeDS]FlexSession created with id '1AD5CD4396B4C34E99AF3ACC85688B55' for an Http-based client connection.
    [BlazeDS]Serializing AMF/HTTP response
    Version: 3
    (Header #0 name=AppendToGatewayUrl, mustUnderstand=true)
    ";jsessionid=1AD5CD4396B4C34E99AF3ACC85688B55"

    (Message #0 targetURI=/16/onStatus, responseURI=)
    (Typed Object #0 'flex.messaging.messages.ErrorMessage')
    headers = (Object #1)
    rootCause = null
    body = null
    correlationId = "1BEACA43-0D11-12D7-8A6F-028FB46C5275"
    faultDetail = null
    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."
    clientId = null
    timeToLive = 0.0
    destination = ""
    timestamp = 1.318597936959E12
    extendedData = null
    faultCode = "Server.Processing.DuplicateSessionDetected"
    messageId = "89410570-CF0A-B835-9D70-CAF8B6533368"

    14-Oct-2011 14:12:16 org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet for servlet jms-example threw exception
    java.lang.IllegalStateException: getAttribute: Session already invalidated
    at org.apache.catalina.session.StandardSession.getAtt ribute(StandardSession.java:1032)
    at org.apache.catalina.session.StandardSessionFacade. getAttribute(StandardSessionFacade.java:110)
    at flex.messaging.HttpFlexSessionProvider.getOrCreate Session(HttpFlexSessionProvider.java:56)

    I guess that I do not get this problem in the webapp because it is doing the session handling correctly.

    What do I need to do in an Air Flex mobile client to fix this problem?

    James
Working...
X